test_cert.h revision 9a690580
1/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc.  See LICENSE. */
2#ifndef TEST_CERT_H
3#define TEST_CERT_H
4
5struct lsquic_hash;
6struct ssl_ctx_st;
7struct sockaddr;
8
9struct server_cert
10{
11    char                *ce_sni;
12    struct ssl_ctx_st   *ce_ssl_ctx;
13    struct lsquic_hash_elem ce_hash_el;
14};
15
16
17int
18load_cert (struct lsquic_hash *, const char *optarg);
19
20struct ssl_ctx_st *
21lookup_cert (void *cert_lu_ctx, const struct sockaddr * /*unused */,
22             const char *sni);
23
24void
25delete_certs (struct lsquic_hash *);
26
27
28#endif
29