From 101c8f7d58e3509cee934b6821fb58940a282ea7 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 26 Jul 2017 11:32:57 -0300 Subject: [PATCH] Atualizando função de obtenção do estado SSL devido ao fato da função antiga ter sido "deprecada". --- src/lib3270/ssl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib3270/ssl.c b/src/lib3270/ssl.c index 5026033..680f23e 100644 --- a/src/lib3270/ssl.c +++ b/src/lib3270/ssl.c @@ -397,8 +397,6 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret) trace_dsn(hSession,"SSL Current state is \"%s\"\n",SSL_state_string_long(s)); } -// trace("%s: state=%04x where=%04x ret=%d",__FUNCTION__,SSL_state(s),where,ret); - #ifdef DEBUG if(where & SSL_CB_EXIT) { @@ -411,8 +409,8 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret) if(where & SSL_CB_HANDSHAKE_DONE) { - trace_dsn(hSession,"%s: SSL_CB_HANDSHAKE_DONE state=%04x\n",__FUNCTION__,SSL_state(s)); - if(SSL_state(s) == 0x03) + trace_dsn(hSession,"%s: SSL_CB_HANDSHAKE_DONE state=%04x\n",__FUNCTION__,SSL_get_state(s)); + if(SSL_get_state(s) == SSL_ST_OK) set_ssl_state(hSession,LIB3270_SSL_NEGOTIATED); else set_ssl_state(hSession,LIB3270_SSL_UNSECURE); -- libgit2 0.21.2