summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/i2d_s_pu.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/i2d_s_pu.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/i2d_s_pu.c')
-rw-r--r--src/lib/libcrypto/asn1/i2d_s_pu.c22
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/* 67int i2d_DSAPublicKey(DSA *a, unsigned char **pp)
67 * ASN1err(ASN1_F_I2D_DSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE);
68 */
69
70int i2d_DSAPublicKey(a,pp)
71DSA *a;
72unsigned 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