diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_r_pr.c')
-rw-r--r-- | src/lib/libcrypto/asn1/i2d_r_pr.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_r_pr.c b/src/lib/libcrypto/asn1/i2d_r_pr.c index aadbb92d8e..27e6844a7f 100644 --- a/src/lib/libcrypto/asn1/i2d_r_pr.c +++ b/src/lib/libcrypto/asn1/i2d_r_pr.c | |||
@@ -56,21 +56,15 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #ifndef NO_RSA | ||
59 | #include <stdio.h> | 60 | #include <stdio.h> |
60 | #include "cryptlib.h" | 61 | #include "cryptlib.h" |
61 | #include "bn.h" | 62 | #include <openssl/bn.h> |
62 | #include "rsa.h" | 63 | #include <openssl/rsa.h> |
63 | #include "objects.h" | 64 | #include <openssl/objects.h> |
64 | #include "asn1_mac.h" | 65 | #include <openssl/asn1_mac.h> |
65 | 66 | ||
66 | /* | 67 | int i2d_RSAPrivateKey(RSA *a, unsigned char **pp) |
67 | * ASN1err(ASN1_F_D2I_RSAPRIVATEKEY,ASN1_R_LENGTH_MISMATCH); | ||
68 | * ASN1err(ASN1_F_I2D_RSAPRIVATEKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | ||
69 | */ | ||
70 | |||
71 | int i2d_RSAPrivateKey(a,pp) | ||
72 | RSA *a; | ||
73 | unsigned char **pp; | ||
74 | { | 68 | { |
75 | BIGNUM *num[9]; | 69 | BIGNUM *num[9]; |
76 | unsigned char data[1]; | 70 | unsigned char data[1]; |
@@ -129,4 +123,5 @@ unsigned char **pp; | |||
129 | *pp=p; | 123 | *pp=p; |
130 | return(t); | 124 | return(t); |
131 | } | 125 | } |
126 | #endif | ||
132 | 127 | ||