diff options
author | Bodo Möller <bodo@openssl.org> | 2002-02-28 10:52:56 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2002-02-28 10:52:56 +0000 |
commit | 023ec151df447fbb12bba8dddb0bf1396c44014e (patch) | |
tree | 07b3265ce3163980f86c1c209d72e6a47aebc217 /ssl/ssl.h | |
parent | 59dbdb51dc41fb871f491e7d91bf6d8aae7078a5 (diff) |
Add 'void *' argument to app_verify_callback.
Submitted by: D. K. Smetters <smetters@parc.xerox.com>
Reviewed by: Bodo Moeller
Diffstat (limited to 'ssl/ssl.h')
-rw-r--r-- | ssl/ssl.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -607,8 +607,10 @@ struct ssl_ctx_st int references; /* if defined, these override the X509_verify_cert() calls */ - int (*app_verify_callback)(); - char *app_verify_arg; /* never used; should be void * */ + int (*app_verify_callback)(X509_STORE_CTX *, void *); + void *app_verify_arg; + /* before OpenSSL 0.9.7, 'app_verify_arg' was ignored + * ('app_verify_callback' was called with just one argument) */ /* Default password callback. */ pem_password_cb *default_passwd_callback; @@ -1232,7 +1234,7 @@ int (*SSL_CTX_get_verify_callback(SSL_CTX *ctx))(int,X509_STORE_CTX *); void SSL_CTX_set_verify(SSL_CTX *ctx,int mode, int (*callback)(int, X509_STORE_CTX *)); void SSL_CTX_set_verify_depth(SSL_CTX *ctx,int depth); -void SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx, int (*cb)(),char *arg); +void SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx, int (*cb)(X509_STORE_CTX *,void *), void *arg); #ifndef OPENSSL_NO_RSA int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa); #endif |