From: Alexander Traud Date: Fri, 30 Oct 2020 10:53:32 +0000 (+0100) Subject: res_stir_shaken: Include OpenSSL headers where used actually. X-Git-Tag: 19.0.0-rc1~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64d2de19ee715ea38db77a4c465702538e4fd5a5;p=thirdparty%2Fasterisk.git res_stir_shaken: Include OpenSSL headers where used actually. This avoids the inclusion of the OpenSSL headers in the public header, which avoids one external library dependency in res_pjsip_stir_shaken. Change-Id: I6a07e2d81d2b5442e24e99b8cc733a99f881dcf4 --- diff --git a/include/asterisk/res_stir_shaken.h b/include/asterisk/res_stir_shaken.h index cad9282fc4..34d58a3068 100644 --- a/include/asterisk/res_stir_shaken.h +++ b/include/asterisk/res_stir_shaken.h @@ -18,9 +18,6 @@ #ifndef _RES_STIR_SHAKEN_H #define _RES_STIR_SHAKEN_H -#include -#include - #define STIR_SHAKEN_ENCRYPTION_ALGORITHM "ES256" #define STIR_SHAKEN_PPT "shaken" #define STIR_SHAKEN_TYPE "passport" diff --git a/res/res_pjsip_stir_shaken.c b/res/res_pjsip_stir_shaken.c index 60dfdc456d..58e86552af 100644 --- a/res/res_pjsip_stir_shaken.c +++ b/res/res_pjsip_stir_shaken.c @@ -17,7 +17,6 @@ */ /*** MODULEINFO - crypto pjproject res_pjsip res_pjsip_session diff --git a/res/res_stir_shaken.c b/res/res_stir_shaken.c index 30326d36b6..a9f861baa1 100644 --- a/res/res_stir_shaken.c +++ b/res/res_stir_shaken.c @@ -25,6 +25,8 @@ #include "asterisk.h" +#include + #include "asterisk/module.h" #include "asterisk/sorcery.h" #include "asterisk/time.h" diff --git a/res/res_stir_shaken/stir_shaken.c b/res/res_stir_shaken/stir_shaken.c index 220104a324..0b38732141 100644 --- a/res/res_stir_shaken/stir_shaken.c +++ b/res/res_stir_shaken/stir_shaken.c @@ -23,6 +23,9 @@ #include "asterisk.h" +#include +#include + #include "asterisk/cli.h" #include "asterisk/sorcery.h"