curl-fuzzer C++ reference
Loading...
Searching...
No Matches
tls_mock_server.h File Reference

Reusable TLS transport for structured in-process protocol peers. More...

Go to the source code of this file.

Classes

class  proto_fuzzer::TlsMockTransport
 Reusable TLS carrier for protocol-specific mock peers. More...
class  proto_fuzzer::TlsMockServer
 Runs MockServer's existing bounded HTTP scripts through a real TLS peer. More...

Enumerations

enum class  proto_fuzzer::TlsApplicationProtocol { kHttp11 , kHttp2 }
 Application protocol selected by the in-process TLS peer. More...
enum class  proto_fuzzer::TlsGroupPolicy { kProviderDefault , kX25519 }
 Key-exchange group policy fixed when a TLS peer is constructed. More...

Detailed Description

Reusable TLS transport for structured in-process protocol peers.

Definition in file tls_mock_server.h.

Enumeration Type Documentation

◆ TlsApplicationProtocol

Application protocol selected by the in-process TLS peer.

Keeping this a closed enum prevents a caller-controlled ALPN string from making a fixed protocol lane negotiate an unrelated transport.

Enumerator
kHttp11 

Ordinary HTTPS scripts contain HTTP/1.1 response bytes.

kHttp2 

The dedicated proxy peer exchanges HTTP/2 frames after its handshake.

Definition at line 24 of file tls_mock_server.h.

◆ TlsGroupPolicy

enum class proto_fuzzer::TlsGroupPolicy
strong

Key-exchange group policy fixed when a TLS peer is constructed.

Keeping this separate from mutable transfer options prevents a scenario from configuring incompatible client and server group sets.

Enumerator
kProviderDefault 

Retain the linked OpenSSL provider's preferred group ordering.

kX25519 

Restrict negotiation to the inexpensive X25519 group.

Definition at line 34 of file tls_mock_server.h.