diff options
author | Matt Caswell <matt@openssl.org> | 2016-06-15 15:32:38 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-18 15:34:03 +0100 |
commit | ac94c8fdb9e8a36e616c80fa8c4aadb455144019 (patch) | |
tree | a5e35dbd815cabd2a3cf9b18e49e59be3c7dfbf3 /include | |
parent | 98370c2dd7dc32cecd7bb7d940383846fa435f25 (diff) |
Improve const correctness for stacks of EVP_MD
EVP_MDs are always const, so stacks of them should be too. This silences
a warning about type punning on OpenBSD.
RT4378
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openssl/ts.h b/include/openssl/ts.h index d512648913..3fbaf55ae2 100644 --- a/include/openssl/ts.h +++ b/include/openssl/ts.h @@ -306,7 +306,7 @@ typedef int (*TS_extension_cb) (struct TS_resp_ctx *, X509_EXTENSION *, typedef struct TS_resp_ctx TS_RESP_CTX; -DEFINE_STACK_OF(EVP_MD) +DEFINE_STACK_OF_CONST(EVP_MD) /* Creates a response context that can be used for generating responses. */ TS_RESP_CTX *TS_RESP_CTX_new(void); |