diff options
| author | millert <> | 2019-03-04 16:46:44 +0000 | 
|---|---|---|
| committer | millert <> | 2019-03-04 16:46:44 +0000 | 
| commit | 8f8112204f7b84c2534cbf96412531904d9bff23 (patch) | |
| tree | 25709cb7396f1b6cf575570d591fc6a3d129e403 | |
| parent | ec329ea22aa3998a09107e836949bd8d78310454 (diff) | |
| download | openbsd-8f8112204f7b84c2534cbf96412531904d9bff23.tar.gz openbsd-8f8112204f7b84c2534cbf96412531904d9bff23.tar.bz2 openbsd-8f8112204f7b84c2534cbf96412531904d9bff23.zip | |
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@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/tls13_lib.c | 5 | 
1 files 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 @@ | |||
| 1 | /* $OpenBSD: tls13_lib.c,v 1.9 2019/02/28 18:20:38 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_lib.c,v 1.10 2019/03/04 16:46:44 millert Exp $ */ | 
| 2 | /* | 2 | /* | 
| 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> | 
| 4 | * | 4 | * | 
| @@ -267,9 +267,10 @@ tls13_legacy_read_bytes(SSL *ssl, int type, unsigned char *buf, int len, int pee | |||
| 267 | } | 267 | } | 
| 268 | 268 | ||
| 269 | int | 269 | int | 
| 270 | tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len) | 270 | tls13_legacy_write_bytes(SSL *ssl, int type, const void *vbuf, int len) | 
| 271 | { | 271 | { | 
| 272 | struct tls13_ctx *ctx = ssl->internal->tls13; | 272 | struct tls13_ctx *ctx = ssl->internal->tls13; | 
| 273 | const uint8_t *buf = vbuf; | ||
| 273 | size_t n, sent; | 274 | size_t n, sent; | 
| 274 | ssize_t ret; | 275 | ssize_t ret; | 
| 275 | 276 | ||
