litespeed-quic/test/test_cert.h
Dmitri Tikhonov 7d09751dbb Release 2.8.7
- [BUGFIX] Initial packet size check for IETF mini conn applies to
  UDP payload, not QUIC packet.
- Support old and new school loss_bits transport parameter.
- Use Q run length of 64 as suggested in the loss bits Draft.
- Undo square wave count when packet is delayed.
- Code cleanup; minor fixes.
2020-01-09 11:52:25 -05:00

28 lines
539 B
C

/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */
#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 *);
#endif