summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-10-04 13:58:41 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-10-04 13:58:41 +0000
commit8ec3fa0597224abf3bdcb59da0f02f3100f75459 (patch)
tree5136049b4ff62e92c10aabc7d0545fcf14cb342c /crypto/asn1
parent0c7246ed4bec060aa6c0b834e5ca0c02739254b5 (diff)
fix signature printing routines
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/t_x509.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c
index bd22a8dd4f..db88f3a3e1 100644
--- a/crypto/asn1/t_x509.c
+++ b/crypto/asn1/t_x509.c
@@ -333,6 +333,8 @@ int X509_signature_print(BIO *bp, X509_ALGOR *sigalg, ASN1_STRING *sig)
}
if (sig)
return X509_signature_dump(bp, sig, 9);
+ else if (BIO_puts(bp, "\n") <= 0)
+ return 0;
return 1;
}