projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1e088e
)
Only define PAGE_SIZE if not already defined.
author
Ben Laurie
<ben@links.org>
Fri, 31 Jul 2015 08:49:20 +0000
(09:49 +0100)
committer
Ben Laurie
<ben@links.org>
Fri, 31 Jul 2015 19:50:07 +0000
(20:50 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/sec_mem.c
patch
|
blob
|
history
diff --git
a/crypto/sec_mem.c
b/crypto/sec_mem.c
index 5bf8baace1d1ceb96bf271205cfddae4a7334b7c..a630cbc82e092daa4801323651093fdba3fce9ed 100644
(file)
--- a/
crypto/sec_mem.c
+++ b/
crypto/sec_mem.c
@@
-26,7
+26,9
@@
#define LOCK() CRYPTO_w_lock(CRYPTO_LOCK_MALLOC)
#define UNLOCK() CRYPTO_w_unlock(CRYPTO_LOCK_MALLOC)
#define CLEAR(p, s) OPENSSL_cleanse(p, s)
-#define PAGE_SIZE 4096
+#ifndef PAGE_SIZE
+# define PAGE_SIZE 4096
+#endif
#ifdef IMPLEMENTED
size_t secure_mem_used;