diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-06-07 18:12:59 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-06-20 19:56:02 +0200 |
commit | 5b15314d535e6fb76d3aa50d7174fd240b52c525 (patch) | |
tree | e82c578037d4724c66e8e499845d2230002b5370 /lib/includes/gnutls | |
parent | 2b9810f19cec0cc474e56c11110c86809bf8ec02 (diff) | |
download | gnutls-5b15314d535e6fb76d3aa50d7174fd240b52c525.tar.gz |
Added support for an old version of the DTLS protocol
used by openconnect vpn client for compatibility with Cisco's AnyConnect
SSL VPN. It is marked as GNUTLS_DTLS0_9. Do not use it for newer protocols
as it has issues.
Conflicts:
NEWS
lib/libgnutls.map
Diffstat (limited to 'lib/includes/gnutls')
-rw-r--r-- | lib/includes/gnutls/gnutls.h.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index 9d78967681..02832bfcae 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -503,6 +503,7 @@ extern "C" * @GNUTLS_TLS1_1: TLS version 1.1. * @GNUTLS_TLS1_2: TLS version 1.2. * @GNUTLS_DTLS1_0: DTLS version 1.0. + * @GNUTLS_DTLS0_9: DTLS version 0.9 (Cisco AnyConnect / OpenSSL 0.9.8e). * @GNUTLS_VERSION_MAX: Maps to the highest supported TLS version. * @GNUTLS_VERSION_UNKNOWN: Unknown SSL/TLS version. * @@ -516,7 +517,8 @@ extern "C" GNUTLS_TLS1_1 = 3, GNUTLS_TLS1_2 = 4, GNUTLS_DTLS1_0 = 5, - GNUTLS_VERSION_MAX = GNUTLS_DTLS1_0, + GNUTLS_DTLS0_9 = 6, + GNUTLS_VERSION_MAX = GNUTLS_DTLS0_9, GNUTLS_VERSION_UNKNOWN = 0xff } gnutls_protocol_t; @@ -965,6 +967,15 @@ gnutls_ecc_curve_t gnutls_ecc_curve_get(gnutls_session_t session); void gnutls_session_get_random (gnutls_session_t session, gnutls_datum_t* client, gnutls_datum_t* server); + int gnutls_session_set_premaster (gnutls_session_t session, unsigned int entity, + gnutls_protocol_t version, + gnutls_kx_algorithm_t kx, + gnutls_cipher_algorithm_t cipher, + gnutls_mac_algorithm_t mac, + gnutls_compression_method_t comp, + const gnutls_datum_t* master, + const gnutls_datum_t * session_id); + /* returns the session ID */ #define GNUTLS_MAX_SESSION_ID 32 int gnutls_session_get_id (gnutls_session_t session, void *session_id, |