MCPcopy
hub / github.com/tjfoc/gmsm / getCAs

Function getCAs

gmtls/gm_support.go:86–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84var initonce sync.Once
85
86func getCAs() []*x509.Certificate {
87 // mod by syl remove pre insert ca certs
88 return nil
89 initonce.Do(func() {
90 for _, pemca := range pemCAs {
91 block, _ := pem.Decode([]byte(pemca.pem))
92 ca, err := x509.ParseCertificate(block.Bytes)
93 if err != nil {
94 panic(err)
95 }
96 certCAs = append(certCAs, ca)
97 }
98 })
99 return certCAs
100}
101
102// A list of cipher suite IDs that are, or have been, implemented by this
103// package.

Callers 2

doFullHandshakeMethod · 0.85
doFullHandshakeMethod · 0.85

Calls 1

ParseCertificateFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…