diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-15 14:23:49 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-15 14:26:11 +0100 |
commit | f19b2ec17f0c3d663a5f349de07b12af40016902 (patch) | |
tree | 101779f8f99020f91f8d3829372be08c97d81c07 /ustream-internal.h | |
parent | 5f8772f7b2d2866d1226320dbf25f0dd0507ffed (diff) | |
download | ustream-ssl-f19b2ec17f0c3d663a5f349de07b12af40016902.tar.gz |
give the main context a type instead of making it void *
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ustream-internal.h')
-rw-r--r-- | ustream-internal.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ustream-internal.h b/ustream-internal.h index f856d99..85d8b47 100644 --- a/ustream-internal.h +++ b/ustream-internal.h @@ -33,11 +33,11 @@ enum ssl_conn_status { U_SSL_ERROR = -2, }; -void ustream_set_io(void *ctx, void *ssl, struct ustream *s); -void *__ustream_ssl_context_new(bool server); -int __ustream_ssl_set_crt_file(void *ctx, const char *file); -int __ustream_ssl_set_key_file(void *ctx, const char *file); -void __ustream_ssl_context_free(void *ctx); +void ustream_set_io(struct ustream_ssl_ctx *ctx, void *ssl, struct ustream *s); +struct ustream_ssl_ctx *__ustream_ssl_context_new(bool server); +int __ustream_ssl_set_crt_file(struct ustream_ssl_ctx *ctx, const char *file); +int __ustream_ssl_set_key_file(struct ustream_ssl_ctx *ctx, const char *file); +void __ustream_ssl_context_free(struct ustream_ssl_ctx *ctx); enum ssl_conn_status __ustream_ssl_connect(struct ustream_ssl *us); int __ustream_ssl_read(struct ustream_ssl *us, char *buf, int len); int __ustream_ssl_write(struct ustream_ssl *us, const char *buf, int len); |