diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_pu.c')
-rw-r--r-- | src/lib/libcrypto/asn1/i2d_pu.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_pu.c b/src/lib/libcrypto/asn1/i2d_pu.c index 1b854252b7..013d19bbf4 100644 --- a/src/lib/libcrypto/asn1/i2d_pu.c +++ b/src/lib/libcrypto/asn1/i2d_pu.c | |||
@@ -58,21 +58,25 @@ | |||
58 | 58 | ||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include "cryptlib.h" | 60 | #include "cryptlib.h" |
61 | #include "bn.h" | 61 | #include <openssl/bn.h> |
62 | #include "evp.h" | 62 | #include <openssl/evp.h> |
63 | #include "objects.h" | 63 | #include <openssl/objects.h> |
64 | #ifndef OPENSSL_NO_RSA | ||
65 | #include <openssl/rsa.h> | ||
66 | #endif | ||
67 | #ifndef OPENSSL_NO_DSA | ||
68 | #include <openssl/dsa.h> | ||
69 | #endif | ||
64 | 70 | ||
65 | int i2d_PublicKey(a,pp) | 71 | int i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) |
66 | EVP_PKEY *a; | ||
67 | unsigned char **pp; | ||
68 | { | 72 | { |
69 | switch (a->type) | 73 | switch (a->type) |
70 | { | 74 | { |
71 | #ifndef NO_RSA | 75 | #ifndef OPENSSL_NO_RSA |
72 | case EVP_PKEY_RSA: | 76 | case EVP_PKEY_RSA: |
73 | return(i2d_RSAPublicKey(a->pkey.rsa,pp)); | 77 | return(i2d_RSAPublicKey(a->pkey.rsa,pp)); |
74 | #endif | 78 | #endif |
75 | #ifndef NO_DSA | 79 | #ifndef OPENSSL_NO_DSA |
76 | case EVP_PKEY_DSA: | 80 | case EVP_PKEY_DSA: |
77 | return(i2d_DSAPublicKey(a->pkey.dsa,pp)); | 81 | return(i2d_DSAPublicKey(a->pkey.dsa,pp)); |
78 | #endif | 82 | #endif |