summaryrefslogtreecommitdiff
path: root/lib/gnutls_handshake.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-07-03 17:28:44 +0200
committerSimon Josefsson <simon@josefsson.org>2008-07-03 17:28:44 +0200
commit3607979dcd6329cf932feb71154850fc4108206e (patch)
tree0b0c54ca83c477f5e65986b623ff1fb994e99279 /lib/gnutls_handshake.c
parentd768f45a6a476410295fafc90259ab36c6ffdc15 (diff)
downloadgnutls-3607979dcd6329cf932feb71154850fc4108206e.tar.gz
Add APIs to register TLS extension handlers.
Diffstat (limited to 'lib/gnutls_handshake.c')
-rw-r--r--lib/gnutls_handshake.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/gnutls_handshake.c b/lib/gnutls_handshake.c
index 3375fe445f..29fa071dcb 100644
--- a/lib/gnutls_handshake.c
+++ b/lib/gnutls_handshake.c
@@ -440,7 +440,9 @@ _gnutls_read_client_hello (gnutls_session_t session, opaque * data,
*/
if (neg_version >= GNUTLS_TLS1)
{
- ret = _gnutls_parse_extensions (session, EXTENSION_APPLICATION, &data[pos], len); /* len is the rest of the parsed length */
+ ret = _gnutls_parse_extensions (session, GNUTLS_EXT_APPLICATION,
+ &data[pos], len);
+ /* len is the rest of the parsed length */
if (ret < 0)
{
gnutls_assert ();
@@ -457,7 +459,9 @@ _gnutls_read_client_hello (gnutls_session_t session, opaque * data,
if (neg_version >= GNUTLS_TLS1)
{
- ret = _gnutls_parse_extensions (session, EXTENSION_TLS, &data[pos], len); /* len is the rest of the parsed length */
+ ret = _gnutls_parse_extensions (session, GNUTLS_EXT_TLS,
+ &data[pos], len);
+ /* len is the rest of the parsed length */
if (ret < 0)
{
gnutls_assert ();
@@ -1559,7 +1563,9 @@ _gnutls_read_server_hello (gnutls_session_t session,
*/
if (version >= GNUTLS_TLS1)
{
- ret = _gnutls_parse_extensions (session, EXTENSION_ANY, &data[pos], len); /* len is the rest of the parsed length */
+ ret = _gnutls_parse_extensions (session, GNUTLS_EXT_ANY,
+ &data[pos], len);
+ /* len is the rest of the parsed length */
if (ret < 0)
{
gnutls_assert ();