summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-24 16:33:18 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-25 10:52:40 +0100
commit25a69f0c15a4829afce6100021aead2720867785 (patch)
tree6998079d67d64a0881a209d92eb4478ade9249fc /lib/x509
parent70954eccf71bee629f30d0b4ad606722edb0da9e (diff)
downloadgnutls-25a69f0c15a4829afce6100021aead2720867785.tar.gz
pkcs7: only print signer's issuer DN when DN has contents
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/pkcs7-output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/x509/pkcs7-output.c b/lib/x509/pkcs7-output.c
index 26cdc1cb3e..6c3055fa64 100644
--- a/lib/x509/pkcs7-output.c
+++ b/lib/x509/pkcs7-output.c
@@ -95,7 +95,8 @@ static void print_pkcs7_info(gnutls_pkcs7_signature_info_st * info,
size_t max;
int ret;
- print_dn(str, "\tSigner's issuer DN", &info->issuer_dn);
+ if (info->issuer_dn.size > 0)
+ print_dn(str, "\tSigner's issuer DN", &info->issuer_dn);
print_raw(str, "\tSigner's serial", &info->signer_serial);
print_raw(str, "\tSigner's issuer key ID", &info->issuer_keyid);
if (info->signing_time != -1) {