diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-12-25 14:45:40 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-12-25 14:45:40 +0000 |
commit | e065e6cda2afd77c272992bb2bca382ce617ca27 (patch) | |
tree | 7bed179fe0cb8ac7db86eae0c60fe3e829c70593 /ssl/d1_lib.c | |
parent | 60553cc2091498c82bc39072b5c30777ae5592cb (diff) |
PR: 2535
Submitted by: Robin Seggelmann <seggelmann@fh-muenster.de>
Reviewed by: steve
Add SCTP support for DTLS (RFC 6083).
Diffstat (limited to 'ssl/d1_lib.c')
-rw-r--r-- | ssl/d1_lib.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |