From 879219b2c00c8f73aa7af1fa98328f6163d0717f Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 21 Jul 2015 14:54:46 -0700 Subject: [PATCH] Move the declaration of kSRTPProfiles to ssl/internal.h (This will cause the compile to warn us if we fail to keep the types in sync.) Change-Id: I8c395ca595d895d108c5ba8f4c46ecca620c405e --- ssl/internal.h | 1 + ssl/t1_lib.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/internal.h b/ssl/internal.h index 1a28245f..297c1554 100644 --- a/ssl/internal.h +++ b/ssl/internal.h @@ -790,6 +790,7 @@ extern const SSL3_ENC_METHOD TLSv1_enc_data; extern const SSL3_ENC_METHOD TLSv1_1_enc_data; extern const SSL3_ENC_METHOD TLSv1_2_enc_data; extern const SSL3_ENC_METHOD SSLv3_enc_data; +extern const SRTP_PROTECTION_PROFILE kSRTPProfiles[]; void ssl_clear_cipher_ctx(SSL *s); int ssl_clear_bad_session(SSL *s); diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index 56df2afb..2607931f 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1765,7 +1765,6 @@ static int ext_channel_id_add_serverhello(SSL *ssl, CBB *out) { * * https://tools.ietf.org/html/rfc5764 */ -extern const SRTP_PROTECTION_PROFILE kSRTPProfiles[]; static void ext_srtp_init(SSL *ssl) { ssl->srtp_profile = NULL;