From db6711a654198f70b1c5c714e2b6554604de012a Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 23 Jan 2000 23:40:35 +0000 Subject: Tidy up CRYPTO_EX_DATA structures. --- ssl/ssl_cert.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ssl/ssl_cert.c') diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 3eda14aea..48f247cea 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -431,8 +431,7 @@ int ssl_verify_cert_chain(SSL *s,STACK_OF(X509) *sk) X509_STORE_CTX_init(&ctx,s->ctx->cert_store,x,sk); if (SSL_get_verify_depth(s) >= 0) X509_STORE_CTX_set_depth(&ctx, SSL_get_verify_depth(s)); - X509_STORE_CTX_set_ex_data(&ctx,SSL_get_ex_data_X509_STORE_CTX_idx(), - (char *)s); + X509_STORE_CTX_set_ex_data(&ctx,SSL_get_ex_data_X509_STORE_CTX_idx(),s); /* We need to set the verify purpose. The purpose can be determined by * the context: if its a server it will verify SSL client certificates * or vice versa. -- cgit v1.2.1