Commit 101c8f7d58e3509cee934b6821fb58940a282ea7

Authored by Perry Werneck
1 parent 58de23dd

Atualizando função de obtenção do estado SSL devido ao fato da função antiga ter sido "deprecada".

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
src/lib3270/ssl.c
@@ -397,8 +397,6 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret) @@ -397,8 +397,6 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret)
397 trace_dsn(hSession,"SSL Current state is \"%s\"\n",SSL_state_string_long(s)); 397 trace_dsn(hSession,"SSL Current state is \"%s\"\n",SSL_state_string_long(s));
398 } 398 }
399 399
400 -// trace("%s: state=%04x where=%04x ret=%d",__FUNCTION__,SSL_state(s),where,ret);  
401 -  
402 #ifdef DEBUG 400 #ifdef DEBUG
403 if(where & SSL_CB_EXIT) 401 if(where & SSL_CB_EXIT)
404 { 402 {
@@ -411,8 +409,8 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret) @@ -411,8 +409,8 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret)
411 409
412 if(where & SSL_CB_HANDSHAKE_DONE) 410 if(where & SSL_CB_HANDSHAKE_DONE)
413 { 411 {
414 - trace_dsn(hSession,"%s: SSL_CB_HANDSHAKE_DONE state=%04x\n",__FUNCTION__,SSL_state(s));  
415 - if(SSL_state(s) == 0x03) 412 + trace_dsn(hSession,"%s: SSL_CB_HANDSHAKE_DONE state=%04x\n",__FUNCTION__,SSL_get_state(s));
  413 + if(SSL_get_state(s) == SSL_ST_OK)
416 set_ssl_state(hSession,LIB3270_SSL_NEGOTIATED); 414 set_ssl_state(hSession,LIB3270_SSL_NEGOTIATED);
417 else 415 else
418 set_ssl_state(hSession,LIB3270_SSL_UNSECURE); 416 set_ssl_state(hSession,LIB3270_SSL_UNSECURE);