summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/d2i_dsap.c
diff options
context:
space:
mode:
authorbeck <>1999-09-29 04:37:45 +0000
committerbeck <>1999-09-29 04:37:45 +0000
commitde8f24ea083384bb66b32ec105dc4743c5663cdf (patch)
tree1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/asn1/d2i_dsap.c
parentcb929d29896bcb87c2a97417fbd03e50078fc178 (diff)
downloadopenbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2
openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_dsap.c')
-rw-r--r--src/lib/libcrypto/asn1/d2i_dsap.c25
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
71DSA *d2i_DSAparams(a,pp,length) 71DSA *d2i_DSAparams(DSA **a, unsigned char **pp, long length)
72DSA **a;
73unsigned char **pp;
74long 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