warning: resolve 'suggest parentheses around operand' compiler warning

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5535 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
vtarasov 2011-06-02 17:00:36 +00:00
parent f026db6f84
commit d5679f58af

View File

@ -160,7 +160,9 @@ CERT_HANDLE_FUNCTION(default_cert_handle) {
r = SC_ERROR_INTERNAL;
goto err;
}
if(! EVP_PK_RSA & (certtype = X509_certificate_type(cert_data, pkey))) {
certtype = X509_certificate_type(cert_data, pkey);
if(! (EVP_PK_RSA & certtype)) {
sc_debug(p15card->card->ctx, SC_LOG_DEBUG_NORMAL, "Error: certificate is not for an RSA key");
r = SC_ERROR_INTERNAL;
goto err;