summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_ameth.c
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/rsa/rsa_ameth.c
parent0c7246ed4bec060aa6c0b834e5ca0c02739254b5 (diff)
fix signature printing routines
Diffstat (limited to 'crypto/rsa/rsa_ameth.c')
-rw-r--r--crypto/rsa/rsa_ameth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_ameth.c b/crypto/rsa/rsa_ameth.c
index cefac171a5..2460910ab2 100644
--- a/crypto/rsa/rsa_ameth.c
+++ b/crypto/rsa/rsa_ameth.c
@@ -400,6 +400,8 @@ static int rsa_sig_print(BIO *bp, const X509_ALGOR *sigalg,
if (!rv)
return 0;
}
+ else if (!sig && BIO_puts(bp, "\n") <= 0)
+ return 0;
if (sig)
return X509_signature_dump(bp, sig, indent);
return 1;