From 4fb917263ac30373cb3e5dfe3e207369eb238def Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 22 Nov 2020 15:46:34 +0000 Subject: Add SSL_PROTOCOL and SSL_CIPHER support, fix some bugs --- src/include/s6-networking/sbearssl.h | 7 +++++++ src/include/s6-networking/stls.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/include') diff --git a/src/include/s6-networking/sbearssl.h b/src/include/s6-networking/sbearssl.h index 9fb8792..5527696 100644 --- a/src/include/s6-networking/sbearssl.h +++ b/src/include/s6-networking/sbearssl.h @@ -34,6 +34,12 @@ extern int sbearssl_x509_minimal_set_tai (br_x509_minimal_context *, tai_t const #define sbearssl_x509_minimal_set_tain(ctx, a) sbearssl_x509_minimal_set_tai(ctx, tain_secp(a)) + /* Cipher suites */ + +extern char const *sbearssl_suite_name (br_ssl_session_parameters const *) ; +extern uint16_t bearssl_suite_bits (br_ssl_session_parameters const *) ; + + /* Certificates (x509-encoded) */ typedef struct sbearssl_cert_s sbearssl_cert, *sbearssl_cert_ref ; @@ -214,6 +220,7 @@ struct sbearssl_handshake_cb_context_s typedef int sbearssl_handshake_cb_t (br_ssl_engine_context *, sbearssl_handshake_cb_context_t *) ; typedef sbearssl_handshake_cb_t *sbearssl_handshake_cb_t_ref ; +extern int sbearssl_send_environment (br_ssl_engine_context *, int) ; extern void sbearssl_run (br_ssl_engine_context *, int *, tain_t const *, uint32_t, unsigned int, sbearssl_handshake_cb_t_ref, sbearssl_handshake_cb_context_t *) gccattr_noreturn ; diff --git a/src/include/s6-networking/stls.h b/src/include/s6-networking/stls.h index 76acdd8..e4ef28a 100644 --- a/src/include/s6-networking/stls.h +++ b/src/include/s6-networking/stls.h @@ -15,6 +15,7 @@ /* Engine */ +extern int stls_send_environment (struct tls *, int) ; extern void stls_run (struct tls *, int *, tain_t const *, uint32_t, unsigned int) gccattr_noreturn ; -- cgit v1.2.3