diff options
author | doug <> | 2017-08-27 02:58:04 +0000 |
---|---|---|
committer | doug <> | 2017-08-27 02:58:04 +0000 |
commit | 6c75fbeb689a4a6974cf8563cfed0607f7f765f0 (patch) | |
tree | af98c801c4a8cf65f19c593a6d95424d151a7e8b /src/lib/libssl/ssl_tlsext.h | |
parent | 69baf63b5056297bd9125ea95453d12c33f78e64 (diff) | |
download | openbsd-6c75fbeb689a4a6974cf8563cfed0607f7f765f0.tar.gz openbsd-6c75fbeb689a4a6974cf8563cfed0607f7f765f0.tar.bz2 openbsd-6c75fbeb689a4a6974cf8563cfed0607f7f765f0.zip |
Rewrite SRTP extension using CBB/CBS and the new extension framework.
input + ok beck@, jsing@
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.h')
-rw-r--r-- | src/lib/libssl/ssl_tlsext.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_tlsext.h b/src/lib/libssl/ssl_tlsext.h index 21f9bb1bf9..7c6250a7f7 100644 --- a/src/lib/libssl/ssl_tlsext.h +++ b/src/lib/libssl/ssl_tlsext.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_tlsext.h,v 1.9 2017/08/26 20:23:46 doug Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.h,v 1.10 2017/08/27 02:58:04 doug Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -72,6 +72,15 @@ int tlsext_sessionticket_serverhello_needs(SSL *s); | |||
72 | int tlsext_sessionticket_serverhello_build(SSL *s, CBB *cbb); | 72 | int tlsext_sessionticket_serverhello_build(SSL *s, CBB *cbb); |
73 | int tlsext_sessionticket_serverhello_parse(SSL *s, CBS *cbs, int *alert); | 73 | int tlsext_sessionticket_serverhello_parse(SSL *s, CBS *cbs, int *alert); |
74 | 74 | ||
75 | #ifndef OPENSSL_NO_SRTP | ||
76 | int tlsext_srtp_clienthello_needs(SSL *s); | ||
77 | int tlsext_srtp_clienthello_build(SSL *s, CBB *cbb); | ||
78 | int tlsext_srtp_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
79 | int tlsext_srtp_serverhello_needs(SSL *s); | ||
80 | int tlsext_srtp_serverhello_build(SSL *s, CBB *cbb); | ||
81 | int tlsext_srtp_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
82 | #endif | ||
83 | |||
75 | int tlsext_clienthello_build(SSL *s, CBB *cbb); | 84 | int tlsext_clienthello_build(SSL *s, CBB *cbb); |
76 | int tlsext_clienthello_parse_one(SSL *s, CBS *cbs, uint16_t tlsext_type, | 85 | int tlsext_clienthello_parse_one(SSL *s, CBS *cbs, uint16_t tlsext_type, |
77 | int *alert); | 86 | int *alert); |