summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl-internal.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-06-01 11:27:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-06-01 11:27:05 +0000
commita84b9b4e5d985a5d8a37268a76e1d35210fd31c5 (patch)
tree64cf1b6e3f21e1ac96ea119358fda95091ee6e93 /src/sbearssl/sbearssl-internal.h
parente763c3ef1485404585b923365f93314aab4e8dd6 (diff)
downloads6-networking-a84b9b4e5d985a5d8a37268a76e1d35210fd31c5.tar.xz
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.
Diffstat (limited to 'src/sbearssl/sbearssl-internal.h')
-rw-r--r--src/sbearssl/sbearssl-internal.h4
1 files changed, 3 insertions, 1 deletions
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