github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_crypto_x509.go (about)

     1  // Code generated by 'yaegi extract crypto/x509'. DO NOT EDIT.
     2  
     3  //go:build go1.20
     4  // +build go1.20
     5  
     6  package stdlib
     7  
     8  import (
     9  	"crypto/x509"
    10  	"reflect"
    11  )
    12  
    13  func init() {
    14  	Symbols["crypto/x509/x509"] = map[string]reflect.Value{
    15  		// function, constant and variable definitions
    16  		"CANotAuthorizedForExtKeyUsage":             reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage),
    17  		"CANotAuthorizedForThisName":                reflect.ValueOf(x509.CANotAuthorizedForThisName),
    18  		"CreateCertificate":                         reflect.ValueOf(x509.CreateCertificate),
    19  		"CreateCertificateRequest":                  reflect.ValueOf(x509.CreateCertificateRequest),
    20  		"CreateRevocationList":                      reflect.ValueOf(x509.CreateRevocationList),
    21  		"DSA":                                       reflect.ValueOf(x509.DSA),
    22  		"DSAWithSHA1":                               reflect.ValueOf(x509.DSAWithSHA1),
    23  		"DSAWithSHA256":                             reflect.ValueOf(x509.DSAWithSHA256),
    24  		"DecryptPEMBlock":                           reflect.ValueOf(x509.DecryptPEMBlock),
    25  		"ECDSA":                                     reflect.ValueOf(x509.ECDSA),
    26  		"ECDSAWithSHA1":                             reflect.ValueOf(x509.ECDSAWithSHA1),
    27  		"ECDSAWithSHA256":                           reflect.ValueOf(x509.ECDSAWithSHA256),
    28  		"ECDSAWithSHA384":                           reflect.ValueOf(x509.ECDSAWithSHA384),
    29  		"ECDSAWithSHA512":                           reflect.ValueOf(x509.ECDSAWithSHA512),
    30  		"Ed25519":                                   reflect.ValueOf(x509.Ed25519),
    31  		"EncryptPEMBlock":                           reflect.ValueOf(x509.EncryptPEMBlock),
    32  		"ErrUnsupportedAlgorithm":                   reflect.ValueOf(&x509.ErrUnsupportedAlgorithm).Elem(),
    33  		"Expired":                                   reflect.ValueOf(x509.Expired),
    34  		"ExtKeyUsageAny":                            reflect.ValueOf(x509.ExtKeyUsageAny),
    35  		"ExtKeyUsageClientAuth":                     reflect.ValueOf(x509.ExtKeyUsageClientAuth),
    36  		"ExtKeyUsageCodeSigning":                    reflect.ValueOf(x509.ExtKeyUsageCodeSigning),
    37  		"ExtKeyUsageEmailProtection":                reflect.ValueOf(x509.ExtKeyUsageEmailProtection),
    38  		"ExtKeyUsageIPSECEndSystem":                 reflect.ValueOf(x509.ExtKeyUsageIPSECEndSystem),
    39  		"ExtKeyUsageIPSECTunnel":                    reflect.ValueOf(x509.ExtKeyUsageIPSECTunnel),
    40  		"ExtKeyUsageIPSECUser":                      reflect.ValueOf(x509.ExtKeyUsageIPSECUser),
    41  		"ExtKeyUsageMicrosoftCommercialCodeSigning": reflect.ValueOf(x509.ExtKeyUsageMicrosoftCommercialCodeSigning),
    42  		"ExtKeyUsageMicrosoftKernelCodeSigning":     reflect.ValueOf(x509.ExtKeyUsageMicrosoftKernelCodeSigning),
    43  		"ExtKeyUsageMicrosoftServerGatedCrypto":     reflect.ValueOf(x509.ExtKeyUsageMicrosoftServerGatedCrypto),
    44  		"ExtKeyUsageNetscapeServerGatedCrypto":      reflect.ValueOf(x509.ExtKeyUsageNetscapeServerGatedCrypto),
    45  		"ExtKeyUsageOCSPSigning":                    reflect.ValueOf(x509.ExtKeyUsageOCSPSigning),
    46  		"ExtKeyUsageServerAuth":                     reflect.ValueOf(x509.ExtKeyUsageServerAuth),
    47  		"ExtKeyUsageTimeStamping":                   reflect.ValueOf(x509.ExtKeyUsageTimeStamping),
    48  		"IncompatibleUsage":                         reflect.ValueOf(x509.IncompatibleUsage),
    49  		"IncorrectPasswordError":                    reflect.ValueOf(&x509.IncorrectPasswordError).Elem(),
    50  		"IsEncryptedPEMBlock":                       reflect.ValueOf(x509.IsEncryptedPEMBlock),
    51  		"KeyUsageCRLSign":                           reflect.ValueOf(x509.KeyUsageCRLSign),
    52  		"KeyUsageCertSign":                          reflect.ValueOf(x509.KeyUsageCertSign),
    53  		"KeyUsageContentCommitment":                 reflect.ValueOf(x509.KeyUsageContentCommitment),
    54  		"KeyUsageDataEncipherment":                  reflect.ValueOf(x509.KeyUsageDataEncipherment),
    55  		"KeyUsageDecipherOnly":                      reflect.ValueOf(x509.KeyUsageDecipherOnly),
    56  		"KeyUsageDigitalSignature":                  reflect.ValueOf(x509.KeyUsageDigitalSignature),
    57  		"KeyUsageEncipherOnly":                      reflect.ValueOf(x509.KeyUsageEncipherOnly),
    58  		"KeyUsageKeyAgreement":                      reflect.ValueOf(x509.KeyUsageKeyAgreement),
    59  		"KeyUsageKeyEncipherment":                   reflect.ValueOf(x509.KeyUsageKeyEncipherment),
    60  		"MD2WithRSA":                                reflect.ValueOf(x509.MD2WithRSA),
    61  		"MD5WithRSA":                                reflect.ValueOf(x509.MD5WithRSA),
    62  		"MarshalECPrivateKey":                       reflect.ValueOf(x509.MarshalECPrivateKey),
    63  		"MarshalPKCS1PrivateKey":                    reflect.ValueOf(x509.MarshalPKCS1PrivateKey),
    64  		"MarshalPKCS1PublicKey":                     reflect.ValueOf(x509.MarshalPKCS1PublicKey),
    65  		"MarshalPKCS8PrivateKey":                    reflect.ValueOf(x509.MarshalPKCS8PrivateKey),
    66  		"MarshalPKIXPublicKey":                      reflect.ValueOf(x509.MarshalPKIXPublicKey),
    67  		"NameConstraintsWithoutSANs":                reflect.ValueOf(x509.NameConstraintsWithoutSANs),
    68  		"NameMismatch":                              reflect.ValueOf(x509.NameMismatch),
    69  		"NewCertPool":                               reflect.ValueOf(x509.NewCertPool),
    70  		"NotAuthorizedToSign":                       reflect.ValueOf(x509.NotAuthorizedToSign),
    71  		"PEMCipher3DES":                             reflect.ValueOf(x509.PEMCipher3DES),
    72  		"PEMCipherAES128":                           reflect.ValueOf(x509.PEMCipherAES128),
    73  		"PEMCipherAES192":                           reflect.ValueOf(x509.PEMCipherAES192),
    74  		"PEMCipherAES256":                           reflect.ValueOf(x509.PEMCipherAES256),
    75  		"PEMCipherDES":                              reflect.ValueOf(x509.PEMCipherDES),
    76  		"ParseCRL":                                  reflect.ValueOf(x509.ParseCRL),
    77  		"ParseCertificate":                          reflect.ValueOf(x509.ParseCertificate),
    78  		"ParseCertificateRequest":                   reflect.ValueOf(x509.ParseCertificateRequest),
    79  		"ParseCertificates":                         reflect.ValueOf(x509.ParseCertificates),
    80  		"ParseDERCRL":                               reflect.ValueOf(x509.ParseDERCRL),
    81  		"ParseECPrivateKey":                         reflect.ValueOf(x509.ParseECPrivateKey),
    82  		"ParsePKCS1PrivateKey":                      reflect.ValueOf(x509.ParsePKCS1PrivateKey),
    83  		"ParsePKCS1PublicKey":                       reflect.ValueOf(x509.ParsePKCS1PublicKey),
    84  		"ParsePKCS8PrivateKey":                      reflect.ValueOf(x509.ParsePKCS8PrivateKey),
    85  		"ParsePKIXPublicKey":                        reflect.ValueOf(x509.ParsePKIXPublicKey),
    86  		"ParseRevocationList":                       reflect.ValueOf(x509.ParseRevocationList),
    87  		"PureEd25519":                               reflect.ValueOf(x509.PureEd25519),
    88  		"RSA":                                       reflect.ValueOf(x509.RSA),
    89  		"SHA1WithRSA":                               reflect.ValueOf(x509.SHA1WithRSA),
    90  		"SHA256WithRSA":                             reflect.ValueOf(x509.SHA256WithRSA),
    91  		"SHA256WithRSAPSS":                          reflect.ValueOf(x509.SHA256WithRSAPSS),
    92  		"SHA384WithRSA":                             reflect.ValueOf(x509.SHA384WithRSA),
    93  		"SHA384WithRSAPSS":                          reflect.ValueOf(x509.SHA384WithRSAPSS),
    94  		"SHA512WithRSA":                             reflect.ValueOf(x509.SHA512WithRSA),
    95  		"SHA512WithRSAPSS":                          reflect.ValueOf(x509.SHA512WithRSAPSS),
    96  		"SetFallbackRoots":                          reflect.ValueOf(x509.SetFallbackRoots),
    97  		"SystemCertPool":                            reflect.ValueOf(x509.SystemCertPool),
    98  		"TooManyConstraints":                        reflect.ValueOf(x509.TooManyConstraints),
    99  		"TooManyIntermediates":                      reflect.ValueOf(x509.TooManyIntermediates),
   100  		"UnconstrainedName":                         reflect.ValueOf(x509.UnconstrainedName),
   101  		"UnknownPublicKeyAlgorithm":                 reflect.ValueOf(x509.UnknownPublicKeyAlgorithm),
   102  		"UnknownSignatureAlgorithm":                 reflect.ValueOf(x509.UnknownSignatureAlgorithm),
   103  
   104  		// type definitions
   105  		"CertPool":                   reflect.ValueOf((*x509.CertPool)(nil)),
   106  		"Certificate":                reflect.ValueOf((*x509.Certificate)(nil)),
   107  		"CertificateInvalidError":    reflect.ValueOf((*x509.CertificateInvalidError)(nil)),
   108  		"CertificateRequest":         reflect.ValueOf((*x509.CertificateRequest)(nil)),
   109  		"ConstraintViolationError":   reflect.ValueOf((*x509.ConstraintViolationError)(nil)),
   110  		"ExtKeyUsage":                reflect.ValueOf((*x509.ExtKeyUsage)(nil)),
   111  		"HostnameError":              reflect.ValueOf((*x509.HostnameError)(nil)),
   112  		"InsecureAlgorithmError":     reflect.ValueOf((*x509.InsecureAlgorithmError)(nil)),
   113  		"InvalidReason":              reflect.ValueOf((*x509.InvalidReason)(nil)),
   114  		"KeyUsage":                   reflect.ValueOf((*x509.KeyUsage)(nil)),
   115  		"PEMCipher":                  reflect.ValueOf((*x509.PEMCipher)(nil)),
   116  		"PublicKeyAlgorithm":         reflect.ValueOf((*x509.PublicKeyAlgorithm)(nil)),
   117  		"RevocationList":             reflect.ValueOf((*x509.RevocationList)(nil)),
   118  		"SignatureAlgorithm":         reflect.ValueOf((*x509.SignatureAlgorithm)(nil)),
   119  		"SystemRootsError":           reflect.ValueOf((*x509.SystemRootsError)(nil)),
   120  		"UnhandledCriticalExtension": reflect.ValueOf((*x509.UnhandledCriticalExtension)(nil)),
   121  		"UnknownAuthorityError":      reflect.ValueOf((*x509.UnknownAuthorityError)(nil)),
   122  		"VerifyOptions":              reflect.ValueOf((*x509.VerifyOptions)(nil)),
   123  	}
   124  }