gnutls_db.c | gnutls_db.c | |||
---|---|---|---|---|
skipping to change at line 304 | skipping to change at line 304 | |||
/* expiration check is performed inside */ | /* expiration check is performed inside */ | |||
ret = gnutls_session_set_data(session, data.data, data.size); | ret = gnutls_session_set_data(session, data.data, data.size); | |||
gnutls_free(data.data); | gnutls_free(data.data); | |||
if (ret < 0) { | if (ret < 0) { | |||
gnutls_assert(); | gnutls_assert(); | |||
return ret; | return ret; | |||
} | } | |||
/* Do not allow the resumption of a session which switches the | /* Force the state of ext_master_secret based on the resumed paramet | |||
* state of ext_master_secret */ | ers */ | |||
if (session->internals.resumed_security_parameters.ext_master_secret | if (session->internals.resumed_security_parameters.ext_master_secret | |||
!= | != 0) | |||
session->security_parameters.ext_master_secret) | session->security_parameters.ext_master_secret = 1; | |||
return gnutls_assert_val(GNUTLS_E_INVALID_SESSION); | ||||
return 0; | return 0; | |||
} | } | |||
/** | /** | |||
* gnutls_db_remove_session: | * gnutls_db_remove_session: | |||
* @session: is a #gnutls_session_t type. | * @session: is a #gnutls_session_t type. | |||
* | * | |||
* This function will remove the current session data from the | * This function will remove the current session data from the | |||
* session database. This will prevent future handshakes reusing | * session database. This will prevent future handshakes reusing | |||
End of changes. 1 change blocks. | ||||
6 lines changed or deleted | 5 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |