Debian Codegraph @

transport/internet/tls/config.proto

raw
1 syntax = "proto3";
2
3 package v2ray.core.transport.internet.tls;
4 option csharp_namespace = "V2Ray.Core.Transport.Internet.Tls";
5 option go_package = "v2ray.com/core/transport/internet/tls";
6 option java_package = "com.v2ray.core.transport.internet.tls";
7 option java_multiple_files = true;
8
9 message Certificate {
10 // TLS certificate in x509 format.
11 bytes Certificate = 1;
12
13 // TLS key in x509 format.
14 bytes Key = 2;
15
16 enum Usage {
17 ENCIPHERMENT = 0;
18 AUTHORITY_VERIFY = 1;
19 AUTHORITY_ISSUE = 2;
20 }
21
22 Usage usage = 3;
23 }
24
25 message Config {
26 // Whether or not to allow self-signed certificates.
27 bool allow_insecure = 1;
28
29 // List of certificates to be served on server.
30 repeated Certificate certificate = 2;
31
32 // Override server name.
33 string server_name = 3;
34
35 // Lists of string as ALPN values.
36 repeated string next_protocol = 4;
37
38 // Whether or not to enable session (ticket) resumption.
39 bool enable_session_resumption = 5;
40
41 // If true, root certificates on the system will not be loaded for
42 // verification.
43 bool disable_system_root = 6;
44 }