encoding/pem.Block.Type (field)
12 uses
encoding/pem (current package)
pem.go#L30: Type string // The type, taken from the preamble (i.e. "RSA PRIVATE KEY").
pem.go#L111: Type: string(typeLine),
pem.go#L254: if _, err := out.Write([]byte(b.Type + "-----\n")); err != nil {
pem.go#L301: _, err := out.Write([]byte(b.Type + "-----\n"))
crypto/tls
tls.go#L256: if certDERBlock.Type == "CERTIFICATE" {
tls.go#L259: skippedBlockTypes = append(skippedBlockTypes, certDERBlock.Type)
tls.go#L286: if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
tls.go#L289: skippedBlockTypes = append(skippedBlockTypes, keyDERBlock.Type)
crypto/x509
cert_pool.go#L214: if block.Type != "CERTIFICATE" || len(block.Headers) != 0 {
pem_decrypt.go#L225: Type: blockType,
x509.go#L1686: if block != nil && block.Type == pemType {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |