add callbacks for debug messages
[project/ustream-ssl.git] / ustream-internal.h
index 020e1c69d1be70eb27a70ab861b84bcb092da916..f8f28e1ab9a3f0e2bd707e47c93cb7100faad1fc 100644 (file)
@@ -23,8 +23,6 @@
 
 #if defined(HAVE_MBEDTLS)
 #include "ustream-mbedtls.h"
-#elif defined(HAVE_POLARSSL)
-#include "ustream-polarssl.h"
 #else
 #include "ustream-openssl.h"
 #endif
@@ -40,6 +38,9 @@ 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);
+int __ustream_ssl_set_ciphers(struct ustream_ssl_ctx *ctx, const char *ciphers);
+int __ustream_ssl_set_require_validation(struct ustream_ssl_ctx *ctx, bool require);
+void __ustream_ssl_set_debug(struct ustream_ssl_ctx *ctx, int level, ustream_ssl_debug_cb cb, void *cb_priv);
 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);