Skip to content
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

DRAFT: allow configuring min/max TLS protocol versions. #173

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

notroj
Copy link
Owner

@notroj notroj commented Nov 19, 2024

No description provided.

* src/ne_openssl.c (proto_to_native, ne_ssl_context_set_versions):
  New functions.

* src/ne_session.c (ne_ssl_set_protovers, ne_ssl_proto_name):
  New functions.

* src/ne_socket.c (ne_sock_getproto): New function.

* src/ne_ssl.h (enum ne_ssl_protocol): Define.

* test/session.c (tls_names): New test.

* test/socket.c (init_ssl): Create a TLSv1.2-specific context.
  (beginc, begin): Factor out beginc from begin.
  (protocols, proto_tls12): New test cases.

* test/ssl.c: Drop (unused) SSLv2 support.
  (ssl_server): Test for version range if configured.
  (protovers): New test.
* src/ne_openssl.c (ne_ssl_context_create): Use
  TLS_client_method/TLS_server_method.
  (ne_ssl_context_set_flag, ne_ssl_context_get_flag):
  Ignore NE_SSL_CTX_SSLv2 flag.

* src/ne_session.c (ne_session_create): Drop use of NE_SESSFLAG_SSLv2.
  (ne_set_session_flag): Drop special handling for NE_SESSFLAG_SSLv2.

* src/ne_session.h: Note that NE_SESSFLAG_SSLv2 is now ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant