Versions in this module Expand all Collapse all v1 v1.3.2 May 31, 2019 Changes in this version + var Platforms []Platform + var SHA1DeprecationPolicys = []SHA1DeprecationPolicy + func CompareChainCryptoSuite(chain1, chain2 []*x509.Certificate) int + func CompareChainExpiry(chain1, chain2 []*x509.Certificate) int + func CompareChainHashPriority(chain1, chain2 []*x509.Certificate) int + func CompareChainHashUbiquity(chain1, chain2 []*x509.Certificate) int + func CompareChainKeyAlgoPriority(chain1, chain2 []*x509.Certificate) int + func CompareChainKeyAlgoUbiquity(chain1, chain2 []*x509.Certificate) int + func CompareChainLength(chain1, chain2 []*x509.Certificate) int + func CompareExpiryUbiquity(chain1, chain2 []*x509.Certificate) int + func ComparePlatformUbiquity(chain1, chain2 []*x509.Certificate) int + func CompareSHA2Homogeneity(chain1, chain2 []*x509.Certificate) int + func CrossPlatformUbiquity(chain []*x509.Certificate) int + func Filter(chains [][]*x509.Certificate, f RankingFunc) [][]*x509.Certificate + func HashPriority(certs []*x509.Certificate) int + func KeyAlgoPriority(certs []*x509.Certificate) int + func LoadPlatforms(filename string) error + func SHA1DeprecationMessages(chain []*x509.Certificate) []string + func SHA1RawPublicKey(cert *x509.Certificate) string + func SHA2Homogeneity(chain []*x509.Certificate) int + func UntrustedPlatforms(root *x509.Certificate) []string + type CertSet map[string]bool + func (s CertSet) Add(cert *x509.Certificate) + func (s CertSet) Lookup(cert *x509.Certificate) bool + type DeprecationSeverity int + const High + const Low + const Medium + const None + type HashUbiquity int + const MD2Ubiquity + const MD5Ubiquity + const SHA1Ubiquity + const SHA2Ubiquity + const UnknownHashUbiquity + func ChainHashUbiquity(chain []*x509.Certificate) HashUbiquity + type KeyAlgoUbiquity int + const DSAUbiquity + const ECDSA256Ubiquity + const ECDSA384Ubiquity + const ECDSA521Ubiquity + const RSAUbiquity + const UnknownAlgoUbiquity + func ChainKeyAlgoUbiquity(chain []*x509.Certificate) KeyAlgoUbiquity + type Platform struct + HashAlgo string + HashUbiquity HashUbiquity + KeyAlgo string + KeyAlgoUbiquity KeyAlgoUbiquity + KeyStore CertSet + KeyStoreFile string + Name string + Weight int + func (p *Platform) ParseAndLoad() (ok bool) + func (p Platform) Trust(root *x509.Certificate) bool + type RankingFunc func(chain1, chain2 []*x509.Certificate) int + type SHA1DeprecationPolicy struct + Description string + EffectiveDate time.Time + ExpiryDeadline time.Time + NeverIssueAfter time.Time + Platform string + Severity DeprecationSeverity + func (p SHA1DeprecationPolicy) Flag(chain []*x509.Certificate) bool