From: Alan T. DeKok Date: Wed, 3 Sep 2014 19:06:35 +0000 (-0400) Subject: Expose tls_init_ctx() X-Git-Tag: release_3_0_5~633 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65e002c2fb4688942ebd0e2d85b4db69936aae46;p=thirdparty%2Ffreeradius-server.git Expose tls_init_ctx() --- diff --git a/src/include/tls-h b/src/include/tls-h index 16648c54c38..8e46bcb32a2 100644 --- a/src/include/tls-h +++ b/src/include/tls-h @@ -301,6 +301,7 @@ tls_session_t *tls_new_session(TALLOC_CTX *ctx, fr_tls_server_conf_t *conf, REQU tls_session_t *tls_new_client_session(fr_tls_server_conf_t *conf, int fd); fr_tls_server_conf_t *tls_server_conf_parse(CONF_SECTION *cs); fr_tls_server_conf_t *tls_client_conf_parse(CONF_SECTION *cs); +SSL_CTX *tls_init_ctx(fr_tls_server_conf_t *conf, int client); int tls_handshake_recv(REQUEST *, tls_session_t *ssn); int tls_handshake_send(REQUEST *, tls_session_t *ssn); void tls_session_information(tls_session_t *ssn); diff --git a/src/main/tls.c b/src/main/tls.c index 2798a414270..f58be66ce8d 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -2116,13 +2116,13 @@ void tls_global_cleanup(void) } /* - * Create Global context SSL and use it in every new session + * Create SSL context * * - Load the trusted CAs * - Load the Private key & the certificate * - Set the Context options & Verify options */ -static SSL_CTX *tls_init_ctx(fr_tls_server_conf_t *conf, int client) +SSL_CTX *tls_init_ctx(fr_tls_server_conf_t *conf, int client) { SSL_CTX *ctx; X509_STORE *certstore;