summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-11-08 13:43:12 +0000
committerMatt Caswell <matt@openssl.org>2016-11-09 09:10:30 +0000
commit902aca09f3cfdf124dc92c7338635b8515eb8f39 (patch)
tree870179d5b3899476750191b9dc0dad676ba6d9ca /ssl
parent3d33f3bbe4e6dfa5ae36a2ced644b623b345bd9e (diff)
Make some CLIENTHELLO_MSG function arguments const
There were a few places where they could be declared const so this commit does that. Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_locl.h2
-rw-r--r--ssl/t1_lib.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
index 79542386bc..dcc2336661 100644
--- a/ssl/ssl_locl.h
+++ b/ssl/ssl_locl.h
@@ -2058,7 +2058,7 @@ __owur int dtls1_process_heartbeat(SSL *s, unsigned char *p,
__owur int tls_get_ticket_from_client(SSL *s, CLIENTHELLO_MSG *hello,
SSL_SESSION **ret);
-__owur int tls_check_client_ems_support(SSL *s, CLIENTHELLO_MSG *hello);
+__owur int tls_check_client_ems_support(SSL *s, const CLIENTHELLO_MSG *hello);
__owur int tls12_get_sigandhash(WPACKET *pkt, const EVP_PKEY *pk,
const EVP_MD *md);
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 100c9f9598..6598776ef9 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -1701,7 +1701,7 @@ static int tls1_alpn_handle_client_hello_late(SSL *s, int *al)
* Sadly we cannot differentiate 10.6, 10.7 and 10.8.4 (which work), from
* 10.8..10.8.3 (which don't work).
*/
-static void ssl_check_for_safari(SSL *s, CLIENTHELLO_MSG *hello)
+static void ssl_check_for_safari(SSL *s, const CLIENTHELLO_MSG *hello)
{
unsigned int type;
PACKET sni, tmppkt;
@@ -2905,7 +2905,7 @@ int tls_get_ticket_from_client(SSL *s, CLIENTHELLO_MSG *hello,
* 1 on success
* 0 on error
*/
-int tls_check_client_ems_support(SSL *s, CLIENTHELLO_MSG *hello)
+int tls_check_client_ems_support(SSL *s, const CLIENTHELLO_MSG *hello)
{
RAW_EXTENSION *emsext;