Revert "Don't allow an empty Subject when creating a Certificate"
[openssl.git] / apps / dgst.c
index 45745507962392aeedcb8326889f2b39bca6f67d..4bf20f33e5fe877d97682afbd63ceae103948333 100644 (file)
@@ -277,8 +277,8 @@ int dgst_main(int argc, char **argv)
     }
 
     if (hmac_key != NULL) {
     }
 
     if (hmac_key != NULL) {
-        sigkey = EVP_PKEY_new_mac_key(EVP_PKEY_HMAC, impl,
-                                      (unsigned char *)hmac_key, -1);
+        sigkey = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, impl,
+                                              (unsigned char *)hmac_key, -1);
         if (sigkey == NULL)
             goto end;
     }
         if (sigkey == NULL)
             goto end;
     }