summaryrefslogtreecommitdiffstats
path: root/lib/libssl/s3_clnt.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2016-12-03 12:34:35 +0000
committerjsing <jsing@openbsd.org>2016-12-03 12:34:35 +0000
commitbc99fb9a541640cc76264c31e90a0409d164801e (patch)
treeba7452e2ddfaf3296054d612e7cd1551efe57268 /lib/libssl/s3_clnt.c
parentAdd Copyright and license. (diff)
downloadwireguard-openbsd-bc99fb9a541640cc76264c31e90a0409d164801e.tar.xz
wireguard-openbsd-bc99fb9a541640cc76264c31e90a0409d164801e.zip
Avoid signed vs unsigned warnings from clang by adding two casts,
slightly rewriting some code and changing the type of an array. ok bcook@ doug@
Diffstat (limited to 'lib/libssl/s3_clnt.c')
-rw-r--r--lib/libssl/s3_clnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/s3_clnt.c b/lib/libssl/s3_clnt.c
index 57c11f458a7..08b804dcfe4 100644
--- a/lib/libssl/s3_clnt.c
+++ b/lib/libssl/s3_clnt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_clnt.c,v 1.145 2016/11/06 09:44:51 bcook Exp $ */
+/* $OpenBSD: s3_clnt.c,v 1.146 2016/12/03 12:34:35 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1574,7 +1574,7 @@ ssl3_get_certificate_request(SSL *s)
if (ctype_num > SSL3_CT_NUMBER)
ctype_num = SSL3_CT_NUMBER;
if (!CBS_get_bytes(&cert_request, &ctypes, ctype_num) ||
- !CBS_write_bytes(&ctypes, s->s3->tmp.ctype,
+ !CBS_write_bytes(&ctypes, (uint8_t *)s->s3->tmp.ctype,
sizeof(s->s3->tmp.ctype), NULL)) {
SSLerr(SSL_F_SSL3_GET_CERTIFICATE_REQUEST,
SSL_R_DATA_LENGTH_TOO_LONG);