aboutsummaryrefslogtreecommitdiff
path: root/lib/email/dkim/keytype.go
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2020-06-06all: use default linter optionsShulhan
2019-06-14all: fix nolint formatShulhan
The valid syntax to suppress linter warnings is "//nolint:<name>" with no space between comment and "nolint" and between ":". Also, we move the placement of nolint directive to the top of statements for multiple nolint in the same scope. While at it, fix and supress some linter warnings.
2019-02-09email/dkim: various fixes with more unit testsShulhan
* HashAlg: Add unit test for unpacking hash algorithms. * Key, * make Type to be nil-able. Nil value on Type means its not defined and will not print the default when packing; * check for empty parameter on ParseTXT and lookupDNSTXT; * check for DNS message response code; and * make the Pack() method return compact text, without printing default key value. * KeyFlag: prevent duplicate flags. * Signature, * check the value immediately on set(); * add more unit test cases.
2019-02-07email/dkim: implement public key lookup with DNSShulhan
This implementation is based on RFC 6376 section 3.6 Key Management and Representation.