implement certificate validation (including CN verification)
[project/ustream-ssl.git] / ustream-internal.h
index 85d8b47..e0e1f50 100644 (file)
@@ -35,6 +35,7 @@ enum ssl_conn_status {
 
 void ustream_set_io(struct ustream_ssl_ctx *ctx, void *ssl, struct ustream *s);
 struct ustream_ssl_ctx *__ustream_ssl_context_new(bool server);
 
 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);
 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);