From: Nikos Mavrogiannopoulos Date: Wed, 24 Oct 2007 14:19:51 +0000 (+0300) Subject: The user handshake callback function is now called on SSLv2 hello messages. X-Git-Tag: gnutls_2_1_4~20^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bb16ecd86a440a5767cd43cc4e15da537d7bba8;p=thirdparty%2Fgnutls.git The user handshake callback function is now called on SSLv2 hello messages. --- diff --git a/lib/gnutls_v2_compat.c b/lib/gnutls_v2_compat.c index 26fcec7091..23c54eccbf 100644 --- a/lib/gnutls_v2_compat.c +++ b/lib/gnutls_v2_compat.c @@ -170,6 +170,18 @@ _gnutls_read_client_hello_v2 (gnutls_session_t session, opaque * data, return GNUTLS_E_UNSUPPORTED_VERSION_PACKET; } + /* call the user hello callback + */ + if (session->internals.user_hello_func != NULL) + { + ret = session->internals.user_hello_func( session); + if (ret < 0) + { + gnutls_assert(); + return ret; + } + } + /* find an appropriate cipher suite */ DECR_LEN (len, sizeOfSuites);