diff options
| author | tedu <> | 2016-09-13 13:40:58 +0000 |
|---|---|---|
| committer | tedu <> | 2016-09-13 13:40:58 +0000 |
| commit | 089b3db121be3c97265f50efbba5fafd3fa25482 (patch) | |
| tree | e07a9af065bd67d2eb0969cef5b94456bb56c434 /src/lib/libtls/tls.h | |
| parent | 75d2367186d2b5f8f750ee9a7f314dd61deb92c0 (diff) | |
| download | openbsd-089b3db121be3c97265f50efbba5fafd3fa25482.tar.gz openbsd-089b3db121be3c97265f50efbba5fafd3fa25482.tar.bz2 openbsd-089b3db121be3c97265f50efbba5fafd3fa25482.zip | |
add a little more typing to the first callback argument.
it's always a tls context.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libtls/tls.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libtls/tls.h b/src/lib/libtls/tls.h index 0a9c163250..6cc3d0d6f8 100644 --- a/src/lib/libtls/tls.h +++ b/src/lib/libtls/tls.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls.h,v 1.37 2016/09/04 14:15:44 jsing Exp $ */ | 1 | /* $OpenBSD: tls.h,v 1.38 2016/09/13 13:40:58 tedu Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -44,9 +44,9 @@ extern "C" { | |||
| 44 | struct tls; | 44 | struct tls; |
| 45 | struct tls_config; | 45 | struct tls_config; |
| 46 | 46 | ||
| 47 | typedef ssize_t (*tls_read_cb)(void *_ctx, void *_buf, size_t _buflen, | 47 | typedef ssize_t (*tls_read_cb)(struct tls *_ctx, void *_buf, size_t _buflen, |
| 48 | void *_cb_arg); | 48 | void *_cb_arg); |
| 49 | typedef ssize_t (*tls_write_cb)(void *_ctx, const void *_buf, | 49 | typedef ssize_t (*tls_write_cb)(struct tls *_ctx, const void *_buf, |
| 50 | size_t _buflen, void *_cb_arg); | 50 | size_t _buflen, void *_cb_arg); |
| 51 | 51 | ||
| 52 | int tls_init(void); | 52 | int tls_init(void); |
