From 7763aa824e23e3545f88fd3ec753fe6318dc0bd3 Mon Sep 17 00:00:00 2001 From: Alexander Traud Date: Fri, 8 Jun 2018 11:06:44 +0200 Subject: [PATCH] res_crypto: Allow OpenSSL configured with no-deprecated. The header had to be included explicitly. ASTERISK-27906 Change-Id: I41743801eed998c039d73db7a0762d104a4f75b2 --- res/res_crypto.c | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/res/res_crypto.c b/res/res_crypto.c index 1683427919..52b70e85ed 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -35,21 +35,28 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include "asterisk/paths.h" /* use ast_config_AST_KEY_DIR */ -#include -#include -#include -#include - -#include "asterisk/module.h" -#include "asterisk/md5.h" -#include "asterisk/cli.h" -#include "asterisk/io.h" -#include "asterisk/lock.h" -#include "asterisk/utils.h" +#include /* for closedir, opendir, readdir, DIR */ + +#include /* for AES_decrypt, AES_encrypt, AES_set... */ +#include /* for ERR_print_errors_fp */ +#include /* for NID_sha1, RSA */ +#include /* for PEM_read_RSAPrivateKey, PEM_read_... */ +#include /* for RSA_free, RSA_private_decrypt, RSA */ +#include /* for SHA1 */ + +#include "asterisk/cli.h" /* for ast_cli, ast_cli_args, ast_cli_entry */ +#include "asterisk/compat.h" /* for strcasecmp */ +#include "asterisk/io.h" /* for ast_hide_password, ast_restore_tty */ +#include "asterisk/linkedlists.h" /* for AST_RWLIST_TRAVERSE, AST_RWLIST_U... */ +#include "asterisk/logger.h" /* for ast_log, LOG_WARNING, LOG_NOTICE */ +#include "asterisk/md5.h" /* for MD5Final, MD5Init, MD5Update, MD5... */ +#include "asterisk/module.h" /* for ast_module_flags::AST_MODFLAG_GLO... */ +#include "asterisk/options.h" /* for ast_opt_init_keys */ +#include "asterisk/paths.h" /* for ast_config_AST_KEY_DIR */ +#include "asterisk/utils.h" /* for ast_copy_string, ast_base64decode */ #define AST_API_MODULE -#include "asterisk/crypto.h" +#include "asterisk/crypto.h" /* for AST_KEY_PUBLIC, AST_KEY_PRIVATE */ /* * Asterisk uses RSA keys with SHA-1 message digests for its