-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choosing TLS library at startup time #1209
Comments
Hi, AFAICT Unit really only supports OpenSSL. For example the other TLS implementations do something like const nxt_ssltls_lib_t nxt_gnutls_lib = {
nxt_gnutls_server_init,
NULL,
};
If I ./configure --gnutls
OK, good.
Not so godd...
Oh dear... If I ./configure --gnutls --openssl # because who knows?!
Better I guess...
and on and on... |
@ac000 Thank you for your response I used s2n-tls in one of my projects and I am very satisfied with the functionality and simplicity of s2n-tls. I am very interested in using s2n-tls in Unit, but I don't know enough about the internals of Unit. Does anyone know if Unit supports switching between different TLS libraries at startup time? |
It looks like the idea was to support TLS libraries other than OpenSSL, I've never really looked at the TLS code specifically, so this is just It looks like the TLS interface is abstracted out, in const nxt_tls_lib_t nxt_openssl_lib = {
.library_init = nxt_openssl_library_init,
.library_free = nxt_openssl_library_free,
.server_init = nxt_openssl_server_init,
.server_free = nxt_openssl_server_free,
};
static nxt_conn_io_t nxt_openssl_conn_io = {
.read = nxt_conn_io_read,
.recvbuf = nxt_openssl_conn_io_recvbuf,
.write = nxt_conn_io_write,
.sendbuf = nxt_openssl_conn_io_sendbuf,
.shutdown = nxt_openssl_conn_io_shutdown,
}; The existing alternate TLS APIs are not implementing this interface. They were all introduced in the initial commit of Unit and haven't seen Anyway at the very least in order to support your TLS library of choice |
@ac000 Thanks |
Does Unit support choosing TLS library at startup time (not compile time)?
For example chossing OpenSSL or GnuTLS at startup
The text was updated successfully, but these errors were encountered: