diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_s_pu.c')
-rw-r--r-- | src/lib/libcrypto/asn1/d2i_s_pu.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_s_pu.c b/src/lib/libcrypto/asn1/d2i_s_pu.c index 1002f41cd8..94ea1c313b 100644 --- a/src/lib/libcrypto/asn1/d2i_s_pu.c +++ b/src/lib/libcrypto/asn1/d2i_s_pu.c | |||
@@ -56,24 +56,21 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | /* Origional version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ | 59 | /* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ |
60 | 60 | ||
61 | #ifndef NO_DSA | ||
61 | #include <stdio.h> | 62 | #include <stdio.h> |
62 | #include "cryptlib.h" | 63 | #include "cryptlib.h" |
63 | #include "bn.h" | 64 | #include <openssl/bn.h> |
64 | #include "dsa.h" | 65 | #include <openssl/dsa.h> |
65 | #include "objects.h" | 66 | #include <openssl/objects.h> |
66 | #include "asn1_mac.h" | 67 | #include <openssl/asn1_mac.h> |
67 | 68 | ||
68 | /* | 69 | #ifdef NEG_PUBKEY_BUG |
69 | * ASN1err(ASN1_F_D2I_DSAPUBLICKEY,ASN1_R_LENGTH_MISMATCH); | 70 | #define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER |
70 | * ASN1err(ASN1_F_I2D_DSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | 71 | #endif |
71 | */ | ||
72 | 72 | ||
73 | DSA *d2i_DSAPublicKey(a,pp,length) | 73 | DSA *d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length) |
74 | DSA **a; | ||
75 | unsigned char **pp; | ||
76 | long length; | ||
77 | { | 74 | { |
78 | int i=ASN1_R_PARSING; | 75 | int i=ASN1_R_PARSING; |
79 | ASN1_INTEGER *bs=NULL; | 76 | ASN1_INTEGER *bs=NULL; |
@@ -121,4 +118,4 @@ err: | |||
121 | if (bs != NULL) ASN1_INTEGER_free(bs); | 118 | if (bs != NULL) ASN1_INTEGER_free(bs); |
122 | return(NULL); | 119 | return(NULL); |
123 | } | 120 | } |
124 | 121 | #endif | |