1a74702c6SGeorge Wang/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 25392f7a3SLiteSpeed Tech#ifndef TEST_CERT_H 35392f7a3SLiteSpeed Tech#define TEST_CERT_H 45392f7a3SLiteSpeed Tech 55392f7a3SLiteSpeed Techstruct lsquic_hash; 65392f7a3SLiteSpeed Techstruct ssl_ctx_st; 75392f7a3SLiteSpeed Techstruct sockaddr; 85392f7a3SLiteSpeed Tech 95392f7a3SLiteSpeed Techstruct server_cert 105392f7a3SLiteSpeed Tech{ 115392f7a3SLiteSpeed Tech char *ce_sni; 125392f7a3SLiteSpeed Tech struct ssl_ctx_st *ce_ssl_ctx; 135392f7a3SLiteSpeed Tech struct lsquic_hash_elem ce_hash_el; 145392f7a3SLiteSpeed Tech}; 155392f7a3SLiteSpeed Tech 165392f7a3SLiteSpeed Tech 175392f7a3SLiteSpeed Techint 185392f7a3SLiteSpeed Techload_cert (struct lsquic_hash *, const char *optarg); 195392f7a3SLiteSpeed Tech 205392f7a3SLiteSpeed Techstruct ssl_ctx_st * 215392f7a3SLiteSpeed Techlookup_cert (void *cert_lu_ctx, const struct sockaddr * /*unused */, 225392f7a3SLiteSpeed Tech const char *sni); 235392f7a3SLiteSpeed Tech 245392f7a3SLiteSpeed Techvoid 255392f7a3SLiteSpeed Techdelete_certs (struct lsquic_hash *); 265392f7a3SLiteSpeed Tech 27b1a7c3f9SDmitri Tikhonovint 28b1a7c3f9SDmitri Tikhonovadd_alpn (const char *alpn); 295392f7a3SLiteSpeed Tech 305392f7a3SLiteSpeed Tech#endif 31