From: Ben Laurie Date: Sat, 10 Apr 1999 12:09:17 +0000 (+0000) Subject: Rid the world of yet more evil casts. X-Git-Tag: OpenSSL_0_9_3beta1~351 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c0035435a9f4a5c7aee49ef7f8cfd7a4e32dbb4a;p=oweals%2Fopenssl.git Rid the world of yet more evil casts. --- diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index debefefa8b..0d3187d0b6 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -607,12 +607,12 @@ void (*free_func)(); int X509_STORE_CTX_set_ex_data(ctx,idx,data) X509_STORE_CTX *ctx; int idx; -char *data; +void *data; { return(CRYPTO_set_ex_data(&ctx->ex_data,idx,data)); } -char *X509_STORE_CTX_get_ex_data(ctx,idx) +void *X509_STORE_CTX_get_ex_data(ctx,idx) X509_STORE_CTX *ctx; int idx; { diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 03b40f2043..929045fac2 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -309,8 +309,8 @@ int X509_STORE_set_default_paths(X509_STORE *ctx); int X509_STORE_CTX_get_ex_new_index(long argl, char *argp, int (*new_func)(), int (*dup_func)(), void (*free_func)()); -int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx,int idx,char *data); -char * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx); +int X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx,int idx,void *data); +void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx); int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); @@ -370,7 +370,7 @@ int X509_STORE_set_default_paths(); int X509_STORE_CTX_get_ex_new_index(); int X509_STORE_CTX_set_ex_data(); -char * X509_STORE_CTX_get_ex_data(); +void * X509_STORE_CTX_get_ex_data(); int X509_STORE_CTX_get_error(); void X509_STORE_CTX_set_error(); int X509_STORE_CTX_get_error_depth();