config.pb.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. }
  44. func (m *Config) Reset() { *m = Config{} }
  45. func (m *Config) String() string { return proto.CompactTextString(m) }
  46. func (*Config) ProtoMessage() {}
  47. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  48. func (m *Config) GetAllowInsecure() bool {
  49. if m != nil {
  50. return m.AllowInsecure
  51. }
  52. return false
  53. }
  54. func (m *Config) GetCertificate() []*Certificate {
  55. if m != nil {
  56. return m.Certificate
  57. }
  58. return nil
  59. }
  60. func (m *Config) GetServerName() string {
  61. if m != nil {
  62. return m.ServerName
  63. }
  64. return ""
  65. }
  66. func init() {
  67. proto.RegisterType((*Certificate)(nil), "v2ray.core.transport.internet.tls.Certificate")
  68. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.tls.Config")
  69. }
  70. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/tls/config.proto", fileDescriptor0) }
  71. var fileDescriptor0 = []byte{
  72. // 255 bytes of a gzipped FileDescriptorProto
  73. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x41, 0x4b, 0x03, 0x31,
  74. 0x10, 0x85, 0x49, 0x17, 0x8a, 0x66, 0x55, 0x24, 0xa7, 0xbd, 0xb9, 0x2d, 0x14, 0xf6, 0x94, 0xc0,
  75. 0xfa, 0x0b, 0x74, 0x4f, 0x45, 0x90, 0x12, 0x8a, 0x07, 0x2f, 0x25, 0x86, 0xa9, 0x04, 0xb2, 0x49,
  76. 0x99, 0x8c, 0x95, 0xfd, 0x3b, 0x1e, 0xfd, 0x95, 0xd2, 0xad, 0x5b, 0xb6, 0xa7, 0xde, 0x92, 0x37,
  77. 0xdf, 0xbc, 0xf7, 0x18, 0x5e, 0xef, 0x6b, 0x34, 0x9d, 0xb4, 0xb1, 0x55, 0x36, 0x22, 0x28, 0x42,
  78. 0x13, 0xd2, 0x2e, 0x22, 0x29, 0x17, 0x08, 0x30, 0x00, 0x29, 0xf2, 0x49, 0xd9, 0x18, 0xb6, 0xee,
  79. 0x53, 0xee, 0x30, 0x52, 0x14, 0xb3, 0x61, 0x07, 0x41, 0x9e, 0x78, 0x39, 0xf0, 0x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