mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-18 05:39:04 +03:00
PKI: report on insecure certificates
This commit is contained in:
1 parent
0b8005155a
commit
c7186168ff
1 file changed
+8
@@ -868,6 +868,14 @@ cert_verify_gnutls(gnutls_session_t g_session) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (status & (GNUTLS_CERT_INSECURE_ALGORITHM)) {
|
||||
status &= ~(GNUTLS_CERT_INSECURE_ALGORITHM);
|
||||
fail = 1;
|
||||
coap_log_warn(" %s: %s: '%s'\n",
|
||||
coap_session_str(c_session),
|
||||
"The certificate uses an insecure algorithm",
|
||||
OUTPUT_CERT_NAME);
|
||||
}
|
||||
|
||||
if (status) {
|
||||
fail = 1;
|
||||
|
||||
Reference in new issue
Block a user