summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_sctx_set_policy_sni.c
blob: 166cd973bc1638238c643d16444d1f63d55c2a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <bearssl.h>

#include <s6-networking/sbearssl.h>

void sbearssl_sctx_set_policy_sni (br_ssl_server_context *sc, sbearssl_sni_policy_context *pol)
{
  sc->chain_handler.vtable = pol->vtable ;
  sc->policy_vtable = &sc->chain_handler.vtable ;
}