MCPcopy Create free account
hub / github.com/libgit2/git2go / Certificate

Struct Certificate

remote.go:270–274  ·  view source on GitHub ↗

Certificate represents the two possible certificates which libgit2 knows it might find. If Kind is CertficateX509 then the X509 field will be filled. If Kind is CertificateHostkey then the Hostkey field will be filled.

Source from the content-addressed store, hash-verified

268// will be filled. If Kind is CertificateHostkey then the Hostkey
269// field will be filled.
270type Certificate struct {
271 Kind CertificateKind
272 X509 *x509.Certificate
273 Hostkey HostkeyCertificate
274}
275
276// HostkeyKind is a bitmask of the available hashes in HostkeyCertificate.
277type HostkeyKind uint

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected