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
This commit is contained in:
Alexander Traud 2020-10-30 11:53:32 +01:00 committed by Friendly Automation
parent c635c78265
commit be54c7e9ea
4 changed files with 5 additions and 4 deletions

View File

@ -18,9 +18,6 @@
#ifndef _RES_STIR_SHAKEN_H
#define _RES_STIR_SHAKEN_H
#include <openssl/evp.h>
#include <openssl/pem.h>
#define STIR_SHAKEN_ENCRYPTION_ALGORITHM "ES256"
#define STIR_SHAKEN_PPT "shaken"
#define STIR_SHAKEN_TYPE "passport"

View File

@ -17,7 +17,6 @@
*/
/*** MODULEINFO
<depend>crypto</depend>
<depend>pjproject</depend>
<depend>res_pjsip</depend>
<depend>res_pjsip_session</depend>

View File

@ -25,6 +25,8 @@
#include "asterisk.h"
#include <openssl/evp.h>
#include "asterisk/module.h"
#include "asterisk/sorcery.h"
#include "asterisk/time.h"

View File

@ -23,6 +23,9 @@
#include "asterisk.h"
#include <openssl/evp.h>
#include <openssl/pem.h>
#include "asterisk/cli.h"
#include "asterisk/sorcery.h"