diff options
author | tedu <> | 2014-08-15 16:55:32 +0000 |
---|---|---|
committer | tedu <> | 2014-08-15 16:55:32 +0000 |
commit | b84c34616978bc8f3ea82a0dd558239cc583e2af (patch) | |
tree | 62cda1a2cbe6bca615e4156380c4a04e0e3a4bfb /src/lib | |
parent | 3ea4545f65c31073396b3f70460f5e9426064b79 (diff) | |
download | openbsd-b84c34616978bc8f3ea82a0dd558239cc583e2af.tar.gz openbsd-b84c34616978bc8f3ea82a0dd558239cc583e2af.tar.bz2 openbsd-b84c34616978bc8f3ea82a0dd558239cc583e2af.zip |
use void * instead of char *. ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libressl/ressl.c | 6 | ||||
-rw-r--r-- | src/lib/libressl/ressl.h | 6 |
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 | ||
204 | int | 204 | int |
205 | ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen) | 205 | ressl_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 | ||
227 | int | 227 | int |
228 | ressl_write(struct ressl *ctx, const char *buf, size_t buflen, size_t *outlen) | 228 | ressl_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); | |||
57 | int ressl_connect(struct ressl *ctx, const char *host, const char *port); | 57 | int ressl_connect(struct ressl *ctx, const char *host, const char *port); |
58 | int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); | 58 | int ressl_connect_socket(struct ressl *ctx, int s, const char *hostname); |
59 | int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af); | 59 | int ressl_listen(struct ressl *ctx, const char *host, const char *port, int af); |
60 | int ressl_read(struct ressl *ctx, char *buf, size_t buflen, size_t *outlen); | 60 | int ressl_read(struct ressl *ctx, void *buf, size_t buflen, size_t *outlen); |
61 | int ressl_write(struct ressl *ctx, const char *buf, size_t buflen, | 61 | int ressl_write(struct ressl *ctx, const void *buf, size_t buflen, |
62 | size_t *outlen); | 62 | size_t *outlen); |
63 | int ressl_close(struct ressl *ctx); | 63 | int ressl_close(struct ressl *ctx); |
64 | 64 | ||