<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9142">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  George Joseph: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_crypto: Allow OpenSSL configured with no-deprecated.<br><br>The header <openssl/rsa.h> had to be included explicitly.<br><br>ASTERISK-27906<br><br>Change-Id: I41743801eed998c039d73db7a0762d104a4f75b2<br>---<br>M res/res_crypto.c<br>1 file changed, 19 insertions(+), 12 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/res/res_crypto.c b/res/res_crypto.c<br>index 8f97ce9..46003bc 100644<br>--- a/res/res_crypto.c<br>+++ b/res/res_crypto.c<br>@@ -33,21 +33,28 @@<br> <br> #include "asterisk.h"<br> <br>-#include "asterisk/paths.h"   /* use ast_config_AST_KEY_DIR */<br>-#include <openssl/ssl.h><br>-#include <openssl/err.h><br>-#include <openssl/aes.h><br>-#include <dirent.h><br>+#include <dirent.h>                 /* for closedir, opendir, readdir, DIR */<br> <br>-#include "asterisk/module.h"<br>-#include "asterisk/md5.h"<br>-#include "asterisk/cli.h"<br>-#include "asterisk/io.h"<br>-#include "asterisk/lock.h"<br>-#include "asterisk/utils.h"<br>+#include <openssl/aes.h>            /* for AES_decrypt, AES_encrypt, AES_set... */<br>+#include <openssl/err.h>            /* for ERR_print_errors_fp */<br>+#include <openssl/ssl.h>            /* for NID_sha1, RSA */<br>+#include <openssl/pem.h>            /* for PEM_read_RSAPrivateKey, PEM_read_... */<br>+#include <openssl/rsa.h>            /* for RSA_free, RSA_private_decrypt, RSA */<br>+#include <openssl/sha.h>            /* for SHA1 */<br>+<br>+#include "asterisk/cli.h"           /* for ast_cli, ast_cli_args, ast_cli_entry */<br>+#include "asterisk/compat.h"        /* for strcasecmp */<br>+#include "asterisk/io.h"            /* for ast_hide_password, ast_restore_tty */<br>+#include "asterisk/linkedlists.h"   /* for AST_RWLIST_TRAVERSE, AST_RWLIST_U... */<br>+#include "asterisk/logger.h"        /* for ast_log, LOG_WARNING, LOG_NOTICE */<br>+#include "asterisk/md5.h"           /* for MD5Final, MD5Init, MD5Update, MD5... */<br>+#include "asterisk/module.h"        /* for ast_module_flags::AST_MODFLAG_GLO... */<br>+#include "asterisk/options.h"       /* for ast_opt_init_keys */<br>+#include "asterisk/paths.h"         /* for ast_config_AST_KEY_DIR */<br>+#include "asterisk/utils.h"         /* for ast_copy_string, ast_base64decode */<br> <br> #define AST_API_MODULE<br>-#include "asterisk/crypto.h"<br>+#include "asterisk/crypto.h"        /* for AST_KEY_PUBLIC, AST_KEY_PRIVATE */<br> <br> /*<br>  * Asterisk uses RSA keys with SHA-1 message digests for its<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9142">change 9142</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9142"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I41743801eed998c039d73db7a0762d104a4f75b2 </div>
<div style="display:none"> Gerrit-Change-Number: 9142 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>