aboutsummaryrefslogtreecommitdiffstats
path: root/include/openssl/safestack.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/openssl/safestack.h')
-rw-r--r--include/openssl/safestack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/safestack.h b/include/openssl/safestack.h
index 4241c4ff3b..7438b19360 100644
--- a/include/openssl/safestack.h
+++ b/include/openssl/safestack.h
@@ -40,6 +40,10 @@ extern "C" {
{ \
return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \
} \
+ static ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \
+ { \
+ return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \
+ } \
static ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \
{ \
return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \