Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for VerifyOptions (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *DynamicFileCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		return x509.VerifyOptions{}, false
    	}
    
    	return uncastObj.(*caBundleAndVerifier).verifyOptions, true
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/union_content.go

    		}
    	}
    
    	return bytes.Join(caBundles, []byte("\n"))
    }
    
    // CurrentCABundleContent provides ca bundle byte content
    func (c unionCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	currCABundle := c.CurrentCABundleContent()
    	if len(currCABundle) == 0 {
    		return x509.VerifyOptions{}, false
    	}
    
    	// TODO make more efficient.  This isn't actually used in any of our mainline paths.  It's called to build the TLSConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 07 14:37:01 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/interfaces.go

    	// contained to the controllers initializing the value. By the time you get
    	// here, you should always be returning a value that won't fail.
    	CurrentCABundleContent() []byte
    	// VerifyOptions provides VerifyOptions for authenticators.
    	VerifyOptions() (x509.VerifyOptions, bool)
    }
    
    // CertKeyContentProvider provides a certificate and matching private key.
    type CertKeyContentProvider interface {
    	Notifier
    
    	// Name is just an identifier.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    	}
    
    	return c.caBundle.Load().(*caBundleAndVerifier).caBundle
    }
    
    // VerifyOptions provides verifyoptions compatible with authenticators
    func (c *ConfigMapCAController) VerifyOptions() (x509.VerifyOptions, bool) {
    	uncastObj := c.caBundle.Load()
    	if uncastObj == nil {
    		// This can happen if we've been unable load data from the apiserver for some reason.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/static_content.go

    // CurrentCABundleContent provides ca bundle byte content
    func (c *staticCAContent) CurrentCABundleContent() (cabundle []byte) {
    	return c.caBundle.caBundle
    }
    
    func (c *staticCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	return c.caBundle.verifyOptions, true
    }
    
    type staticCertKeyContent struct {
    	name string
    	cert []byte
    	key  []byte
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go

    }
    
    // DefaultVerifyOptions returns VerifyOptions that use the system root certificates, current time,
    // and requires certificates to be valid for client auth (x509.ExtKeyUsageClientAuth)
    func DefaultVerifyOptions() x509.VerifyOptions {
    	return x509.VerifyOptions{
    		KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 01:31:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/server_test.go

    // CurrentCABundleContent provides ca bundle byte content
    func (c *nullCAContent) CurrentCABundleContent() (cabundle []byte) {
    	return nil
    }
    
    func (c *nullCAContent) VerifyOptions() (x509.VerifyOptions, bool) {
    	return x509.VerifyOptions{}, false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 12 18:29:15 UTC 2021
    - 6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/request/x509/verify_options.go

    	"k8s.io/client-go/util/cert"
    )
    
    // StaticVerifierFn is a VerifyOptionFunc that always returns the same value.  This allows verify options that cannot change.
    func StaticVerifierFn(opts x509.VerifyOptions) VerifyOptionFunc {
    	return func() (x509.VerifyOptions, bool) {
    		return opts, true
    	}
    }
    
    // NewStaticVerifierFromFile creates a new verification func from a file.  It reads the content and then fails.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 07 19:48:24 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  9. src/crypto/x509/root_plan9.go

    //go:build plan9
    
    package x509
    
    import (
    	"os"
    )
    
    // Possible certificate files; stop after finding one.
    var certFiles = []string{
    	"/sys/lib/tls/ca.pem",
    }
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	return nil, nil
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	roots := NewCertPool()
    	var bestErr error
    	for _, file := range certFiles {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 828 bytes
    - Viewed (0)
  10. src/crypto/x509/root_windows.go

    // The store is automatically freed when the CertContext is freed using
    // syscall.CertFreeCertificateContext.
    func createStoreContext(leaf *Certificate, opts *VerifyOptions) (*syscall.CertContext, error) {
    	var storeCtx *syscall.CertContext
    
    	leafCtx, err := syscall.CertCreateCertificateContext(syscall.X509_ASN_ENCODING|syscall.PKCS_7_ASN_ENCODING, &leaf.Raw[0], uint32(len(leaf.Raw)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top