summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_srtp.c
diff options
context:
space:
mode:
authorjsing <>2022-10-02 16:36:42 +0000
committerjsing <>2022-10-02 16:36:42 +0000
commit7a087580717329de5ef02600e4e1489d86249a88 (patch)
tree739f174130582d68ff159ff94cdb3fb2185e31ef /src/lib/libssl/d1_srtp.c
parentd5e660940f76ba9fedb2400c0fa888e996ee93c9 (diff)
downloadopenbsd-7a087580717329de5ef02600e4e1489d86249a88.tar.gz
openbsd-7a087580717329de5ef02600e4e1489d86249a88.tar.bz2
openbsd-7a087580717329de5ef02600e4e1489d86249a88.zip
Get rid of SSL_CTX_INTERNAL and SSL_INTERNAL.
These are no longer necessary due to SSL_CTX and SSL now being fully opaque. Merge SSL_CTX_INTERNAL back into SSL_CTX and SSL_INTERNAL back into SSL. Prompted by tb@
Diffstat (limited to 'src/lib/libssl/d1_srtp.c')
-rw-r--r--src/lib/libssl/d1_srtp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libssl/d1_srtp.c b/src/lib/libssl/d1_srtp.c
index 793fa868d7..1c23409736 100644
--- a/src/lib/libssl/d1_srtp.c
+++ b/src/lib/libssl/d1_srtp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_srtp.c,v 1.30 2022/01/28 13:11:56 inoguchi Exp $ */ 1/* $OpenBSD: d1_srtp.c,v 1.31 2022/10/02 16:36:41 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -227,13 +227,13 @@ ssl_ctx_make_profiles(const char *profiles_string,
227int 227int
228SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles) 228SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles)
229{ 229{
230 return ssl_ctx_make_profiles(profiles, &ctx->internal->srtp_profiles); 230 return ssl_ctx_make_profiles(profiles, &ctx->srtp_profiles);
231} 231}
232 232
233int 233int
234SSL_set_tlsext_use_srtp(SSL *s, const char *profiles) 234SSL_set_tlsext_use_srtp(SSL *s, const char *profiles)
235{ 235{
236 return ssl_ctx_make_profiles(profiles, &s->internal->srtp_profiles); 236 return ssl_ctx_make_profiles(profiles, &s->srtp_profiles);
237} 237}
238 238
239 239
@@ -241,11 +241,11 @@ STACK_OF(SRTP_PROTECTION_PROFILE) *
241SSL_get_srtp_profiles(SSL *s) 241SSL_get_srtp_profiles(SSL *s)
242{ 242{
243 if (s != NULL) { 243 if (s != NULL) {
244 if (s->internal->srtp_profiles != NULL) { 244 if (s->srtp_profiles != NULL) {
245 return s->internal->srtp_profiles; 245 return s->srtp_profiles;
246 } else if ((s->ctx != NULL) && 246 } else if ((s->ctx != NULL) &&
247 (s->ctx->internal->srtp_profiles != NULL)) { 247 (s->ctx->srtp_profiles != NULL)) {
248 return s->ctx->internal->srtp_profiles; 248 return s->ctx->srtp_profiles;
249 } 249 }
250 } 250 }
251 251
@@ -256,7 +256,7 @@ SRTP_PROTECTION_PROFILE *
256SSL_get_selected_srtp_profile(SSL *s) 256SSL_get_selected_srtp_profile(SSL *s)
257{ 257{
258 /* XXX cast away the const */ 258 /* XXX cast away the const */
259 return (SRTP_PROTECTION_PROFILE *)s->internal->srtp_profile; 259 return (SRTP_PROTECTION_PROFILE *)s->srtp_profile;
260} 260}
261 261
262#endif 262#endif