diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-15 16:25:21 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-18 15:34:03 +0100 |
commit | 1dcb8ca2a4aa71964105b24fa7c6254a58b7ad35 (patch) | |
tree | 23ccbb9400fa7158150875f143040294fdd91538 /include | |
parent | 6b44f2597e9ab5fc606426e463b491f857696253 (diff) | |
download | openssl-1dcb8ca2a4aa71964105b24fa7c6254a58b7ad35.tar.gz |
Use a STACK_OF(OPENSSL_CSTRING) for const char * stacks
Better than losing the const qualifier.
RT4378
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/safestack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/safestack.h b/include/openssl/safestack.h index 306b3acc57..fb8d9104cd 100644 --- a/include/openssl/safestack.h +++ b/include/openssl/safestack.h @@ -120,6 +120,8 @@ extern "C" { # define DEFINE_SPECIAL_STACK_OF(t1, t2) SKM_DEFINE_STACK_OF(t1, t2, t2) # define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t) +# define DEFINE_SPECIAL_STACK_OF_CONST(t1, t2) \ + SKM_DEFINE_STACK_OF(t1, const t2, t2) # define DEFINE_STACK_OF_CONST(t) SKM_DEFINE_STACK_OF(t, const t, t) /*- @@ -147,6 +149,7 @@ typedef const char *OPENSSL_CSTRING; * dealt with in the autogenerated macros below. */ DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char) +DEFINE_SPECIAL_STACK_OF_CONST(OPENSSL_CSTRING, char) /* * Similarly, we sometimes use a block of characters, NOT nul-terminated. |