Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
if (!pkey)
goto end;
- ctx = EVP_PKEY_CTX_new(pkey, e);
-
+ if ((keyform == FORMAT_ENGINE) && (strncmp(ENGINE_get_name(e),"pkcs11 engine", strlen("pkcs11 engine"))==0)) {
+ fprintf(stderr, "engine name = \"%s\"\n", ENGINE_get_name(e));
+ ctx = EVP_PKEY_CTX_new(pkey, NULL);
+ } else {
+ ctx = EVP_PKEY_CTX_new(pkey, e);
+ }
+
EVP_PKEY_free(pkey);
if (!ctx)