67 #ifndef OPENSSL_NO_RSA
70 #ifndef OPENSSL_NO_DSA
77 #ifndef OPENSSL_NO_ENGINE
83 static void EVP_PKEY_free_it(
EVP_PKEY *x);
101 #ifndef OPENSSL_NO_DSA
111 #ifndef OPENSSL_NO_EC
198 ret->attributes=NULL;
207 static int pkey_set_type(
EVP_PKEY *pkey,
int type,
const char *str,
int len)
214 EVP_PKEY_free_it(pkey);
220 #ifndef OPENSSL_NO_ENGINE
233 #ifndef OPENSSL_NO_ENGINE
255 return pkey_set_type(pkey, type, NULL, -1);
268 return (key != NULL);
276 #ifndef OPENSSL_NO_RSA
296 #ifndef OPENSSL_NO_DSA
316 #ifndef OPENSSL_NO_EC
339 #ifndef OPENSSL_NO_DH
370 #ifndef OPENSSL_NO_ENGINE
391 if (x == NULL)
return;
395 REF_PRINT(
"EVP_PKEY",x);
401 fprintf(stderr,
"EVP_PKEY_free, bad reference count\n");
411 static void EVP_PKEY_free_it(
EVP_PKEY *x)
418 #ifndef OPENSSL_NO_ENGINE
427 static int unsup_alg(
BIO *out,
const EVP_PKEY *pkey,
int indent,
431 BIO_printf(out,
"%s algorithm \"%s\" unsupported\n",
442 return unsup_alg(out, pkey, indent,
"Public Key");
451 return unsup_alg(out, pkey, indent,
"Private Key");
459 return unsup_alg(out, pkey, indent,
"Parameters");