From 7e159e0133d28bec9148446e8f4dd86c0216d819 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 25 Dec 2011 14:45:15 +0000 Subject: PR: 2535 Submitted by: Robin Seggelmann Reviewed by: steve Add SCTP support for DTLS (RFC 6083). --- ssl/d1_lib.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ssl/d1_lib.c') diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index a94290a834..4999f0151b 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -292,6 +292,15 @@ const SSL_CIPHER *dtls1_get_cipher(unsigned int u) void dtls1_start_timer(SSL *s) { +#ifndef OPENSSL_NO_SCTP + /* Disable timer for SCTP */ + if (BIO_dgram_is_sctp(SSL_get_wbio(s))) + { + memset(&(s->d1->next_timeout), 0, sizeof(struct timeval)); + return; + } +#endif + /* If timer is not set, initialize duration with 1 second */ if (s->d1->next_timeout.tv_sec == 0 && s->d1->next_timeout.tv_usec == 0) { -- cgit v1.2.3