Add functions to add certs to stacks, used for CA file/path stuff in servers.

This commit is contained in:
Ben Laurie
1999-02-28 17:41:55 +00:00
parent 49bc262459
commit eb90a483ad
9 changed files with 161 additions and 48 deletions

View File

@@ -82,13 +82,17 @@ char *STACK_version="Stack part of OpenSSL 0.9.2 31-Dec-1998";
#include <errno.h>
void sk_set_cmp_func(sk,c)
int (*sk_set_cmp_func(sk,c))()
STACK *sk;
int (*c)();
{
int (*old)()=sk->comp;
if (sk->comp != c)
sk->sorted=0;
sk->comp=c;
return old;
}
STACK *sk_dup(sk)