From cf4f2d84dc28ba414e3393af58d6ca57b835049d Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Fri, 3 Nov 2023 05:14:36 +0100 Subject: [PATCH] Hide private symbols (#3756) --- third_party/srtp/pjlib/srtp_err.c | 2 +- third_party/srtp/srtp/srtp.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/third_party/srtp/pjlib/srtp_err.c b/third_party/srtp/pjlib/srtp_err.c index f154cb306..d09688055 100644 --- a/third_party/srtp/pjlib/srtp_err.c +++ b/third_party/srtp/pjlib/srtp_err.c @@ -20,7 +20,7 @@ /* Redirect libsrtp error to PJ_LOG */ -srtp_err_reporting_level_t err_level = srtp_err_level_error; +static srtp_err_reporting_level_t err_level = srtp_err_level_error; void srtp_err_report(srtp_err_reporting_level_t priority, const char *format, ...) { diff --git a/third_party/srtp/srtp/srtp.c b/third_party/srtp/srtp/srtp.c index 411d4ba23..320bad565 100644 --- a/third_party/srtp/srtp/srtp.c +++ b/third_party/srtp/srtp/srtp.c @@ -4639,11 +4639,11 @@ unsigned int srtp_profile_get_master_salt_length(srtp_profile_t profile) } } -srtp_err_status_t stream_get_protect_trailer_length(srtp_stream_ctx_t *stream, - uint32_t is_rtp, - uint32_t use_mki, - uint32_t mki_index, - uint32_t *length) +static srtp_err_status_t stream_get_protect_trailer_length(srtp_stream_ctx_t *stream, + uint32_t is_rtp, + uint32_t use_mki, + uint32_t mki_index, + uint32_t *length) { srtp_session_keys_t *session_key; @@ -4696,11 +4696,11 @@ static int get_protect_trailer_length_cb(srtp_stream_t stream, void *raw_data) return 0; } -srtp_err_status_t get_protect_trailer_length(srtp_t session, - uint32_t is_rtp, - uint32_t use_mki, - uint32_t mki_index, - uint32_t *length) +static srtp_err_status_t get_protect_trailer_length(srtp_t session, + uint32_t is_rtp, + uint32_t use_mki, + uint32_t mki_index, + uint32_t *length) { srtp_stream_ctx_t *stream; struct get_protect_trailer_length_data data = { 0, 0, is_rtp, use_mki,