diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-11-29 21:30:53 +0100 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-12-04 16:20:53 +0100 |
commit | 01b7708138e4f4b54283b456c50b2b33d41a02f1 (patch) | |
tree | a2aaca1cbc9b057dc87b627e150e811c54593880 /providers/implementations/encode_decode | |
parent | 824cf2c38acfeb9e3a4cf3d039e8368b955eae60 (diff) |
encode_key2any.c: Fix build error on OPENSSL_NO_DH and OPENSSL_NO_EC
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13110)
Diffstat (limited to 'providers/implementations/encode_decode')
-rw-r--r-- | providers/implementations/encode_decode/encode_key2any.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/implementations/encode_decode/encode_key2any.c b/providers/implementations/encode_decode/encode_key2any.c index 8668588a7d..30837612cc 100644 --- a/providers/implementations/encode_decode/encode_key2any.c +++ b/providers/implementations/encode_decode/encode_key2any.c @@ -330,6 +330,8 @@ static int key_to_type_specific_pem_pub_bio(BIO *out, const void *key, p2s, k2d, ctx, NULL, NULL); } +#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_DSA) \ + || !defined(OPENSSL_NO_EC) static int key_to_type_specific_pem_param_bio(BIO *out, const void *key, int key_nid, const char *pemname, key_to_paramstring_fn *p2s, @@ -339,6 +341,7 @@ static int key_to_type_specific_pem_param_bio(BIO *out, const void *key, return key_to_type_specific_pem_bio_cb(out, key, key_nid, pemname, p2s, k2d, ctx, NULL, NULL); } +#endif #define der_output_type "DER" #define pem_output_type "PEM" |