summaryrefslogtreecommitdiff
path: root/mysys_ssl
diff options
context:
space:
mode:
Diffstat (limited to 'mysys_ssl')
-rw-r--r--mysys_ssl/my_crypt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys_ssl/my_crypt.cc b/mysys_ssl/my_crypt.cc
index 0d49999fdfa..d92f76d633b 100644
--- a/mysys_ssl/my_crypt.cc
+++ b/mysys_ssl/my_crypt.cc
@@ -11,7 +11,6 @@
#include "mysql.h"
#include <openssl/evp.h>
#include <openssl/aes.h>
-#include <openssl/rand.h>
static const int CRYPT_ENCRYPT = 1;
static const int CRYPT_DECRYPT = 0;
@@ -350,6 +349,8 @@ C_MODE_END
#else /* OpenSSL */
+#include <openssl/rand.h>
+
C_MODE_START
Crypt_result my_random_bytes(uchar* buf, int num)