projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Constify security callbacks
[openssl.git]
/
ssl
/
ssl_lib.c
diff --git
a/ssl/ssl_lib.c
b/ssl/ssl_lib.c
index 2fa323a41d9560813892e3bb3557577562ce1401..94d0a220e5165b58a3034418bd8d493df3caaafb 100644
(file)
--- a/
ssl/ssl_lib.c
+++ b/
ssl/ssl_lib.c
@@
-3786,14
+3786,14
@@
int SSL_get_security_level(const SSL *s)
}
void SSL_set_security_callback(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))
{
s->cert->sec_cb = cb;
}
int bits, int nid, void *other,
void *ex))
{
s->cert->sec_cb = cb;
}
-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) {
return s->cert->sec_cb;
int bits, int nid,
void *other, void *ex) {
return s->cert->sec_cb;
@@
-3820,15
+3820,15
@@
int SSL_CTX_get_security_level(const SSL_CTX *ctx)
}
void SSL_CTX_set_security_callback(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))
{
ctx->cert->sec_cb = cb;
}
int bits, int nid, void *other,
void *ex))
{
ctx->cert->sec_cb = cb;
}
-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,
int op, int bits,
int nid,
void *other,