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_dhp.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_dhp.c')
-rw-r--r-- | src/lib/libcrypto/asn1/d2i_dhp.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_dhp.c b/src/lib/libcrypto/asn1/d2i_dhp.c index 616a308100..a077211a4c 100644 --- a/src/lib/libcrypto/asn1/d2i_dhp.c +++ b/src/lib/libcrypto/asn1/d2i_dhp.c | |||
@@ -56,24 +56,17 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #ifndef NO_DH | ||
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 "dh.h" | 63 | #include <openssl/dh.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 | DH *d2i_DHparams(DH **a, unsigned char **pp, long length) |
67 | * ASN1err(ASN1_F_D2I_DHPARAMS,ASN1_R_LENGTH_MISMATCH); | ||
68 | * ASN1err(ASN1_F_I2D_DHPARAMS,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | ||
69 | */ | ||
70 | |||
71 | DH *d2i_DHparams(a,pp,length) | ||
72 | DH **a; | ||
73 | unsigned char **pp; | ||
74 | long length; | ||
75 | { | 68 | { |
76 | int i=ASN1_R_ERROR_STACK; | 69 | int i=ERR_R_NESTED_ASN1_ERROR; |
77 | ASN1_INTEGER *bs=NULL; | 70 | ASN1_INTEGER *bs=NULL; |
78 | long v=0; | 71 | long v=0; |
79 | M_ASN1_D2I_vars(a,DH *,DH_new); | 72 | M_ASN1_D2I_vars(a,DH *,DH_new); |
@@ -105,4 +98,4 @@ err: | |||
105 | if (bs != NULL) ASN1_BIT_STRING_free(bs); | 98 | if (bs != NULL) ASN1_BIT_STRING_free(bs); |
106 | return(NULL); | 99 | return(NULL); |
107 | } | 100 | } |
108 | 101 | #endif | |