diff options
Diffstat (limited to 'src/daemon/https/tls/gnutls_handshake.c')
-rw-r--r-- | src/daemon/https/tls/gnutls_handshake.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/daemon/https/tls/gnutls_handshake.c b/src/daemon/https/tls/gnutls_handshake.c index 08d423b5..e53d6985 100644 --- a/src/daemon/https/tls/gnutls_handshake.c +++ b/src/daemon/https/tls/gnutls_handshake.c | |||
@@ -195,7 +195,7 @@ _gnutls_finished (mhd_gtls_session_t session, int type, void *ret) | |||
195 | mac_hd_t td_sha; | 195 | mac_hd_t td_sha; |
196 | enum MHD_GNUTLS_Protocol ver = MHD_gnutls_protocol_get_version (session); | 196 | enum MHD_GNUTLS_Protocol ver = MHD_gnutls_protocol_get_version (session); |
197 | 197 | ||
198 | if (ver < MHD_GNUTLS_TLS1_2) | 198 | if (ver < MHD_GNUTLS_PROTOCOL_TLS1_2) |
199 | { | 199 | { |
200 | td_md5 = | 200 | td_md5 = |
201 | mhd_gnutls_hash_copy (session->internals.handshake_mac_handle_md5); | 201 | mhd_gnutls_hash_copy (session->internals.handshake_mac_handle_md5); |
@@ -215,7 +215,7 @@ _gnutls_finished (mhd_gtls_session_t session, int type, void *ret) | |||
215 | return GNUTLS_E_HASH_FAILED; | 215 | return GNUTLS_E_HASH_FAILED; |
216 | } | 216 | } |
217 | 217 | ||
218 | if (ver < MHD_GNUTLS_TLS1_2) | 218 | if (ver < MHD_GNUTLS_PROTOCOL_TLS1_2) |
219 | { | 219 | { |
220 | mhd_gnutls_hash_deinit (td_md5, concat); | 220 | mhd_gnutls_hash_deinit (td_md5, concat); |
221 | mhd_gnutls_hash_deinit (td_sha, &concat[16]); | 221 | mhd_gnutls_hash_deinit (td_sha, &concat[16]); |
@@ -281,7 +281,7 @@ mhd_gtls_negotiate_version (mhd_gtls_session_t session, | |||
281 | * then we send him the highest we support. | 281 | * then we send him the highest we support. |
282 | */ | 282 | */ |
283 | ret = mhd_gtls_version_max (session); | 283 | ret = mhd_gtls_version_max (session); |
284 | if (ret == MHD_GNUTLS_VERSION_UNKNOWN) | 284 | if (ret == MHD_GNUTLS_PROTOCOL_VERSION_UNKNOWN) |
285 | { | 285 | { |
286 | /* this check is not really needed. | 286 | /* this check is not really needed. |
287 | */ | 287 | */ |
@@ -420,7 +420,7 @@ _gnutls_read_client_hello (mhd_gtls_session_t session, opaque * data, | |||
420 | 420 | ||
421 | /* Parse the extensions (if any) | 421 | /* Parse the extensions (if any) |
422 | */ | 422 | */ |
423 | if (neg_version >= MHD_GNUTLS_TLS1_0) | 423 | if (neg_version >= MHD_GNUTLS_PROTOCOL_TLS1_0) |
424 | { | 424 | { |
425 | ret = mhd_gtls_parse_extensions (session, EXTENSION_APPLICATION, &data[pos], len); /* len is the rest of the parsed length */ | 425 | ret = mhd_gtls_parse_extensions (session, EXTENSION_APPLICATION, &data[pos], len); /* len is the rest of the parsed length */ |
426 | if (ret < 0) | 426 | if (ret < 0) |
@@ -437,7 +437,7 @@ _gnutls_read_client_hello (mhd_gtls_session_t session, opaque * data, | |||
437 | return ret; | 437 | return ret; |
438 | } | 438 | } |
439 | 439 | ||
440 | if (neg_version >= MHD_GNUTLS_TLS1_0) | 440 | if (neg_version >= MHD_GNUTLS_PROTOCOL_TLS1_0) |
441 | { | 441 | { |
442 | ret = mhd_gtls_parse_extensions (session, EXTENSION_TLS, &data[pos], len); /* len is the rest of the parsed length */ | 442 | ret = mhd_gtls_parse_extensions (session, EXTENSION_TLS, &data[pos], len); /* len is the rest of the parsed length */ |
443 | if (ret < 0) | 443 | if (ret < 0) |
@@ -529,7 +529,7 @@ _gnutls_send_finished (mhd_gtls_session_t session, int again) | |||
529 | return ret; | 529 | return ret; |
530 | } | 530 | } |
531 | 531 | ||
532 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_SSL3) | 532 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_PROTOCOL_SSL3) |
533 | { | 533 | { |
534 | ret = | 534 | ret = |
535 | _gnutls_ssl3_finished (session, | 535 | _gnutls_ssl3_finished (session, |
@@ -581,7 +581,7 @@ _gnutls_recv_finished (mhd_gtls_session_t session) | |||
581 | } | 581 | } |
582 | 582 | ||
583 | 583 | ||
584 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_SSL3) | 584 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_PROTOCOL_SSL3) |
585 | { | 585 | { |
586 | data_size = 36; | 586 | data_size = 36; |
587 | } | 587 | } |
@@ -597,7 +597,7 @@ _gnutls_recv_finished (mhd_gtls_session_t session) | |||
597 | return GNUTLS_E_ERROR_IN_FINISHED_PACKET; | 597 | return GNUTLS_E_ERROR_IN_FINISHED_PACKET; |
598 | } | 598 | } |
599 | 599 | ||
600 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_SSL3) | 600 | if (MHD_gnutls_protocol_get_version (session) == MHD_GNUTLS_PROTOCOL_SSL3) |
601 | { | 601 | { |
602 | ret = | 602 | ret = |
603 | _gnutls_ssl3_finished (session, | 603 | _gnutls_ssl3_finished (session, |
@@ -1530,7 +1530,7 @@ _gnutls_read_server_hello (mhd_gtls_session_t session, | |||
1530 | 1530 | ||
1531 | /* Parse extensions. | 1531 | /* Parse extensions. |
1532 | */ | 1532 | */ |
1533 | if (version >= MHD_GNUTLS_TLS1_0) | 1533 | if (version >= MHD_GNUTLS_PROTOCOL_TLS1_0) |
1534 | { | 1534 | { |
1535 | ret = mhd_gtls_parse_extensions (session, EXTENSION_ANY, &data[pos], len); /* len is the rest of the parsed length */ | 1535 | ret = mhd_gtls_parse_extensions (session, EXTENSION_ANY, &data[pos], len); /* len is the rest of the parsed length */ |
1536 | if (ret < 0) | 1536 | if (ret < 0) |
@@ -1706,7 +1706,7 @@ _gnutls_send_client_hello (mhd_gtls_session_t session, int again) | |||
1706 | hver = session->internals.resumed_security_parameters.version; | 1706 | hver = session->internals.resumed_security_parameters.version; |
1707 | } | 1707 | } |
1708 | 1708 | ||
1709 | if (hver == MHD_GNUTLS_VERSION_UNKNOWN || hver == 0) | 1709 | if (hver == MHD_GNUTLS_PROTOCOL_VERSION_UNKNOWN || hver == 0) |
1710 | { | 1710 | { |
1711 | gnutls_assert (); | 1711 | gnutls_assert (); |
1712 | gnutls_free (data); | 1712 | gnutls_free (data); |
@@ -1810,7 +1810,7 @@ _gnutls_send_client_hello (mhd_gtls_session_t session, int again) | |||
1810 | 1810 | ||
1811 | /* Generate and copy TLS extensions. | 1811 | /* Generate and copy TLS extensions. |
1812 | */ | 1812 | */ |
1813 | if (hver >= MHD_GNUTLS_TLS1_0) | 1813 | if (hver >= MHD_GNUTLS_PROTOCOL_TLS1_0) |
1814 | { | 1814 | { |
1815 | extdatalen = | 1815 | extdatalen = |
1816 | mhd_gtls_gen_extensions (session, extdata, sizeof (extdata)); | 1816 | mhd_gtls_gen_extensions (session, extdata, sizeof (extdata)); |