diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-11-24 16:33:18 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-11-25 10:52:40 +0100 |
commit | 25a69f0c15a4829afce6100021aead2720867785 (patch) | |
tree | 6998079d67d64a0881a209d92eb4478ade9249fc /lib/x509 | |
parent | 70954eccf71bee629f30d0b4ad606722edb0da9e (diff) | |
download | gnutls-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.c | 3 |
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) { |