diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-02-07 20:44:27 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-03-09 19:10:28 +0100 |
commit | e4646a8963fa6bc6f475afe7a9b9a46b151cfd1a (patch) | |
tree | fa27565e3bd8bbe6435db6293f1879e88bf1f5ca /include | |
parent | ca74c38dc874e46ad913f2f6a7560125ad560aea (diff) | |
download | openssl-e4646a8963fa6bc6f475afe7a9b9a46b151cfd1a.tar.gz |
Constify security callbacks
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
MR: #1595
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index adfad4c369..ca83c6009b 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1990,10 +1990,10 @@ int SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path); void SSL_set_security_level(SSL *s, int level); __owur int SSL_get_security_level(const SSL *s); void SSL_set_security_callback(SSL *s, - int (*cb) (SSL *s, SSL_CTX *ctx, int op, + int (*cb) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid, void *other, void *ex)); -int (*SSL_get_security_callback(const SSL *s)) (SSL *s, SSL_CTX *ctx, int op, +int (*SSL_get_security_callback(const SSL *s)) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid, void *other, void *ex); void SSL_set0_security_ex_data(SSL *s, void *ex); @@ -2002,11 +2002,11 @@ __owur void *SSL_get0_security_ex_data(const SSL *s); void SSL_CTX_set_security_level(SSL_CTX *ctx, int level); __owur int SSL_CTX_get_security_level(const SSL_CTX *ctx); void SSL_CTX_set_security_callback(SSL_CTX *ctx, - int (*cb) (SSL *s, SSL_CTX *ctx, int op, + int (*cb) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid, void *other, void *ex)); -int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (SSL *s, - SSL_CTX *ctx, +int (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s, + const SSL_CTX *ctx, int op, int bits, int nid, void *other, |