diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_dsap.c')
-rw-r--r-- | src/lib/libcrypto/asn1/d2i_dsap.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_dsap.c b/src/lib/libcrypto/asn1/d2i_dsap.c index 2c8ac7bbcf..cdd7136f51 100644 --- a/src/lib/libcrypto/asn1/d2i_dsap.c +++ b/src/lib/libcrypto/asn1/d2i_dsap.c | |||
@@ -56,24 +56,21 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #ifndef NO_DSA | ||
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 "dsa.h" | 63 | #include <openssl/dsa.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_DSAPARAMS,ASN1_R_LENGTH_MISMATCH); | 68 | #define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER |
68 | * ASN1err(ASN1_F_I2D_DSAPARAMS,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | 69 | #endif |
69 | */ | ||
70 | 70 | ||
71 | DSA *d2i_DSAparams(a,pp,length) | 71 | DSA *d2i_DSAparams(DSA **a, unsigned char **pp, long length) |
72 | DSA **a; | ||
73 | unsigned char **pp; | ||
74 | long length; | ||
75 | { | 72 | { |
76 | int i=ASN1_R_ERROR_STACK; | 73 | int i=ERR_R_NESTED_ASN1_ERROR; |
77 | ASN1_INTEGER *bs=NULL; | 74 | ASN1_INTEGER *bs=NULL; |
78 | M_ASN1_D2I_vars(a,DSA *,DSA_new); | 75 | M_ASN1_D2I_vars(a,DSA *,DSA_new); |
79 | 76 | ||
@@ -98,4 +95,4 @@ err: | |||
98 | if (bs != NULL) ASN1_BIT_STRING_free(bs); | 95 | if (bs != NULL) ASN1_BIT_STRING_free(bs); |
99 | return(NULL); | 96 | return(NULL); |
100 | } | 97 | } |
101 | 98 | #endif | |