From 838d25a1ec0011fde245a22ac1cf6cddc518ddfb Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sun, 30 May 1999 14:13:19 +0000 Subject: [PATCH] More safe stack. --- ssl/ssl.h | 2 +- ssl/ssl_cert.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ssl/ssl.h b/ssl/ssl.h index 8983cf97fa..4f41f23638 100644 --- a/ssl/ssl.h +++ b/ssl/ssl.h @@ -1025,7 +1025,7 @@ long SSL_get_default_timeout(SSL *s); int SSL_library_init(void ); char *SSL_CIPHER_description(SSL_CIPHER *,char *buf,int size); -STACK *SSL_dup_CA_list(STACK *sk); +STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk); SSL *SSL_dup(SSL *ssl); diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 9a8a8cc816..ec2eb6139d 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -452,19 +452,19 @@ static void set_client_CA_list(STACK_OF(X509_NAME) **ca_list,STACK_OF(X509_NAME) *ca_list=list; } -STACK *SSL_dup_CA_list(STACK *sk) +STACK_OF(X509_NAME) *SSL_dup_CA_list(STACK_OF(X509_NAME) *sk) { int i; - STACK *ret; + STACK_OF(X509_NAME) *ret; X509_NAME *name; - ret=sk_new_null(); - for (i=0; i