diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-06-18 15:05:24 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-30 12:58:21 -0400 |
commit | c0c9c0c026d9676c9ebb6f5b0b900b8c3fac6673 (patch) | |
tree | 4791aa65cd353379aba314458d745d5681323915 /crypto | |
parent | 7e1445b03e46db64425f63c060b3ff74295067e5 (diff) |
Constify a bit more OPENSSL_sk_ API
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1244)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/stack/stack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/stack/stack.c b/crypto/stack/stack.c index 1d1d791e0a..02be8af738 100644 --- a/crypto/stack/stack.c +++ b/crypto/stack/stack.c @@ -36,7 +36,7 @@ OPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk, OPENSSL_sk_compfu return old; } -OPENSSL_STACK *OPENSSL_sk_dup(OPENSSL_STACK *sk) +OPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *sk) { OPENSSL_STACK *ret; @@ -55,7 +55,8 @@ OPENSSL_STACK *OPENSSL_sk_dup(OPENSSL_STACK *sk) return NULL; } -OPENSSL_STACK *OPENSSL_sk_deep_copy(OPENSSL_STACK *sk, OPENSSL_sk_copyfunc copy_func, +OPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *sk, + OPENSSL_sk_copyfunc copy_func, OPENSSL_sk_freefunc free_func) { OPENSSL_STACK *ret; |