Constify security callbacks

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>

MR: #1595
This commit is contained in:
Kurt Roeckx
2016-02-07 20:44:27 +01:00
parent ca74c38dc8
commit e4646a8963
5 changed files with 19 additions and 19 deletions

View File

@@ -1285,7 +1285,7 @@ int ssl_load_stores(SSL_CTX *ctx,
typedef struct {
BIO *out;
int verbose;
int (*old_cb) (SSL *s, SSL_CTX *ctx, int op, int bits, int nid,
int (*old_cb) (const SSL *s, const SSL_CTX *ctx, int op, int bits, int nid,
void *other, void *ex);
} security_debug_ex;
@@ -1314,7 +1314,7 @@ static STRINT_PAIR callback_types[] = {
{NULL}
};
static int security_callback_debug(SSL *s, SSL_CTX *ctx,
static int security_callback_debug(const SSL *s, const SSL_CTX *ctx,
int op, int bits, int nid,
void *other, void *ex)
{