diff options
Diffstat (limited to 'lib/x509/output.c')
-rw-r--r-- | lib/x509/output.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/x509/output.c b/lib/x509/output.c index e071c14031..8ebb998ed2 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -2569,8 +2569,10 @@ print_pubkey_other(gnutls_buffer_st * str, gnutls_pubkey_t pubkey, } adds(str, "\n"); - adds(str, _("Public Key Usage:\n")); - print_key_usage2(str, "\t", pubkey->key_usage); + if (pubkey->key_usage) { + adds(str, _("Public Key Usage:\n")); + print_key_usage2(str, "\t", pubkey->key_usage); + } print_obj_id(str, "", pubkey, (get_id_func*)gnutls_pubkey_get_key_id); } |