summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-09-08 16:18:42 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2022-01-09 12:04:22 +0100
commit555a53f10d85198d6e58e599983265b14e0d6797 (patch)
tree0582d023c274577487185838c5040a1a35e1dea0 /include
parent3fb3acf58e029203ec04c21a689181d38c50ce82 (diff)
downloadmariadb-git-555a53f10d85198d6e58e599983265b14e0d6797.tar.gz
Windows : fix broken build with OpenSSL
Diffstat (limited to 'include')
-rw-r--r--include/ssl_compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ssl_compat.h b/include/ssl_compat.h
index 2777ae94527..c94b9671d5f 100644
--- a/include/ssl_compat.h
+++ b/include/ssl_compat.h
@@ -30,9 +30,9 @@
#define EVP_CIPHER_CTX_SIZE 176
#define EVP_MD_CTX_SIZE 48
#undef EVP_MD_CTX_init
-#define EVP_MD_CTX_init(X) do { bzero((X), EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0)
+#define EVP_MD_CTX_init(X) do { memset((X), 0, EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0)
#undef EVP_CIPHER_CTX_init
-#define EVP_CIPHER_CTX_init(X) do { bzero((X), EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0)
+#define EVP_CIPHER_CTX_init(X) do { memset((X), 0, EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0)
/*
Macros below are deprecated. OpenSSL 1.1 may define them or not,