* (RSA uses it).
*/
_gnutls_set_adv_version (session, hver);
+ _gnutls_set_current_version (session, hver);
if (session->internals.priorities.ssl3_record_version)
- {
- /* Honor the SSL3_RECORD_VERSION option
- */
- _gnutls_set_current_version (session, GNUTLS_SSL3);
- }
- else
{
/* Some old implementations do not interoperate if we send a
* different version in the record layer.
* handshake packet and ignore the one in the packet's record
* header.
*/
- _gnutls_set_current_version (session, hver);
+ _gnutls_record_set_default_version (session, 3, 0);
}
/* In order to know when this session was initiated.
/* These should really be static, but src/tests.c calls them. Make
them public functions? */
void
-_gnutls_record_set_default_version (gnutls_session_t session,
- unsigned char major, unsigned char minor);
-void
_gnutls_rsa_pms_set_version (gnutls_session_t session,
unsigned char major, unsigned char minor);
void _gnutls_session_cert_type_set (gnutls_session_t session,
gnutls_certificate_type_t);
+void
+_gnutls_record_set_default_version (gnutls_session_t session,
+ unsigned char major, unsigned char minor);
#include <gnutls_auth.h>