Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SecTrustGetCertificateAtIndex (0.36 sec)

  1. src/crypto/x509/internal/macos/security.go

    //go:cgo_import_dynamic x509_SecTrustGetCertificateAtIndex SecTrustGetCertificateAtIndex "/System/Library/Frameworks/Security.framework/Versions/A/Security"
    
    func SecTrustGetCertificateAtIndex(trustObj CFRef, i int) (CFRef, error) {
    	ret := syscall(abi.FuncPCABI0(x509_SecTrustGetCertificateAtIndex_trampoline), uintptr(trustObj), uintptr(i), 0, 0, 0, 0)
    	if ret == 0 {
    		return 0, OSStatus{"SecTrustGetCertificateAtIndex", int32(ret)}
    	}
    	return CFRef(ret), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 21 20:05:17 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  2. src/crypto/x509/root_darwin.go

    			return nil, fmt.Errorf("x509: %s", err)
    		}
    	}
    
    	chain := [][]*Certificate{{}}
    	numCerts := macOS.SecTrustGetCertificateCount(trustObj)
    	for i := 0; i < numCerts; i++ {
    		certRef, err := macOS.SecTrustGetCertificateAtIndex(trustObj, i)
    		if err != nil {
    			return nil, err
    		}
    		cert, err := exportCertificate(certRef)
    		if err != nil {
    			return nil, err
    		}
    		chain[0] = append(chain[0], cert)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top