summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Bastien-Filiatrault <joe@x2a.org>2009-07-15 19:48:33 -0400
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-02-17 22:23:21 +0100
commitaceb9810d60e528e9629ec68799f2e1a76cffa02 (patch)
tree96f022074bdfcf631ebde703eeb7e5e2e68a6eed
parent183bc93e31faa4d127ce07c4b86b9428612f49eb (diff)
downloadgnutls-aceb9810d60e528e9629ec68799f2e1a76cffa02.tar.gz
Add DTLS1.0 protocol entry.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/gnutls_algorithms.c2
-rw-r--r--lib/includes/gnutls/gnutls.h.in4
2 files changed, 5 insertions, 1 deletions
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;