Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 65 for parseCert (0.19 sec)

  1. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/LibraryTest.groovy

            platformXml = XML_TEXT_TEMPLATE.replace("%FILE_URI%", new File("ant-javadoc.jar").toURI().toString());
        }
    
        def canReadFromXml() {
            when:
            Library library = new Library(new XmlParser().parseText(platformXml), fileReferenceFactory)
    
            then:
            library == createLibrary()
        }
    
        def canWriteToXml() {
            Node rootNode = new Node(null, 'root')
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/certs/certlist_test.go

    	if err != nil {
    		t.Fatalf("couldn't parse certificate and key: %v", err)
    	}
    
    	parsedCert, err := x509.ParseCertificate(certPair.Certificate[0])
    	if err != nil {
    		t.Fatalf("couldn't parse certificate: %v", err)
    	}
    
    	return parsedCert, certPair.PrivateKey
    }
    
    func TestCreateKeyAndCSR(t *testing.T) {
    	dir, err := os.MkdirTemp("", t.Name())
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/scripts/process-log.groovy

            entry.collect {
                sortDeep(it)
            }.sort()
        } else {
            entry
        }
    }
    
    private sort(String spec) {
        def jsonSlurper = new JsonSlurper()
        def parsed = jsonSlurper.parseText(spec)
        def sorted = sortDeep(parsed)
        JsonOutput.toJson(sorted)
    }
    
    private File findProcessedDirectory() {
        int cpt = 0
        File processedDir
        while (processedDir == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. src/crypto/x509/root_windows.go

    		cert := elements[i].CertContext
    		encodedCert := unsafe.Slice(cert.EncodedCert, cert.Length)
    		buf := bytes.Clone(encodedCert)
    		parsedCert, err := ParseCertificate(buf)
    		if err != nil {
    			return nil, err
    		}
    		chain = append(chain, parsedCert)
    	}
    
    	return chain, nil
    }
    
    // checkChainTrustStatus checks the trust status of the certificate chain, translating
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. cni/pkg/plugin/sidecar_redirect.go

    	dedup := make(map[string]bool)
    	keys := []string{}
    
    	for _, port := range ports {
    		if !dedup[port] {
    			dedup[port] = true
    			keys = append(keys, port)
    		}
    	}
    	return keys
    }
    
    func parsePort(portStr string) (uint16, error) {
    	port, err := strconv.ParseUint(strings.TrimSpace(portStr), 10, 16)
    	if err != nil {
    		return 0, fmt.Errorf("failed parsing port %q: %v", portStr, err)
    	}
    	return uint16(port), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. src/go/build/read.go

    	if r.err != nil {
    		return r.err
    	}
    
    	if info.fset == nil {
    		return nil
    	}
    
    	// Parse file header & record imports.
    	info.parsed, info.parseErr = parser.ParseFile(info.fset, info.name, info.header, parser.ImportsOnly|parser.ParseComments)
    	if info.parseErr != nil {
    		return nil
    	}
    
    	hasEmbed := false
    	for _, decl := range info.parsed.Decls {
    		d, ok := decl.(*ast.GenDecl)
    		if !ok {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/go/doc/comment/parse.go

    	}
    	if i >= 0 {
    		before = text[:i]
    	}
    	return before, name, true
    }
    
    // parseText parses s as text and returns the result of appending
    // those parsed Text elements to out.
    // parseText does not handle explicit links like [math.Sin] or [Go home page]:
    // those are handled by parseLinkedText.
    // If autoLink is true, then parseText recognizes URLs and words from d.Words
    // and converts those to links as appropriate.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modindex/scan.go

    		}
    
    		// Going to save the file. For non-Go files, can stop here.
    		p.sourceFiles = append(p.sourceFiles, rf)
    		if ext != ".go" {
    			continue
    		}
    
    		if info.parseErr != nil {
    			rf.parseError = parseErrorToString(info.parseErr)
    			// Fall through: we might still have a partial AST in info.Parsed,
    			// and we want to list files with parse errors anyway.
    		}
    
    		if info.parsed != nil && info.parsed.Doc != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modindex/build_read.go

    	if r.err != nil {
    		return r.err
    	}
    
    	if info.fset == nil {
    		return nil
    	}
    
    	// Parse file header & record imports.
    	info.parsed, info.parseErr = parser.ParseFile(info.fset, info.name, info.header, parser.ImportsOnly|parser.ParseComments)
    	if info.parseErr != nil {
    		return nil
    	}
    
    	hasEmbed := false
    	for _, decl := range info.parsed.Decls {
    		d, ok := decl.(*ast.GenDecl)
    		if !ok {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  10. platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/legacy/GradleEnterprisePluginLegacyContactPointFixture.groovy

        List<BuildScanConfig.Attributes> allAttributes(String output) {
            output.findAll("buildScan\\.attributes: \\{(.+)\\}\\\n") {
                it[1]
            }.collect {
                def map = new JsonSlurper().parseText("{" + it + "}")
                new BuildScanConfig.Attributes() {
                    @Override
                    boolean isRootProjectHasVcsMappings() {
                        return false
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:24:56 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top