github.com/goplus/igop@v0.25.0/pkg/crypto/tls/go114_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //+build go1.14,!go1.15 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 "crypto": "crypto", 24 "crypto/aes": "aes", 25 "crypto/cipher": "cipher", 26 "crypto/des": "des", 27 "crypto/ecdsa": "ecdsa", 28 "crypto/ed25519": "ed25519", 29 "crypto/elliptic": "elliptic", 30 "crypto/hmac": "hmac", 31 "crypto/md5": "md5", 32 "crypto/rand": "rand", 33 "crypto/rc4": "rc4", 34 "crypto/rsa": "rsa", 35 "crypto/sha1": "sha1", 36 "crypto/sha256": "sha256", 37 "crypto/sha512": "sha512", 38 "crypto/subtle": "subtle", 39 "crypto/x509": "x509", 40 "encoding/asn1": "asn1", 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 "RecordHeaderError": reflect.TypeOf((*q.RecordHeaderError)(nil)).Elem(), 75 "RenegotiationSupport": reflect.TypeOf((*q.RenegotiationSupport)(nil)).Elem(), 76 "SignatureScheme": reflect.TypeOf((*q.SignatureScheme)(nil)).Elem(), 77 }, 78 AliasTypes: map[string]reflect.Type{}, 79 Vars: map[string]reflect.Value{}, 80 Funcs: map[string]reflect.Value{ 81 "CipherSuiteName": reflect.ValueOf(q.CipherSuiteName), 82 "CipherSuites": reflect.ValueOf(q.CipherSuites), 83 "Client": reflect.ValueOf(q.Client), 84 "Dial": reflect.ValueOf(q.Dial), 85 "DialWithDialer": reflect.ValueOf(q.DialWithDialer), 86 "InsecureCipherSuites": reflect.ValueOf(q.InsecureCipherSuites), 87 "Listen": reflect.ValueOf(q.Listen), 88 "LoadX509KeyPair": reflect.ValueOf(q.LoadX509KeyPair), 89 "NewLRUClientSessionCache": reflect.ValueOf(q.NewLRUClientSessionCache), 90 "NewListener": reflect.ValueOf(q.NewListener), 91 "Server": reflect.ValueOf(q.Server), 92 "X509KeyPair": reflect.ValueOf(q.X509KeyPair), 93 }, 94 TypedConsts: map[string]igop.TypedConst{ 95 "CurveP256": {reflect.TypeOf(q.CurveP256), constant.MakeInt64(int64(q.CurveP256))}, 96 "CurveP384": {reflect.TypeOf(q.CurveP384), constant.MakeInt64(int64(q.CurveP384))}, 97 "CurveP521": {reflect.TypeOf(q.CurveP521), constant.MakeInt64(int64(q.CurveP521))}, 98 "ECDSAWithP256AndSHA256": {reflect.TypeOf(q.ECDSAWithP256AndSHA256), constant.MakeInt64(int64(q.ECDSAWithP256AndSHA256))}, 99 "ECDSAWithP384AndSHA384": {reflect.TypeOf(q.ECDSAWithP384AndSHA384), constant.MakeInt64(int64(q.ECDSAWithP384AndSHA384))}, 100 "ECDSAWithP521AndSHA512": {reflect.TypeOf(q.ECDSAWithP521AndSHA512), constant.MakeInt64(int64(q.ECDSAWithP521AndSHA512))}, 101 "ECDSAWithSHA1": {reflect.TypeOf(q.ECDSAWithSHA1), constant.MakeInt64(int64(q.ECDSAWithSHA1))}, 102 "Ed25519": {reflect.TypeOf(q.Ed25519), constant.MakeInt64(int64(q.Ed25519))}, 103 "NoClientCert": {reflect.TypeOf(q.NoClientCert), constant.MakeInt64(int64(q.NoClientCert))}, 104 "PKCS1WithSHA1": {reflect.TypeOf(q.PKCS1WithSHA1), constant.MakeInt64(int64(q.PKCS1WithSHA1))}, 105 "PKCS1WithSHA256": {reflect.TypeOf(q.PKCS1WithSHA256), constant.MakeInt64(int64(q.PKCS1WithSHA256))}, 106 "PKCS1WithSHA384": {reflect.TypeOf(q.PKCS1WithSHA384), constant.MakeInt64(int64(q.PKCS1WithSHA384))}, 107 "PKCS1WithSHA512": {reflect.TypeOf(q.PKCS1WithSHA512), constant.MakeInt64(int64(q.PKCS1WithSHA512))}, 108 "PSSWithSHA256": {reflect.TypeOf(q.PSSWithSHA256), constant.MakeInt64(int64(q.PSSWithSHA256))}, 109 "PSSWithSHA384": {reflect.TypeOf(q.PSSWithSHA384), constant.MakeInt64(int64(q.PSSWithSHA384))}, 110 "PSSWithSHA512": {reflect.TypeOf(q.PSSWithSHA512), constant.MakeInt64(int64(q.PSSWithSHA512))}, 111 "RenegotiateFreelyAsClient": {reflect.TypeOf(q.RenegotiateFreelyAsClient), constant.MakeInt64(int64(q.RenegotiateFreelyAsClient))}, 112 "RenegotiateNever": {reflect.TypeOf(q.RenegotiateNever), constant.MakeInt64(int64(q.RenegotiateNever))}, 113 "RenegotiateOnceAsClient": {reflect.TypeOf(q.RenegotiateOnceAsClient), constant.MakeInt64(int64(q.RenegotiateOnceAsClient))}, 114 "RequestClientCert": {reflect.TypeOf(q.RequestClientCert), constant.MakeInt64(int64(q.RequestClientCert))}, 115 "RequireAndVerifyClientCert": {reflect.TypeOf(q.RequireAndVerifyClientCert), constant.MakeInt64(int64(q.RequireAndVerifyClientCert))}, 116 "RequireAnyClientCert": {reflect.TypeOf(q.RequireAnyClientCert), constant.MakeInt64(int64(q.RequireAnyClientCert))}, 117 "TLS_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_AES_128_GCM_SHA256))}, 118 "TLS_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_AES_256_GCM_SHA384))}, 119 "TLS_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_CHACHA20_POLY1305_SHA256))}, 120 "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))}, 121 "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))}, 122 "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))}, 123 "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))}, 124 "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))}, 125 "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))}, 126 "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))}, 127 "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))}, 128 "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))}, 129 "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))}, 130 "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))}, 131 "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))}, 132 "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))}, 133 "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))}, 134 "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))}, 135 "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))}, 136 "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))}, 137 "TLS_FALLBACK_SCSV": {reflect.TypeOf(q.TLS_FALLBACK_SCSV), constant.MakeInt64(int64(q.TLS_FALLBACK_SCSV))}, 138 "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))}, 139 "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))}, 140 "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))}, 141 "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))}, 142 "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))}, 143 "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))}, 144 "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))}, 145 "VerifyClientCertIfGiven": {reflect.TypeOf(q.VerifyClientCertIfGiven), constant.MakeInt64(int64(q.VerifyClientCertIfGiven))}, 146 "X25519": {reflect.TypeOf(q.X25519), constant.MakeInt64(int64(q.X25519))}, 147 }, 148 UntypedConsts: map[string]igop.UntypedConst{ 149 "VersionSSL30": {"untyped int", constant.MakeInt64(int64(q.VersionSSL30))}, 150 "VersionTLS10": {"untyped int", constant.MakeInt64(int64(q.VersionTLS10))}, 151 "VersionTLS11": {"untyped int", constant.MakeInt64(int64(q.VersionTLS11))}, 152 "VersionTLS12": {"untyped int", constant.MakeInt64(int64(q.VersionTLS12))}, 153 "VersionTLS13": {"untyped int", constant.MakeInt64(int64(q.VersionTLS13))}, 154 }, 155 }) 156 }