From 7779263a510efc359f964978838645eb14dafd16 Mon Sep 17 00:00:00 2001 From: millert <> Date: Mon, 4 Mar 2019 16:46:44 +0000 Subject: Don't index a void pointer, fixes compilation with visual studio. Gcc/clang will treat void * as char * but this is non-standard. OK deraadt@ jsing@ inoguchi@ --- src/lib/libssl/tls13_lib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/libssl/tls13_lib.c b/src/lib/libssl/tls13_lib.c index fb75419ac5..60fa372944 100644 --- a/src/lib/libssl/tls13_lib.c +++ b/src/lib/libssl/tls13_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_lib.c,v 1.9 2019/02/28 18:20:38 jsing Exp $ */ +/* $OpenBSD: tls13_lib.c,v 1.10 2019/03/04 16:46:44 millert Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -267,9 +267,10 @@ tls13_legacy_read_bytes(SSL *ssl, int type, unsigned char *buf, int len, int pee } int -tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len) +tls13_legacy_write_bytes(SSL *ssl, int type, const void *vbuf, int len) { struct tls13_ctx *ctx = ssl->internal->tls13; + const uint8_t *buf = vbuf; size_t n, sent; ssize_t ret; -- cgit v1.2.3-55-g6feb