2021-01-06 14:00:05 +00:00
|
|
|
/* Copyright (c) 2017 - 2021 LiteSpeed Technologies Inc. See LICENSE. */
|
2019-09-11 15:27:58 +00:00
|
|
|
#ifndef TEST_CERT_H
|
|
|
|
#define TEST_CERT_H
|
|
|
|
|
|
|
|
struct lsquic_hash;
|
|
|
|
struct ssl_ctx_st;
|
|
|
|
struct sockaddr;
|
|
|
|
|
|
|
|
struct server_cert
|
|
|
|
{
|
|
|
|
char *ce_sni;
|
|
|
|
struct ssl_ctx_st *ce_ssl_ctx;
|
|
|
|
struct lsquic_hash_elem ce_hash_el;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
load_cert (struct lsquic_hash *, const char *optarg);
|
|
|
|
|
|
|
|
struct ssl_ctx_st *
|
|
|
|
lookup_cert (void *cert_lu_ctx, const struct sockaddr * /*unused */,
|
|
|
|
const char *sni);
|
|
|
|
|
|
|
|
void
|
|
|
|
delete_certs (struct lsquic_hash *);
|
|
|
|
|
2020-09-15 20:42:13 +00:00
|
|
|
int
|
|
|
|
add_alpn (const char *alpn);
|
2019-09-11 15:27:58 +00:00
|
|
|
|
|
|
|
#endif
|