test_cert.h revision 06b2a236
1/* Copyright (c) 2017 - 2021 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
27int
28add_alpn (const char *alpn);
29
30#endif
31