summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libressl/ressl.c6
-rw-r--r--src/lib/libressl/ressl.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libressl/ressl.c b/src/lib/libressl/ressl.c
index 01d1610e3f..c5e28a4f36 100644
--- a/src/lib/libressl/ressl.c
+++ b/src/lib/libressl/ressl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ressl.c,v 1.11 2014/08/06 01:54:01 jsing Exp $ */ 1/* $OpenBSD: ressl.c,v 1.12 2014/08/15 16:55:32 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -202,7 +202,7 @@ ressl_reset(struct ressl *ctx)
202} 202}
203 203
204int 204int
205ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen) 205ressl_read(struct ressl *ctx, void *buf, size_t buflen, size_t *outlen)
206{ 206{
207 int ret, ssl_err; 207 int ret, ssl_err;
208 208
@@ -225,7 +225,7 @@ ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen)
225} 225}
226 226
227int 227int
228ressl_write(struct ressl *ctx, const char *buf, size_t buflen, size_t *outlen) 228ressl_write(struct ressl *ctx, const void *buf, size_t buflen, size_t *outlen)
229{ 229{
230 int ret, ssl_err; 230 int ret, ssl_err;
231 231
diff --git a/src/lib/libressl/ressl.h b/src/lib/libressl/ressl.h
index 0b437c4ad9..46672d97cb 100644
--- a/src/lib/libressl/ressl.h
+++ b/src/lib/libressl/ressl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ressl.h,v 1.11 2014/08/06 01:54:01 jsing Exp $ */ 1/* $OpenBSD: ressl.h,v 1.12 2014/08/15 16:55:32 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -57,8 +57,8 @@ int ressl_accept_socket(struct ressl *ctx, struct ressl **cctx, int socket);
57int ressl_connect(struct ressl *ctx, const char *host, const char *port); 57int ressl_connect(struct ressl *ctx, const char *host, const char *port);
58int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); 58int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname);
59int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af); 59int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af);
60int ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen); 60int ressl_read(struct ressl *ctx, void *buf, size_t buflen, size_t *outlen);
61int ressl_write(struct ressl *ctx, const char *buf, size_t buflen, 61int ressl_write(struct ressl *ctx, const void *buf, size_t buflen,
62 size_t *outlen); 62 size_t *outlen);
63int ressl_close(struct ressl *ctx); 63int ressl_close(struct ressl *ctx);
64 64