From: Jonathan Bastien-Filiatrault Date: Wed, 15 Jul 2009 23:48:33 +0000 (-0400) Subject: Add DTLS1.0 protocol entry. X-Git-Tag: gnutls_2_99_0~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aceb9810d60e528e9629ec68799f2e1a76cffa02;p=thirdparty%2Fgnutls.git Add DTLS1.0 protocol entry. Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index 7c0bf91b54..566b2e0697 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -144,6 +144,7 @@ static const gnutls_version_entry sup_versions[] = { {"TLS1.0", GNUTLS_TLS1, 3, 1, 1}, {"TLS1.1", GNUTLS_TLS1_1, 3, 2, 1}, {"TLS1.2", GNUTLS_TLS1_2, 3, 3, 1}, + {"DTLS1.0", GNUTLS_DTLS1_0, 254, 255, 1}, /* 1.1 over datagram */ {0, 0, 0, 0, 0} }; @@ -153,6 +154,7 @@ static const gnutls_protocol_t supported_protocols[] = { GNUTLS_TLS1, GNUTLS_TLS1_1, GNUTLS_TLS1_2, + GNUTLS_DTLS1_0, 0 }; diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index 0a3ec6c57d..177d9786e2 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -486,6 +486,7 @@ extern "C" * @GNUTLS_TLS1: Same as %GNUTLS_TLS1_0. * @GNUTLS_TLS1_1: TLS version 1.1. * @GNUTLS_TLS1_2: TLS version 1.2. + * @GNUTLS_DTLS1_0: DTLS version 1.0. * @GNUTLS_VERSION_MAX: Maps to the highest supported TLS version. * @GNUTLS_VERSION_UNKNOWN: Unknown SSL/TLS version. * @@ -498,7 +499,8 @@ extern "C" GNUTLS_TLS1 = GNUTLS_TLS1_0, GNUTLS_TLS1_1 = 3, GNUTLS_TLS1_2 = 4, - GNUTLS_VERSION_MAX = GNUTLS_TLS1_2, + GNUTLS_DTLS1_0 = 5, + GNUTLS_VERSION_MAX = GNUTLS_DTLS1_0, GNUTLS_VERSION_UNKNOWN = 0xff } gnutls_protocol_t;