diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-07-08 00:43:32 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-07-25 08:20:00 -0400 |
commit | d3d5dc607a27859594be59be90cda9f474073b5a (patch) | |
tree | bfe79f3992fa4af392042e739fa28488f71cb707 /ssl | |
parent | e83f154f6c19f557251676d9008c75f89f9f5d4a (diff) |
Enforce and explicit some const casting
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1300)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_txt.c | 2 | ||||
-rw-r--r-- | ssl/t1_trce.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c index df7c74b4f3..2da3c0a86b 100644 --- a/ssl/ssl_txt.c +++ b/ssl/ssl_txt.c @@ -128,7 +128,7 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) if (x->tlsext_tick) { if (BIO_puts(bp, "\n TLS session ticket:\n") <= 0) goto err; - if (BIO_dump_indent(bp, (char *)x->tlsext_tick, x->tlsext_ticklen, 4) + if (BIO_dump_indent(bp, (const char *)x->tlsext_tick, x->tlsext_ticklen, 4) <= 0) goto err; } diff --git a/ssl/t1_trce.c b/ssl/t1_trce.c index 562ac09e85..ab6cfa2d6c 100644 --- a/ssl/t1_trce.c +++ b/ssl/t1_trce.c @@ -728,7 +728,7 @@ static int ssl_print_extension(BIO *bio, int indent, int server, int extype, break; default: - BIO_dump_indent(bio, (char *)ext, extlen, indent + 2); + BIO_dump_indent(bio, (const char *)ext, extlen, indent + 2); } return 1; } @@ -1257,7 +1257,7 @@ static int ssl_print_handshake(BIO *bio, SSL *ssl, default: BIO_indent(bio, indent + 2, 80); BIO_puts(bio, "Unsupported, hex dump follows:\n"); - BIO_dump_indent(bio, (char *)msg, msglen, indent + 4); + BIO_dump_indent(bio, (const char *)msg, msglen, indent + 4); } return 1; } |