diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_s_pu.c')
-rw-r--r-- | src/lib/libcrypto/asn1/i2d_s_pu.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_s_pu.c b/src/lib/libcrypto/asn1/i2d_s_pu.c index 5cf2877069..18f790f746 100644 --- a/src/lib/libcrypto/asn1/i2d_s_pu.c +++ b/src/lib/libcrypto/asn1/i2d_s_pu.c | |||
@@ -56,20 +56,15 @@ | |||
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 | int i2d_DSAPublicKey(DSA *a, unsigned char **pp) |
67 | * ASN1err(ASN1_F_I2D_DSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); | ||
68 | */ | ||
69 | |||
70 | int i2d_DSAPublicKey(a,pp) | ||
71 | DSA *a; | ||
72 | unsigned char **pp; | ||
73 | { | 68 | { |
74 | BIGNUM *num[4]; | 69 | BIGNUM *num[4]; |
75 | ASN1_INTEGER bs; | 70 | ASN1_INTEGER bs; |
@@ -128,6 +123,7 @@ unsigned char **pp; | |||
128 | } | 123 | } |
129 | Free((char *)bs.data); | 124 | Free((char *)bs.data); |
130 | *pp=p; | 125 | *pp=p; |
131 | return(t); | 126 | if(all) return(t); |
127 | else return(tot); | ||
132 | } | 128 | } |
133 | 129 | #endif | |