diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_srtp.c | 16 |
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, | |||
| 227 | int | 227 | int |
| 228 | SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles) | 228 | SSL_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 | ||
| 233 | int | 233 | int |
| 234 | SSL_set_tlsext_use_srtp(SSL *s, const char *profiles) | 234 | SSL_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) * | |||
| 241 | SSL_get_srtp_profiles(SSL *s) | 241 | SSL_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 * | |||
| 256 | SSL_get_selected_srtp_profile(SSL *s) | 256 | SSL_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 |
