Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for caerror (0.12 sec)

  1. security/pkg/nodeagent/test/mock/caserver.go

    	return response, nil
    }
    
    func (s *CAServer) sign(csrPEM []byte, subjectIDs []string, _ time.Duration, forCA bool) ([]byte, error) {
    	csr, err := util.ParsePemEncodedCSR(csrPEM)
    	if err != nil {
    		caServerLog.Errorf("failed to parse CSR: %+v", err)
    		return nil, caerror.NewError(caerror.CSRError, err)
    	}
    	signingCert, signingKey, _, _ := s.KeyCertBundle.GetAll()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. security/pkg/server/ca/fuzz_test.go

    	"istio.io/istio/pkg/security"
    	mockca "istio.io/istio/security/pkg/pki/ca/mock"
    	caerror "istio.io/istio/security/pkg/pki/error"
    )
    
    func FuzzCreateCertificate(f *testing.F) {
    	fuzz.Fuzz(f, func(fg fuzz.Helper) {
    		csr := fuzz.Struct[pb.IstioCertificateRequest](fg)
    		ca := fuzz.Struct[mockca.FakeCA](fg)
    		ca.SignErr = caerror.NewError(caerror.CSRError, fmt.Errorf("cannot sign"))
    		server := &Server{
    			ca:             &ca,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 15 21:32:54 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. security/pkg/pki/ca/mock/fakeca.go

    // limitations under the License.
    
    package mock
    
    import (
    	"istio.io/istio/security/pkg/pki/ca"
    	caerror "istio.io/istio/security/pkg/pki/error"
    	"istio.io/istio/security/pkg/pki/util"
    )
    
    // FakeCA is a mock of CertificateAuthority.
    type FakeCA struct {
    	SignedCert    []byte
    	SignErr       *caerror.Error
    	KeyCertBundle *util.KeyCertBundle
    	ReceivedIDs   []string
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 03 18:57:19 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  4. security/pkg/server/ca/server.go

    		return nil, status.Errorf(signErr.(*caerror.Error).HTTPErrorCode(), "CSR signing error (%v)", signErr.(*caerror.Error))
    	}
    	if certSigner == "" {
    		respCertChain = []string{string(cert)}
    		if len(certChainBytes) != 0 {
    			respCertChain = append(respCertChain, string(certChainBytes))
    			serverCaLog.Debugf("Append cert chain to response, %s", string(certChainBytes))
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:26 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUError.h

     *
     *  05-Sep-2004   Added internal test interface. (JDS)
     */
    
    /** @file
     *  Error handling functions (user interface).
     *  CUnit uses a simple (and conventional) error handling strategy.
     *  Functions that can generate errors set (and usually return) an
     *  error code to indicate the run status.  The error code can be
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. security/pkg/pki/ra/common.go

    	if forCA {
    		return requestedLifetime, raerror.NewError(raerror.CSRError,
    			fmt.Errorf("unable to generate CA certifificates"))
    	}
    	if !ValidateCSR(csrPEM, subjectIDs) {
    		return requestedLifetime, raerror.NewError(raerror.CSRError, fmt.Errorf(
    			"unable to validate SAN Identities in CSR"))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 11 19:57:30 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. security/pkg/pki/ra/k8s_ra.go

    			possibleRootCert = rootCertFromCertChain
    		}
    		if possibleRootCert == nil {
    			return nil, raerror.NewError(raerror.CSRError, fmt.Errorf("failed to find root cert from either signed cert-chain or mesh config"))
    		}
    		if verifyErr := util.VerifyCertificate(nil, cert, possibleRootCert, nil); verifyErr != nil {
    			return nil, raerror.NewError(raerror.CSRError, fmt.Errorf("root cert from signed cert-chain is invalid (%v)", verifyErr))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 02 14:34:38 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3_test.go

    func Test_atomicLastError(t *testing.T) {
    	aError := &atomicLastError{err: fmt.Errorf("initial error")}
    	// no timestamp is always updated
    	aError.Store(errors.New("updated error"), time.Time{})
    	err := aError.Load()
    	if err.Error() != "updated error" {
    		t.Fatalf("Expected: \"updated error\" got: %s", err.Error())
    	}
    	// update to current time
    	now := time.Now()
    	aError.Store(errors.New("now error"), now)
    	err = aError.Load()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 29 15:58:10 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/error.go

    	"errors"
    	"fmt"
    )
    
    var ErrPartialAdd = errors.New("partial add error")
    
    type PartialAddError struct {
    	inner error
    }
    
    func (e *PartialAddError) Error() string {
    	return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner)
    }
    
    func (e *PartialAddError) Unwrap() []error {
    	return []error{ErrPartialAdd, e.inner}
    }
    
    func NewErrPartialAdd(err error) *PartialAddError {
    	return &PartialAddError{
    		inner: err,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. cmd/naughty-disk_test.go

    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    	errors map[int]error
    	// The error to return when no error value is programmed
    	defaultErr error
    	// The current API call number
    	callNR int
    	// Data protection
    	mu sync.Mutex
    }
    
    func newNaughtyDisk(d StorageAPI, errs map[int]error, defaultErr error) *naughtyDisk {
    	return &naughtyDisk{disk: d, errors: errs, defaultErr: defaultErr}
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top