]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/engine/eng_openssl.c
Use "==0" instead of "!strcmp" etc
[thirdparty/openssl.git] / crypto / engine / eng_openssl.c
index e9bdd010438b67451a59afdac57fa629ff33dbc1..560c9b3c932102984f2b0a2ee34e429b9d15684e 100644 (file)
@@ -556,11 +556,11 @@ static int ossl_hmac_ctrl_str(EVP_PKEY_CTX *ctx,
     if (!value) {
         return 0;
     }
-    if (!strcmp(type, "key")) {
+    if (strcmp(type, "key") == 0) {
         void *p = (void *)value;
         return ossl_hmac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY, -1, p);
     }
-    if (!strcmp(type, "hexkey")) {
+    if (strcmp(type, "hexkey") == 0) {
         unsigned char *key;
         int r;
         long keylen;