polarssl: enable client side ssl verification if a certificate was loaded
[project/ustream-ssl.git] / ustream-polarssl.h
index e7445f75cde366bbf3e965ba6e241a8a6a53bcde..1da2ff6cb2426fef79a0d5aff3213dbcfe21dc41 100644 (file)
 #define x509_crt x509_cert
 #endif
 
-struct ustream_polarssl_ctx {
+struct ustream_ssl_ctx {
 #ifdef USE_VERSION_1_3
        pk_context key;
 #else
        rsa_context key;
 #endif
        x509_crt cert;
+       int auth;
        bool server;
 };
 
@@ -50,6 +51,6 @@ static inline char *__ustream_ssl_strerror(int error, char *buffer, int len)
 }
 
 void __ustream_ssl_session_free(void *ssl);
-void *__ustream_ssl_session_new(void *ctx);
+void *__ustream_ssl_session_new(struct ustream_ssl_ctx *ctx);
 
 #endif