1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 05:40:11 +01:00

Added "0x" before key id in openpgp url to make search on key server happy.

This commit is contained in:
Sascha L. Teichmann 2021-12-02 00:56:21 +01:00
parent bd8846baa6
commit 048c0dce89

View file

@ -59,7 +59,7 @@ func (t *tlp) UnmarshalText(text []byte) error {
}
func (cfg *config) GetOpenPGPURL(key string) string {
return strings.ReplaceAll(cfg.OpenPGPURL, "${KEY}", key)
return strings.ReplaceAll(cfg.OpenPGPURL, "${KEY}", "0x"+key)
}
func (cfg *config) modelTLPs() []csaf.TLPLabel {