config.pb.go 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package tls
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. // Reference imports to suppress errors if they are not otherwise used.
  6. var _ = proto.Marshal
  7. var _ = fmt.Errorf
  8. var _ = math.Inf
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the proto package it is being compiled against.
  11. // A compilation error at this line likely means your copy of the
  12. // proto package needs to be updated.
  13. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  14. type Certificate struct {
  15. // TLS certificate in x509 format.
  16. Certificate []byte `protobuf:"bytes,1,opt,name=Certificate,proto3" json:"Certificate,omitempty"`
  17. // TLS key in x509 format.
  18. Key []byte `protobuf:"bytes,2,opt,name=Key,proto3" json:"Key,omitempty"`
  19. }
  20. func (m *Certificate) Reset() { *m = Certificate{} }
  21. func (m *Certificate) String() string { return proto.CompactTextString(m) }
  22. func (*Certificate) ProtoMessage() {}
  23. func (*Certificate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  24. func (m *Certificate) GetCertificate() []byte {
  25. if m != nil {
  26. return m.Certificate
  27. }
  28. return nil
  29. }
  30. func (m *Certificate) GetKey() []byte {
  31. if m != nil {
  32. return m.Key
  33. }
  34. return nil
  35. }
  36. type Config struct {
  37. // Whether or not to allow self-signed certificates.
  38. AllowInsecure bool `protobuf:"varint,1,opt,name=allow_insecure,json=allowInsecure" json:"allow_insecure,omitempty"`
  39. // List of certificates to be served on server.
  40. Certificate []*Certificate `protobuf:"bytes,2,rep,name=certificate" json:"certificate,omitempty"`
  41. // Override server name.
  42. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName" json:"server_name,omitempty"`
  43. // Lists of string as ALPN values.
  44. NextProtocol []string `protobuf:"bytes,4,rep,name=next_protocol,json=nextProtocol" json:"next_protocol,omitempty"`
  45. }
  46. func (m *Config) Reset() { *m = Config{} }
  47. func (m *Config) String() string { return proto.CompactTextString(m) }
  48. func (*Config) ProtoMessage() {}
  49. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  50. func (m *Config) GetAllowInsecure() bool {
  51. if m != nil {
  52. return m.AllowInsecure
  53. }
  54. return false
  55. }
  56. func (m *Config) GetCertificate() []*Certificate {
  57. if m != nil {
  58. return m.Certificate
  59. }
  60. return nil
  61. }
  62. func (m *Config) GetServerName() string {
  63. if m != nil {
  64. return m.ServerName
  65. }
  66. return ""
  67. }
  68. func (m *Config) GetNextProtocol() []string {
  69. if m != nil {
  70. return m.NextProtocol
  71. }
  72. return nil
  73. }
  74. func init() {
  75. proto.RegisterType((*Certificate)(nil), "v2ray.core.transport.internet.tls.Certificate")
  76. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.tls.Config")
  77. }
  78. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/tls/config.proto", fileDescriptor0) }
  79. var fileDescriptor0 = []byte{
  80. // 278 bytes of a gzipped FileDescriptorProto
  81. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x41, 0x6a, 0xeb, 0x30,
  82. 0x10, 0x86, 0x71, 0xfc, 0x08, 0x2f, 0x72, 0x52, 0x8a, 0x56, 0xde, 0xd5, 0x49, 0x09, 0x78, 0x25,
  83. 0x83, 0x7b, 0x82, 0xd6, 0xab, 0x50, 0x28, 0x46, 0x84, 0x2e, 0xba, 0x31, 0xaa, 0x98, 0x14, 0x83,
  84. 0x2c, 0x85, 0xd1, 0x34, 0xad, 0xaf, 0xd4, 0x8b, 0xf4, 0x5a, 0xc5, 0x4e, 0x1c, 0x9c, 0x55, 0x76,
  85. 0xd2, 0xa7, 0x4f, 0xf3, 0xff, 0x0c, 0xcb, 0x0f, 0x39, 0xaa, 0x56, 0x68, 0xd7, 0x64, 0xda, 0x21,
  86. 0x64, 0x84, 0xca, 0xfa, 0xbd, 0x43, 0xca, 0x6a, 0x4b, 0x80, 0x16, 0x28, 0x23, 0xe3, 0x33, 0xed,
  87. 0xec, 0xae, 0xfe, 0x10, 0x7b, 0x74, 0xe4, 0xf8, 0x72, 0xf8, 0x83, 0x20, 0xce, 0xbe, 0x18, 0x7c,
  88. 0x41, 0xc6, 0xaf, 0x1e, 0x59, 0x54, 0x00, 0x52, 0xbd, 0xab, 0xb5, 0x22, 0xe0, 0xc9, 0xc5, 0x35,
  89. 0x0e, 0x92, 0x20, 0x9d, 0xcb, 0x0b, 0xe3, 0x96, 0x85, 0xcf, 0xd0, 0xc6, 0x93, 0xfe, 0xa5, 0x3b,
  90. 0xae, 0x7e, 0x03, 0x36, 0x2d, 0xfa, 0x58, 0xbe, 0x66, 0x37, 0xca, 0x18, 0xf7, 0x55, 0xd5, 0xd6,
  91. 0x83, 0xfe, 0xc4, 0xe3, 0x84, 0xff, 0x72, 0xd1, 0xd3, 0xcd, 0x09, 0xf2, 0x92, 0x45, 0x7a, 0x94,
  92. 0x32, 0x49, 0xc2, 0x34, 0xca, 0x85, 0xb8, 0xda, 0x56, 0x8c, 0x8a, 0xc8, 0xf1, 0x08, 0x7e, 0xc7,
  93. 0x22, 0x0f, 0x78, 0x00, 0xac, 0xac, 0x6a, 0x20, 0x0e, 0x93, 0x20, 0x9d, 0x49, 0x76, 0x44, 0x2f,
  94. 0xaa, 0x01, 0x7e, 0xcf, 0x16, 0x16, 0xbe, 0xa9, 0xea, 0x17, 0xa3, 0x9d, 0x89, 0xff, 0x25, 0x61,
  95. 0x3a, 0x93, 0xf3, 0x0e, 0x96, 0x27, 0xf6, 0x24, 0xd9, 0x5a, 0xbb, 0xe6, 0x7a, 0x8f, 0x32, 0x78,
  96. 0x0b, 0xc9, 0xf8, 0x9f, 0xc9, 0xf2, 0x35, 0x97, 0xaa, 0x15, 0x45, 0xa7, 0x6e, 0xcf, 0xea, 0x66,
  97. 0x50, 0xb7, 0xc6, 0xbf, 0x4f, 0xfb, 0xc4, 0x87, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x84,
  98. 0xfb, 0x07, 0xc0, 0x01, 0x00, 0x00,
  99. }