X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=ustream-internal.h;h=e0e1f5014fd0bf0bad405f0596fec938cc02a79d;hb=881cfb34f60967931ddced1f87152fd045b5bcff;hp=f856d992866acda30bd168db18552ed8d8a50edc;hpb=b0325eb88c76d02563a4d77117ff3dd809a549ea;p=project%2Fustream-ssl.git diff --git a/ustream-internal.h b/ustream-internal.h index f856d99..e0e1f50 100644 --- a/ustream-internal.h +++ b/ustream-internal.h @@ -33,11 +33,12 @@ 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_add_ca_crt_file(struct ustream_ssl_ctx *ctx, const char *file); +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);