aboutsummaryrefslogtreecommitdiffstats
path: root/main/aeskey.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-24 22:07:50 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-24 22:07:50 +0000
commit13417b262fc5bc8660119c444d99ba792220af94 (patch)
treef7d460f19cb2b61dfa1bd6eca49cf1e3afb09fcc /main/aeskey.c
parentfb966a66a6f133dc15c95c01dcbef4532311898f (diff)
use the OpenSSL AES implementation if it's available (unless configured not to)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66071 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/aeskey.c')
-rw-r--r--main/aeskey.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/aeskey.c b/main/aeskey.c
index d34badc6b..cd0c7faf8 100644
--- a/main/aeskey.c
+++ b/main/aeskey.c
@@ -41,13 +41,15 @@
* \author Dr Brian Gladman <brg@gladman.me.uk>
*/
-#include "aesopt.h"
-
#if defined(__cplusplus)
extern "C"
{
#endif
+#ifndef HAVE_CRYPTO
+
+#include "aesopt.h"
+
/* Initialise the key schedule from the user supplied key. The key
length can be specified in bytes, with legal values of 16, 24
and 32, or in bits, with legal values of 128, 192 and 256. These
@@ -464,6 +466,8 @@ aes_rval aes_decrypt_key(const void *in_key, int key_len, aes_decrypt_ctx cx[1])
#endif
+#endif /* !HAVE_CRYPTO */
+
#if defined(__cplusplus)
}
#endif