@oej commented on this pull request.
> +int to_ssl(SSL_CTX** tls_ctx_p, SSL** tls_conn_p, int tcp_sock, int method)
+{
+ *tls_ctx_p = init_ssl_ctx(method);
+ if (!(*tls_ctx_p)) {
+ LM_ERR("to_ssl(): Error on initialising ssl context\n");
+ return -1;
+ }
+ if (certificate.s && private_key.s) {
+ if (load_certificates(*tls_ctx_p, &certificate, &private_key) <
0) {
+ LM_ERR("to_ssl(): Error on loading certificates\n");
+ return -1;
+ }
+ }
+ *tls_conn_p = init_ssl_conn(tcp_sock, *tls_ctx_p);
+ if (!(*tls_conn_p)) {
+ LM_ERR("to_ssl(): Error on negociating ssl connection\n");
TLS connection
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3548#pullrequestreview-1592880476
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3548/review/1592880...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org