diff options
author | beck <> | 1999-09-29 04:37:45 +0000 |
---|---|---|
committer | beck <> | 1999-09-29 04:37:45 +0000 |
commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/asn1/d2i_r_pu.c | |
parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip |
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_r_pu.c')
-rw-r--r-- | src/lib/libcrypto/asn1/d2i_r_pu.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_r_pu.c b/src/lib/libcrypto/asn1/d2i_r_pu.c index 778b792b1e..c4ae58b594 100644 --- a/src/lib/libcrypto/asn1/d2i_r_pu.c +++ b/src/lib/libcrypto/asn1/d2i_r_pu.c | |||
@@ -56,22 +56,19 @@ | |||
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 | #ifdef NEG_PUBKEY_BUG |
67 | * ASN1err(ASN1_F_D2I_RSAPUBLICKEY,ASN1_R_LENGTH_MISMATCH); | 68 | #define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER |
68 | * ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | 69 | #endif |
69 | */ | ||
70 | 70 | ||
71 | RSA *d2i_RSAPublicKey(a,pp,length) | 71 | RSA *d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length) |
72 | RSA **a; | ||
73 | unsigned char **pp; | ||
74 | long length; | ||
75 | { | 72 | { |
76 | int i=ASN1_R_PARSING; | 73 | int i=ASN1_R_PARSING; |
77 | ASN1_INTEGER *bs=NULL; | 74 | ASN1_INTEGER *bs=NULL; |
@@ -97,4 +94,4 @@ err: | |||
97 | if (bs != NULL) ASN1_INTEGER_free(bs); | 94 | if (bs != NULL) ASN1_INTEGER_free(bs); |
98 | return(NULL); | 95 | return(NULL); |
99 | } | 96 | } |
100 | 97 | #endif | |