]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add DTLS1.0 protocol entry.
authorJonathan Bastien-Filiatrault <joe@x2a.org>
Wed, 15 Jul 2009 23:48:33 +0000 (19:48 -0400)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 17 Feb 2011 21:23:21 +0000 (22:23 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/gnutls_algorithms.c
lib/includes/gnutls/gnutls.h.in

index 7c0bf91b543bd8c83b23ed36a15cab6a6d3c8f5b..566b2e0697056941081cd28990d1aba3434ac260 100644 (file)
@@ -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
 };
 
index 0a3ec6c57de17afa8ffd0c629aa8afe0f46e3a0d..177d9786e2b3db9010997953879aa48bf8c7587b 100644 (file)
@@ -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;