Changeset 803:d5a4b5e175c2 in freeDiameter for libfdcore/cnxctx.c
- Timestamp:
- Aug 22, 2012, 7:18:15 AM (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/cnxctx.c
r767 r803 842 842 switch (ret) { 843 843 case GNUTLS_E_REHANDSHAKE: 844 if (!fd_cnx_teststate(conn, CC_STATUS_CLOSING)) 844 if (!fd_cnx_teststate(conn, CC_STATUS_CLOSING)) { 845 #ifdef GNUTLS_VERSION_310 846 GNUTLS_TRACE( gnutls_handshake_set_timeout( session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT)); 847 #endif /* GNUTLS_VERSION_310 */ 845 848 CHECK_GNUTLS_DO( ret = gnutls_handshake(session), 846 849 { … … 850 853 goto end; 851 854 } ); 855 } 852 856 853 857 case GNUTLS_E_AGAIN: … … 886 890 switch (ret) { 887 891 case GNUTLS_E_REHANDSHAKE: 888 if (!fd_cnx_teststate(conn, CC_STATUS_CLOSING)) 892 if (!fd_cnx_teststate(conn, CC_STATUS_CLOSING)) { 893 #ifdef GNUTLS_VERSION_310 894 GNUTLS_TRACE( gnutls_handshake_set_timeout( session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT)); 895 #endif /* GNUTLS_VERSION_310 */ 896 889 897 CHECK_GNUTLS_DO( ret = gnutls_handshake(session), 890 898 { … … 894 902 goto end; 895 903 } ); 904 } 896 905 897 906 case GNUTLS_E_AGAIN: … … 1287 1296 { 1288 1297 int ret; 1289 1298 #ifdef GNUTLS_VERSION_310 1299 GNUTLS_TRACE( gnutls_handshake_set_timeout( conn->cc_tls_para.session, GNUTLS_DEFAULT_HANDSHAKE_TIMEOUT)); 1300 #endif /* GNUTLS_VERSION_310 */ 1301 1290 1302 /* When gnutls 2.10.1 is around, we should use gnutls_certificate_set_verify_function and fd_tls_verify_credentials, so that handshake fails directly. */ 1291 1303
Note: See TracChangeset
for help on using the changeset viewer.