#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 ca_cert;
x509_crt cert;
bool server;
};
return buffer;
}
+void __ustream_ssl_update_peer_cn(struct ustream_ssl *us);
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