encoding/pem.Block.Type (field)
17 uses
encoding/pem (current package)
pem.go#L30: Type string // The type, taken from the preamble (i.e. "RSA PRIVATE KEY").
pem.go#L131: Type: string(typeLine),
pem.go#L269: if _, err := out.Write([]byte(b.Type + "-----\n")); err != nil {
pem.go#L316: _, err := out.Write([]byte(b.Type + "-----\n"))
crypto/tls
tls.go#L277: if certDERBlock.Type == "CERTIFICATE" {
tls.go#L280: skippedBlockTypes = append(skippedBlockTypes, certDERBlock.Type)
tls.go#L307: if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
tls.go#L310: skippedBlockTypes = append(skippedBlockTypes, keyDERBlock.Type)
crypto/x509
cert_pool.go#L226: if block.Type != "CERTIFICATE" || len(block.Headers) != 0 {
pem_decrypt.go#L225: Type: blockType,
x509.go#L1830: if block != nil && block.Type == pemType {
github.com/refraction-networking/utls
tls.go#L265: if certDERBlock.Type == "CERTIFICATE" {
tls.go#L268: skippedBlockTypes = append(skippedBlockTypes, certDERBlock.Type)
tls.go#L295: if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
tls.go#L298: skippedBlockTypes = append(skippedBlockTypes, keyDERBlock.Type)
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |