Constify security callbacks
Reviewed-by: Viktor Dukhovni <viktor@openssl.org> MR: #1595
This commit is contained in:
@@ -3786,14 +3786,14 @@ 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))
|
||||
{
|
||||
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;
|
||||
@@ -3820,15 +3820,15 @@ 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))
|
||||
{
|
||||
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,
|
||||
|
Reference in New Issue
Block a user