diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_pr.c')
-rw-r--r-- | src/lib/libcrypto/asn1/i2d_pr.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_pr.c b/src/lib/libcrypto/asn1/i2d_pr.c index 0be52c5b76..1e951ae01d 100644 --- a/src/lib/libcrypto/asn1/i2d_pr.c +++ b/src/lib/libcrypto/asn1/i2d_pr.c | |||
@@ -67,9 +67,6 @@ | |||
67 | #ifndef OPENSSL_NO_DSA | 67 | #ifndef OPENSSL_NO_DSA |
68 | #include <openssl/dsa.h> | 68 | #include <openssl/dsa.h> |
69 | #endif | 69 | #endif |
70 | #ifndef OPENSSL_NO_EC | ||
71 | #include <openssl/ec.h> | ||
72 | #endif | ||
73 | 70 | ||
74 | int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | 71 | int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) |
75 | { | 72 | { |
@@ -86,12 +83,6 @@ int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | |||
86 | return(i2d_DSAPrivateKey(a->pkey.dsa,pp)); | 83 | return(i2d_DSAPrivateKey(a->pkey.dsa,pp)); |
87 | } | 84 | } |
88 | #endif | 85 | #endif |
89 | #ifndef OPENSSL_NO_EC | ||
90 | if (a->type == EVP_PKEY_EC) | ||
91 | { | ||
92 | return(i2d_ECPrivateKey(a->pkey.ec, pp)); | ||
93 | } | ||
94 | #endif | ||
95 | 86 | ||
96 | ASN1err(ASN1_F_I2D_PRIVATEKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); | 87 | ASN1err(ASN1_F_I2D_PRIVATEKEY,ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); |
97 | return(-1); | 88 | return(-1); |