diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_pr.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/i2d_pr.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_pr.c b/src/lib/libcrypto/asn1/i2d_pr.c index b6b821d73c..1e951ae01d 100644 --- a/src/lib/libcrypto/asn1/i2d_pr.c +++ b/src/lib/libcrypto/asn1/i2d_pr.c | |||
| @@ -58,22 +58,26 @@ | |||
| 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_PrivateKey(a,pp) | 71 | int i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) |
| 66 | EVP_PKEY *a; | ||
| 67 | unsigned char **pp; | ||
| 68 | { | 72 | { |
| 69 | #ifndef NO_RSA | 73 | #ifndef OPENSSL_NO_RSA |
| 70 | if (a->type == EVP_PKEY_RSA) | 74 | if (a->type == EVP_PKEY_RSA) |
| 71 | { | 75 | { |
| 72 | return(i2d_RSAPrivateKey(a->pkey.rsa,pp)); | 76 | return(i2d_RSAPrivateKey(a->pkey.rsa,pp)); |
| 73 | } | 77 | } |
| 74 | else | 78 | else |
| 75 | #endif | 79 | #endif |
| 76 | #ifndef NO_DSA | 80 | #ifndef OPENSSL_NO_DSA |
| 77 | if (a->type == EVP_PKEY_DSA) | 81 | if (a->type == EVP_PKEY_DSA) |
| 78 | { | 82 | { |
| 79 | return(i2d_DSAPrivateKey(a->pkey.dsa,pp)); | 83 | return(i2d_DSAPrivateKey(a->pkey.dsa,pp)); |
