Commit 1a56e7ee7c512d13bdce701425c3e0443d7d03c6

Authored by perry.werneck@gmail.com
1 parent 857b1532

Incluindo caixa de diálogo com o estado da conexão SSL

Showing 1 changed file with 9 additions and 1 deletions   Show diff stats
telnet.c
... ... @@ -3325,4 +3325,12 @@ LIB3270_EXPORT LIB3270_SSL_STATE lib3270_get_secure(H3270 *session)
3325 3325 return session->secure;
3326 3326 }
3327 3327  
3328   -
  3328 +LIB3270_EXPORT long lib3270_get_SSL_verify_result(H3270 *hSession)
  3329 +{
  3330 + CHECK_SESSION_HANDLE(hSession);
  3331 +#if defined(HAVE_LIBSSL)
  3332 + if(hSession->ssl_con)
  3333 + return SSL_get_verify_result(hSession->ssl_con);
  3334 +#endif // HAVE_LIBSSL
  3335 + return -1;
  3336 +}
... ...