summaryrefslogtreecommitdiff
path: root/lib/x509/ocsp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/ocsp_output.c')
-rw-r--r--lib/x509/ocsp_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/ocsp_output.c b/lib/x509/ocsp_output.c
index 895079c7b6..ed55543613 100644
--- a/lib/x509/ocsp_output.c
+++ b/lib/x509/ocsp_output.c
@@ -530,7 +530,7 @@ print_resp(gnutls_buffer_st * str, gnutls_ocsp_resp_t resp,
name = _("unknown");
addf(str, _("\tSignature Algorithm: %s\n"), name);
}
- if (gnutls_sign_is_secure(ret) == 0) {
+ if (ret != GNUTLS_SIGN_UNKNOWN && gnutls_sign_is_secure(ret) == 0) {
adds(str,
_("warning: signed using a broken signature "
"algorithm that can be forged.\n"));