aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-02-27 14:30:00 +0100
committerRichard Levitte <levitte@openssl.org>2017-06-29 19:19:40 +0200
commit7852f588a651ee30256678a23a6162a3b2fb822f (patch)
treef4afd24821b5eddf1b9d86f4335482e1d6a8f000 /include
parent8530039a307f7aa8acb0516fdd38191baa91d434 (diff)
downloadopenssl-7852f588a651ee30256678a23a6162a3b2fb822f.tar.gz
Make it possible to tell the file loader to use secure memory
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3483)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/store.h2
-rw-r--r--include/openssl/storeerr.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/store.h b/include/openssl/store.h
index d3947dfc0f..c6948f223d 100644
--- a/include/openssl/store.h
+++ b/include/openssl/store.h
@@ -62,6 +62,8 @@ int OSSL_STORE_ctrl(OSSL_STORE_CTX *ctx, int cmd, ... /* args */);
/*
* Common ctrl commands that different loaders may choose to support.
*/
+/* int on = 0 or 1; STORE_ctrl(ctx, STORE_C_USE_SECMEM, &on); */
+# define OSSL_STORE_C_USE_SECMEM 1
/* Where custom commands start */
# define OSSL_STORE_C_CUSTOM_START 100
diff --git a/include/openssl/storeerr.h b/include/openssl/storeerr.h
index 1e0d23c6bd..a049726a3d 100644
--- a/include/openssl/storeerr.h
+++ b/include/openssl/storeerr.h
@@ -22,6 +22,7 @@ int ERR_load_OSSL_STORE_strings(void);
/*
* OSSL_STORE function codes.
*/
+# define OSSL_STORE_F_FILE_CTRL 129
# define OSSL_STORE_F_FILE_GET_PASS 118
# define OSSL_STORE_F_FILE_LOAD 119
# define OSSL_STORE_F_FILE_LOAD_TRY_DECODE 124