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.
| 268 | // will be filled. If Kind is CertificateHostkey then the Hostkey |
| 269 | // field will be filled. |
| 270 | type 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. |
| 277 | type HostkeyKind uint |
nothing calls this directly
no outgoing calls
no test coverage detected