Initial commit
This commit is contained in:
parent
b97f30faf4
commit
c1020c8be7
16 changed files with 118 additions and 209 deletions
|
|
@ -1,9 +1,3 @@
|
|||
// This file is part of the happyDomain (R) project.
|
||||
// Copyright (c) 2026 happyDomain
|
||||
// Authors: Pierre-Olivier Mercier, et al.
|
||||
//
|
||||
// Licensed under the MIT License (see LICENSE).
|
||||
|
||||
package checker
|
||||
|
||||
import (
|
||||
|
|
@ -47,16 +41,16 @@ type subkeyRow struct {
|
|||
|
||||
// reportData is the template context.
|
||||
type reportData struct {
|
||||
Kind string
|
||||
Headline string
|
||||
Badge string // "ok" / "warn" / "fail" / "neutral"
|
||||
QueriedOwner string
|
||||
Kind string
|
||||
Headline string
|
||||
Badge string // "ok" / "warn" / "fail" / "neutral"
|
||||
QueriedOwner string
|
||||
ExpectedOwner string
|
||||
Resolver string
|
||||
DNSSEC string // "secure" / "insecure" / "unknown"
|
||||
RecordCount int
|
||||
Username string
|
||||
CollectedAt string
|
||||
Resolver string
|
||||
DNSSEC string // "secure" / "insecure" / "unknown"
|
||||
RecordCount int
|
||||
Username string
|
||||
CollectedAt string
|
||||
|
||||
OpenPGP *openPGPView
|
||||
SMIMEA *smimeaView
|
||||
|
|
@ -69,41 +63,41 @@ type reportData struct {
|
|||
}
|
||||
|
||||
type openPGPView struct {
|
||||
Fingerprint string
|
||||
KeyID string
|
||||
Algorithm string
|
||||
Bits int
|
||||
UIDs []string
|
||||
Created string
|
||||
Expires string
|
||||
Revoked bool
|
||||
Encrypt bool
|
||||
Subkeys []subkeyRow
|
||||
RawSize int
|
||||
EntityCount int
|
||||
Fingerprint string
|
||||
KeyID string
|
||||
Algorithm string
|
||||
Bits int
|
||||
UIDs []string
|
||||
Created string
|
||||
Expires string
|
||||
Revoked bool
|
||||
Encrypt bool
|
||||
Subkeys []subkeyRow
|
||||
RawSize int
|
||||
EntityCount int
|
||||
}
|
||||
|
||||
type smimeaView struct {
|
||||
Usage string
|
||||
Selector string
|
||||
MatchingType string
|
||||
HashOnly bool
|
||||
HashHex string
|
||||
Subject string
|
||||
Issuer string
|
||||
Serial string
|
||||
NotBefore string
|
||||
NotAfter string
|
||||
SignatureAlgo string
|
||||
KeyAlgo string
|
||||
Bits int
|
||||
Emails []string
|
||||
DNSNames []string
|
||||
EmailProtection bool
|
||||
Usage string
|
||||
Selector string
|
||||
MatchingType string
|
||||
HashOnly bool
|
||||
HashHex string
|
||||
Subject string
|
||||
Issuer string
|
||||
Serial string
|
||||
NotBefore string
|
||||
NotAfter string
|
||||
SignatureAlgo string
|
||||
KeyAlgo string
|
||||
Bits int
|
||||
Emails []string
|
||||
DNSNames []string
|
||||
EmailProtection bool
|
||||
DigitalSignature bool
|
||||
KeyEncipherment bool
|
||||
SelfSigned bool
|
||||
IsCA bool
|
||||
KeyEncipherment bool
|
||||
SelfSigned bool
|
||||
IsCA bool
|
||||
}
|
||||
|
||||
// GetHTMLReport implements sdk.CheckerHTMLReporter.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue