diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/t_x509.c')
-rw-r--r-- | src/lib/libcrypto/asn1/t_x509.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index 42f4d498cf..6ee1065ce9 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c | |||
@@ -188,11 +188,7 @@ int X509_print(BIO *bp, X509 *x) | |||
188 | BIO_printf(bp,"%8sX509v3 extensions:\n",""); | 188 | BIO_printf(bp,"%8sX509v3 extensions:\n",""); |
189 | for (i=0; i<n; i++) | 189 | for (i=0; i<n; i++) |
190 | { | 190 | { |
191 | #if 0 | ||
192 | int data_type,pack_type; | ||
193 | #endif | ||
194 | ASN1_OBJECT *obj; | 191 | ASN1_OBJECT *obj; |
195 | |||
196 | ex=X509_get_ext(x,i); | 192 | ex=X509_get_ext(x,i); |
197 | if (BIO_printf(bp,"%12s","") <= 0) goto err; | 193 | if (BIO_printf(bp,"%12s","") <= 0) goto err; |
198 | obj=X509_EXTENSION_get_object(ex); | 194 | obj=X509_EXTENSION_get_object(ex); |
@@ -203,7 +199,7 @@ int X509_print(BIO *bp, X509 *x) | |||
203 | if(!X509V3_EXT_print(bp, ex, 0, 16)) | 199 | if(!X509V3_EXT_print(bp, ex, 0, 16)) |
204 | { | 200 | { |
205 | BIO_printf(bp, "%16s", ""); | 201 | BIO_printf(bp, "%16s", ""); |
206 | ASN1_OCTET_STRING_print(bp,ex->value); | 202 | M_ASN1_OCTET_STRING_print(bp,ex->value); |
207 | } | 203 | } |
208 | if (BIO_write(bp,"\n",1) <= 0) goto err; | 204 | if (BIO_write(bp,"\n",1) <= 0) goto err; |
209 | } | 205 | } |
@@ -223,10 +219,11 @@ int X509_print(BIO *bp, X509 *x) | |||
223 | ((i+1) == n)?"":":") <= 0) goto err; | 219 | ((i+1) == n)?"":":") <= 0) goto err; |
224 | } | 220 | } |
225 | if (BIO_write(bp,"\n",1) != 1) goto err; | 221 | if (BIO_write(bp,"\n",1) != 1) goto err; |
222 | if (!X509_CERT_AUX_print(bp, x->aux, 0)) goto err; | ||
226 | ret=1; | 223 | ret=1; |
227 | err: | 224 | err: |
228 | if (str != NULL) ASN1_STRING_free(str); | 225 | if (str != NULL) ASN1_STRING_free(str); |
229 | if (m != NULL) Free((char *)m); | 226 | if (m != NULL) Free(m); |
230 | return(ret); | 227 | return(ret); |
231 | } | 228 | } |
232 | 229 | ||