diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_r_pr.c')
-rw-r--r-- | src/lib/libcrypto/asn1/d2i_r_pr.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_r_pr.c b/src/lib/libcrypto/asn1/d2i_r_pr.c index 0c53aa94bf..18f11b6f5e 100644 --- a/src/lib/libcrypto/asn1/d2i_r_pr.c +++ b/src/lib/libcrypto/asn1/d2i_r_pr.c | |||
@@ -56,18 +56,13 @@ | |||
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 | /* | ||
67 | * ASN1err(ASN1_F_D2I_RSAPRIVATEKEY,ASN1_R_LENGTH_MISMATCH); | ||
68 | * ASN1err(ASN1_F_I2D_RSAPRIVATEKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | ||
69 | * ASN1err(ASN1_F_I2D_RSAPRIVATEKEY,ASN1_R_PARSING); | ||
70 | */ | ||
71 | 66 | ||
72 | static ASN1_METHOD method={ | 67 | static ASN1_METHOD method={ |
73 | (int (*)()) i2d_RSAPrivateKey, | 68 | (int (*)()) i2d_RSAPrivateKey, |
@@ -75,15 +70,12 @@ static ASN1_METHOD method={ | |||
75 | (char *(*)())RSA_new, | 70 | (char *(*)())RSA_new, |
76 | (void (*)()) RSA_free}; | 71 | (void (*)()) RSA_free}; |
77 | 72 | ||
78 | ASN1_METHOD *RSAPrivateKey_asn1_meth() | 73 | ASN1_METHOD *RSAPrivateKey_asn1_meth(void) |
79 | { | 74 | { |
80 | return(&method); | 75 | return(&method); |
81 | } | 76 | } |
82 | 77 | ||
83 | RSA *d2i_RSAPrivateKey(a,pp,length) | 78 | RSA *d2i_RSAPrivateKey(RSA **a, unsigned char **pp, long length) |
84 | RSA **a; | ||
85 | unsigned char **pp; | ||
86 | long length; | ||
87 | { | 79 | { |
88 | int i=ASN1_R_PARSING; | 80 | int i=ASN1_R_PARSING; |
89 | ASN1_INTEGER *bs=NULL; | 81 | ASN1_INTEGER *bs=NULL; |
@@ -126,4 +118,4 @@ err: | |||
126 | if (bs != NULL) ASN1_INTEGER_free(bs); | 118 | if (bs != NULL) ASN1_INTEGER_free(bs); |
127 | return(NULL); | 119 | return(NULL); |
128 | } | 120 | } |
129 | 121 | #endif | |