Tidy up CRYPTO_EX_DATA structures.
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 3eda14a..48f247c 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c
@@ -431,8 +431,7 @@ 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.