Add sk_TYPE_new_reserve() function
authorPaul Yang <yang.yang@baishancloud.com>
Thu, 19 Oct 2017 17:42:39 +0000 (01:42 +0800)
committerPauli <paul.dale@oracle.com>
Wed, 25 Oct 2017 23:35:36 +0000 (09:35 +1000)
commit3ceab379fbaaf11b2adee0fb2a93c517272ee6c3
treea1c7b3f6fedd09b9afca618c8cecaf941e062096
parent82d89ef72515ad3d78c0160641faf30b8b024dda
Add sk_TYPE_new_reserve() function

This is a combination of sk_new and sk_reserve, to make it more
convenient to allocate a new stack with reserved memory and comaprison
function (if any).

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4559)
crypto/stack/stack.c
doc/man3/DEFINE_STACK_OF.pod
include/openssl/safestack.h
include/openssl/stack.h
util/libcrypto.num