diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-13 17:57:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-04-13 17:59:34 +0200 |
commit | 16190040c1a1fb0f9ac3e98df3f422e9301908dd (patch) | |
tree | 2515e8d7d0bc598e6afcfc86d279211dc6d4c7bc /lib | |
parent | 06e9b74896a2efbb49908847b93ab9ef8734bdd6 (diff) | |
download | gnutls-16190040c1a1fb0f9ac3e98df3f422e9301908dd.tar.gz |
Added priority string VERS-DTLS-ALL
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_priority.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c index 09dbbb55b6..fca4a59377 100644 --- a/lib/gnutls_priority.c +++ b/lib/gnutls_priority.c @@ -286,6 +286,11 @@ static const int protocol_priority[] = { 0 }; +static const int dtls_protocol_priority[] = { + GNUTLS_DTLS1_0, + 0 +}; + static const int protocol_priority_suiteb[] = { GNUTLS_TLS1_2, 0 @@ -926,6 +931,11 @@ gnutls_priority_init (gnutls_priority_t * priority_cache, bulk_fn (&(*priority_cache)->protocol, protocol_priority); } + else if (strncasecmp (&broken_list[i][1], "VERS-DTLS-ALL", 13) == 0) + { + bulk_fn (&(*priority_cache)->protocol, + dtls_protocol_priority); + } else { if ((algo = |