summaryrefslogtreecommitdiff
path: root/lib/tls13/hello_retry.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tls13/hello_retry.c')
-rw-r--r--lib/tls13/hello_retry.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/tls13/hello_retry.c b/lib/tls13/hello_retry.c
index 1226733329..e20cbed210 100644
--- a/lib/tls13/hello_retry.c
+++ b/lib/tls13/hello_retry.c
@@ -35,7 +35,14 @@ int _gnutls13_send_hello_retry_request(gnutls_session_t session, unsigned again)
mbuffer_st *bufel = NULL;
gnutls_buffer_st buf;
const version_entry_st *ver;
- const uint8_t vbuf[2] = {0x03, 0x03};
+ uint8_t vbuf[2];
+ if (IS_DTLS(session)) {
+ vbuf[0] = 0xfe;
+ vbuf[1] = 0xfd;
+ } else {
+ vbuf[0] = 0x03;
+ vbuf[1] = 0x03;
+ }
if (again == 0) {
ver = get_version(session);