From edcc9092f2bca8fa3d03a886daad056c03eb2b80 Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 15 Aug 2014 16:55:32 +0000 Subject: [PATCH] use void * instead of char *. ok jsing --- lib/libressl/ressl.c | 6 +++--- lib/libressl/ressl.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libressl/ressl.c b/lib/libressl/ressl.c index 01d1610e3f8..c5e28a4f36d 100644 --- a/lib/libressl/ressl.c +++ b/lib/libressl/ressl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ressl.c,v 1.11 2014/08/06 01:54:01 jsing Exp $ */ +/* $OpenBSD: ressl.c,v 1.12 2014/08/15 16:55:32 tedu Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -202,7 +202,7 @@ ressl_reset(struct ressl *ctx) } int -ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen) +ressl_read(struct ressl *ctx, void *buf, size_t buflen, size_t *outlen) { int ret, ssl_err; @@ -225,7 +225,7 @@ ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen) } int -ressl_write(struct ressl *ctx, const char *buf, size_t buflen, size_t *outlen) +ressl_write(struct ressl *ctx, const void *buf, size_t buflen, size_t *outlen) { int ret, ssl_err; diff --git a/lib/libressl/ressl.h b/lib/libressl/ressl.h index 0b437c4ad97..46672d97cb5 100644 --- a/lib/libressl/ressl.h +++ b/lib/libressl/ressl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ressl.h,v 1.11 2014/08/06 01:54:01 jsing Exp $ */ +/* $OpenBSD: ressl.h,v 1.12 2014/08/15 16:55:32 tedu Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -57,8 +57,8 @@ int ressl_accept_socket(struct ressl *ctx, struct ressl **cctx, int socket); int ressl_connect(struct ressl *ctx, const char *host, const char *port); int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af); -int ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen); -int ressl_write(struct ressl *ctx, const char *buf, size_t buflen, +int ressl_read(struct ressl *ctx, void *buf, size_t buflen, size_t *outlen); +int ressl_write(struct ressl *ctx, const void *buf, size_t buflen, size_t *outlen); int ressl_close(struct ressl *ctx); -- 2.20.1