summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 15:46:34 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-11-22 15:46:34 +0000
commit4fb917263ac30373cb3e5dfe3e207369eb238def (patch)
tree992265c03c46e9fe38084336e9a87733b9e8748c /src/include
parent47cbbb1619ace4013856843ef8f7d68279c74faa (diff)
downloads6-networking-4fb917263ac30373cb3e5dfe3e207369eb238def.tar.xz
Add SSL_PROTOCOL and SSL_CIPHER support, fix some bugs
Diffstat (limited to 'src/include')
-rw-r--r--src/include/s6-networking/sbearssl.h7
-rw-r--r--src/include/s6-networking/stls.h1
2 files changed, 8 insertions, 0 deletions
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 ;