Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UnhandledCriticalExtension (0.54 sec)

  1. src/crypto/x509/verify_test.go

    		t.Fatalf("error was not a NotAuthorizedToSign: %v", err)
    	}
    }
    
    func expectUnhandledCriticalExtension(t *testing.T, err error) {
    	if _, ok := err.(UnhandledCriticalExtension); !ok {
    		t.Fatalf("error was not an UnhandledCriticalExtension: %v", err)
    	}
    }
    
    func certificateFromPEM(pemBytes string) (*Certificate, error) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	if block == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	algo := getSignatureAlgorithmFromAI(crl.SignatureAlgorithm)
    	return c.CheckSignature(algo, crl.TBSCertList.Raw, crl.SignatureValue.RightAlign())
    }
    
    type UnhandledCriticalExtension struct{}
    
    func (h UnhandledCriticalExtension) Error() string {
    	return "x509: unhandled critical extension"
    }
    
    type basicConstraints struct {
    	IsCA       bool `asn1:"optional"`
    	MaxPathLen int  `asn1:"optional,default:-1"`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  3. src/crypto/x509/verify.go

    // to the chain in currentChain.
    func (c *Certificate) isValid(certType int, currentChain []*Certificate, opts *VerifyOptions) error {
    	if len(c.UnhandledCriticalExtensions) > 0 {
    		return UnhandledCriticalExtension{}
    	}
    
    	if len(currentChain) > 0 {
    		child := currentChain[len(currentChain)-1]
    		if !bytes.Equal(child.RawIssuer, c.RawSubject) {
    			return CertificateInvalidError{c, NameMismatch, ""}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(PublicKeyAlgorithm).String", Method, 10},
    		{"(SignatureAlgorithm).String", Method, 6},
    		{"(SystemRootsError).Error", Method, 1},
    		{"(SystemRootsError).Unwrap", Method, 16},
    		{"(UnhandledCriticalExtension).Error", Method, 0},
    		{"(UnknownAuthorityError).Error", Method, 0},
    		{"CANotAuthorizedForExtKeyUsage", Const, 10},
    		{"CANotAuthorizedForThisName", Const, 0},
    		{"CertPool", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg crypto/x509, method (CertificateInvalidError) Error() string
    pkg crypto/x509, method (ConstraintViolationError) Error() string
    pkg crypto/x509, method (HostnameError) Error() string
    pkg crypto/x509, method (UnhandledCriticalExtension) Error() string
    pkg crypto/x509, method (UnknownAuthorityError) Error() string
    pkg crypto/x509, type CertPool struct
    pkg crypto/x509, type Certificate struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top