cmake: Find libubox/ustream.h header file
[project/ustream-ssl.git] / ustream-internal.h
index 85d8b47d2584fda97e5b7bb972005c983e8c8c8d..4932a0d539c729b181a98905bcadcc29c07fa542 100644 (file)
 
 #define __hidden __attribute__((visibility("hidden")))
 
-#ifdef HAVE_POLARSSL
+#if defined(HAVE_MBEDTLS)
+#include "ustream-mbedtls.h"
+#elif defined(HAVE_POLARSSL)
 #include "ustream-polarssl.h"
 #else
+#if defined(HAVE_CYASSL)
+#include <wolfssl/options.h>
+#endif
 #include "ustream-openssl.h"
 #endif
 
@@ -35,6 +40,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);
+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);