From a84b9b4e5d985a5d8a37268a76e1d35210fd31c5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 1 Jun 2021 11:27:05 +0000 Subject: Add all the missing pieces for sni_policy sbearssl_server_init_and_run is yet unchanged, the next step is to rewrite it using the new primitives. --- src/sbearssl/sbearssl-internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sbearssl/sbearssl-internal.h') diff --git a/src/sbearssl/sbearssl-internal.h b/src/sbearssl/sbearssl-internal.h index d8e0c57..8c8839b 100644 --- a/src/sbearssl/sbearssl-internal.h +++ b/src/sbearssl/sbearssl-internal.h @@ -78,10 +78,12 @@ extern size_t const sbearssl_suite_list_len ; typedef struct sbearssl_sni_policy_node_s sbearssl_sni_policy_node, *sbearssl_policy_node_ref ; struct sbearssl_sni_policy_node_s { - size_t servername ; + char const *servername ; sbearssl_skey skey ; size_t chainindex ; size_t chainlen ; } ; +extern unsigned int sbearssl_choose_hash (unsigned int) ; + #endif -- cgit v1.2.3