github.com/goplus/igop@v0.25.0/pkg/crypto/tls/go115_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package tls 6 7 import ( 8 q "crypto/tls" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/igop" 14 ) 15 16 func init() { 17 igop.RegisterPackage(&igop.Package{ 18 Name: "tls", 19 Path: "crypto/tls", 20 Deps: map[string]string{ 21 "bytes": "bytes", 22 "container/list": "list", 23 "context": "context", 24 "crypto": "crypto", 25 "crypto/aes": "aes", 26 "crypto/cipher": "cipher", 27 "crypto/des": "des", 28 "crypto/ecdsa": "ecdsa", 29 "crypto/ed25519": "ed25519", 30 "crypto/elliptic": "elliptic", 31 "crypto/hmac": "hmac", 32 "crypto/md5": "md5", 33 "crypto/rand": "rand", 34 "crypto/rc4": "rc4", 35 "crypto/rsa": "rsa", 36 "crypto/sha1": "sha1", 37 "crypto/sha256": "sha256", 38 "crypto/sha512": "sha512", 39 "crypto/subtle": "subtle", 40 "crypto/x509": "x509", 41 "encoding/pem": "pem", 42 "errors": "errors", 43 "fmt": "fmt", 44 "hash": "hash", 45 "internal/cpu": "cpu", 46 "io": "io", 47 "io/ioutil": "ioutil", 48 "math/big": "big", 49 "net": "net", 50 "strconv": "strconv", 51 "strings": "strings", 52 "sync": "sync", 53 "sync/atomic": "atomic", 54 "time": "time", 55 "vendor/golang.org/x/crypto/chacha20poly1305": "chacha20poly1305", 56 "vendor/golang.org/x/crypto/cryptobyte": "cryptobyte", 57 "vendor/golang.org/x/crypto/curve25519": "curve25519", 58 "vendor/golang.org/x/crypto/hkdf": "hkdf", 59 }, 60 Interfaces: map[string]reflect.Type{ 61 "ClientSessionCache": reflect.TypeOf((*q.ClientSessionCache)(nil)).Elem(), 62 }, 63 NamedTypes: map[string]reflect.Type{ 64 "Certificate": reflect.TypeOf((*q.Certificate)(nil)).Elem(), 65 "CertificateRequestInfo": reflect.TypeOf((*q.CertificateRequestInfo)(nil)).Elem(), 66 "CipherSuite": reflect.TypeOf((*q.CipherSuite)(nil)).Elem(), 67 "ClientAuthType": reflect.TypeOf((*q.ClientAuthType)(nil)).Elem(), 68 "ClientHelloInfo": reflect.TypeOf((*q.ClientHelloInfo)(nil)).Elem(), 69 "ClientSessionState": reflect.TypeOf((*q.ClientSessionState)(nil)).Elem(), 70 "Config": reflect.TypeOf((*q.Config)(nil)).Elem(), 71 "Conn": reflect.TypeOf((*q.Conn)(nil)).Elem(), 72 "ConnectionState": reflect.TypeOf((*q.ConnectionState)(nil)).Elem(), 73 "CurveID": reflect.TypeOf((*q.CurveID)(nil)).Elem(), 74 "Dialer": reflect.TypeOf((*q.Dialer)(nil)).Elem(), 75 "RecordHeaderError": reflect.TypeOf((*q.RecordHeaderError)(nil)).Elem(), 76 "RenegotiationSupport": reflect.TypeOf((*q.RenegotiationSupport)(nil)).Elem(), 77 "SignatureScheme": reflect.TypeOf((*q.SignatureScheme)(nil)).Elem(), 78 }, 79 AliasTypes: map[string]reflect.Type{}, 80 Vars: map[string]reflect.Value{}, 81 Funcs: map[string]reflect.Value{ 82 "CipherSuiteName": reflect.ValueOf(q.CipherSuiteName), 83 "CipherSuites": reflect.ValueOf(q.CipherSuites), 84 "Client": reflect.ValueOf(q.Client), 85 "Dial": reflect.ValueOf(q.Dial), 86 "DialWithDialer": reflect.ValueOf(q.DialWithDialer), 87 "InsecureCipherSuites": reflect.ValueOf(q.InsecureCipherSuites), 88 "Listen": reflect.ValueOf(q.Listen), 89 "LoadX509KeyPair": reflect.ValueOf(q.LoadX509KeyPair), 90 "NewLRUClientSessionCache": reflect.ValueOf(q.NewLRUClientSessionCache), 91 "NewListener": reflect.ValueOf(q.NewListener), 92 "Server": reflect.ValueOf(q.Server), 93 "X509KeyPair": reflect.ValueOf(q.X509KeyPair), 94 }, 95 TypedConsts: map[string]igop.TypedConst{ 96 "CurveP256": {reflect.TypeOf(q.CurveP256), constant.MakeInt64(int64(q.CurveP256))}, 97 "CurveP384": {reflect.TypeOf(q.CurveP384), constant.MakeInt64(int64(q.CurveP384))}, 98 "CurveP521": {reflect.TypeOf(q.CurveP521), constant.MakeInt64(int64(q.CurveP521))}, 99 "ECDSAWithP256AndSHA256": {reflect.TypeOf(q.ECDSAWithP256AndSHA256), constant.MakeInt64(int64(q.ECDSAWithP256AndSHA256))}, 100 "ECDSAWithP384AndSHA384": {reflect.TypeOf(q.ECDSAWithP384AndSHA384), constant.MakeInt64(int64(q.ECDSAWithP384AndSHA384))}, 101 "ECDSAWithP521AndSHA512": {reflect.TypeOf(q.ECDSAWithP521AndSHA512), constant.MakeInt64(int64(q.ECDSAWithP521AndSHA512))}, 102 "ECDSAWithSHA1": {reflect.TypeOf(q.ECDSAWithSHA1), constant.MakeInt64(int64(q.ECDSAWithSHA1))}, 103 "Ed25519": {reflect.TypeOf(q.Ed25519), constant.MakeInt64(int64(q.Ed25519))}, 104 "NoClientCert": {reflect.TypeOf(q.NoClientCert), constant.MakeInt64(int64(q.NoClientCert))}, 105 "PKCS1WithSHA1": {reflect.TypeOf(q.PKCS1WithSHA1), constant.MakeInt64(int64(q.PKCS1WithSHA1))}, 106 "PKCS1WithSHA256": {reflect.TypeOf(q.PKCS1WithSHA256), constant.MakeInt64(int64(q.PKCS1WithSHA256))}, 107 "PKCS1WithSHA384": {reflect.TypeOf(q.PKCS1WithSHA384), constant.MakeInt64(int64(q.PKCS1WithSHA384))}, 108 "PKCS1WithSHA512": {reflect.TypeOf(q.PKCS1WithSHA512), constant.MakeInt64(int64(q.PKCS1WithSHA512))}, 109 "PSSWithSHA256": {reflect.TypeOf(q.PSSWithSHA256), constant.MakeInt64(int64(q.PSSWithSHA256))}, 110 "PSSWithSHA384": {reflect.TypeOf(q.PSSWithSHA384), constant.MakeInt64(int64(q.PSSWithSHA384))}, 111 "PSSWithSHA512": {reflect.TypeOf(q.PSSWithSHA512), constant.MakeInt64(int64(q.PSSWithSHA512))}, 112 "RenegotiateFreelyAsClient": {reflect.TypeOf(q.RenegotiateFreelyAsClient), constant.MakeInt64(int64(q.RenegotiateFreelyAsClient))}, 113 "RenegotiateNever": {reflect.TypeOf(q.RenegotiateNever), constant.MakeInt64(int64(q.RenegotiateNever))}, 114 "RenegotiateOnceAsClient": {reflect.TypeOf(q.RenegotiateOnceAsClient), constant.MakeInt64(int64(q.RenegotiateOnceAsClient))}, 115 "RequestClientCert": {reflect.TypeOf(q.RequestClientCert), constant.MakeInt64(int64(q.RequestClientCert))}, 116 "RequireAndVerifyClientCert": {reflect.TypeOf(q.RequireAndVerifyClientCert), constant.MakeInt64(int64(q.RequireAndVerifyClientCert))}, 117 "RequireAnyClientCert": {reflect.TypeOf(q.RequireAnyClientCert), constant.MakeInt64(int64(q.RequireAnyClientCert))}, 118 "TLS_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_AES_128_GCM_SHA256))}, 119 "TLS_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_AES_256_GCM_SHA384))}, 120 "TLS_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_CHACHA20_POLY1305_SHA256))}, 121 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA))}, 122 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256))}, 123 "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256))}, 124 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA))}, 125 "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384))}, 126 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305))}, 127 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256))}, 128 "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA))}, 129 "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA))}, 130 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA))}, 131 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256))}, 132 "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256))}, 133 "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA))}, 134 "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384))}, 135 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305))}, 136 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256))}, 137 "TLS_ECDHE_RSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_RC4_128_SHA))}, 138 "TLS_FALLBACK_SCSV": {reflect.TypeOf(q.TLS_FALLBACK_SCSV), constant.MakeInt64(int64(q.TLS_FALLBACK_SCSV))}, 139 "TLS_RSA_WITH_3DES_EDE_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_3DES_EDE_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_3DES_EDE_CBC_SHA))}, 140 "TLS_RSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_CBC_SHA))}, 141 "TLS_RSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_CBC_SHA256))}, 142 "TLS_RSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_GCM_SHA256))}, 143 "TLS_RSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_256_CBC_SHA))}, 144 "TLS_RSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_RSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_256_GCM_SHA384))}, 145 "TLS_RSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_RC4_128_SHA))}, 146 "VerifyClientCertIfGiven": {reflect.TypeOf(q.VerifyClientCertIfGiven), constant.MakeInt64(int64(q.VerifyClientCertIfGiven))}, 147 "X25519": {reflect.TypeOf(q.X25519), constant.MakeInt64(int64(q.X25519))}, 148 }, 149 UntypedConsts: map[string]igop.UntypedConst{ 150 "VersionSSL30": {"untyped int", constant.MakeInt64(int64(q.VersionSSL30))}, 151 "VersionTLS10": {"untyped int", constant.MakeInt64(int64(q.VersionTLS10))}, 152 "VersionTLS11": {"untyped int", constant.MakeInt64(int64(q.VersionTLS11))}, 153 "VersionTLS12": {"untyped int", constant.MakeInt64(int64(q.VersionTLS12))}, 154 "VersionTLS13": {"untyped int", constant.MakeInt64(int64(q.VersionTLS13))}, 155 }, 156 }) 157 }