From 2a8f346ff5b19b381b3e56f336541310a9360ddb Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 26 Aug 2021 11:59:19 -0300 Subject: [PATCH] Adjusting ssl messsage. --- src/network_modules/openssl/messages.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/src/network_modules/openssl/messages.c b/src/network_modules/openssl/messages.c index 2fec427..7f13587 100644 --- a/src/network_modules/openssl/messages.c +++ b/src/network_modules/openssl/messages.c @@ -226,9 +226,15 @@ const LIB3270_SSL_MESSAGE * lib3270_openssl_message_from_id(long id) { { .id = X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, .message = { +#ifdef SSL_ENABLE_SELF_SIGNED_CERT_CHECK + .type = LIB3270_NOTIFY_SECURE, +#else .type = LIB3270_NOTIFY_WARNING, +#endif // SSL_ENABLE_SELF_SIGNED_CERT_CHECK .icon = "security-medium", .summary = N_( "Self signed certificate" ), + .name = "X509DepthZeroSelfSignedCert", + .label = N_( "Continue" ), .body = N_( "The passed certificate is self signed and the same certificate cannot be found in the list of trusted certificates." ) } }, -- libgit2 0.21.2