diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2016-10-03 04:13:59 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2016-10-03 04:13:59 +0000 |
commit | d64767c5a9610345c32db378384ebd0b46509e1e (patch) | |
tree | 3225aa1c43bc858b6eea27d81f1011ec189c055d /lib | |
parent | 3eb424805353de4ea81fef86e5430efba18d8a37 (diff) |
use the same type for buf as the return type in tls_load_file
ok tedu@, noted by kinichiro
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libtls/tls_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libtls/tls_util.c b/lib/libtls/tls_util.c index 919ea9a6ac1..8cf3345cafc 100644 --- a/lib/libtls/tls_util.c +++ b/lib/libtls/tls_util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_util.c,v 1.3 2015/09/09 19:49:07 jsing Exp $ */ +/* $OpenBSD: tls_util.c,v 1.4 2016/10/03 04:13:58 bcook Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -105,7 +105,8 @@ tls_load_file(const char *name, size_t *len, char *password) FILE *fp; EVP_PKEY *key = NULL; BIO *bio = NULL; - char *data, *buf = NULL; + char *data; + uint8_t *buf = NULL; struct stat st; size_t size; int fd = -1; |