File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func TestSignRSA(t *testing.T) {
4747 }
4848
4949 ctx = WithLookupTXTFunc (ctx , makeLookupTXT (map [string ][]string {
50- "test._domainkey.example.com" : [] string {
50+ "test._domainkey.example.com" : {
5151 "v=DKIM1; p=" + base64 .StdEncoding .EncodeToString (pub ),
5252 },
5353 }))
@@ -94,7 +94,7 @@ func TestSignEd25519(t *testing.T) {
9494 }
9595
9696 ctx = WithLookupTXTFunc (ctx , makeLookupTXT (map [string ][]string {
97- "test._domainkey.example.com" : [] string {
97+ "test._domainkey.example.com" : {
9898 "v=DKIM1; k=ed25519; p=" + base64 .StdEncoding .EncodeToString (pub ),
9999 },
100100 }))
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func TestVerifyRF6376CExample(t *testing.T) {
2626 // Use the public key from the example in RFC 6376 appendix C.
2727 // https://datatracker.ietf.org/doc/html/rfc6376#appendix-C
2828 ctx = WithLookupTXTFunc (ctx , makeLookupTXT (map [string ][]string {
29- "brisbane._domainkey.example.com" : [] string {
29+ "brisbane._domainkey.example.com" : {
3030 "v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQ" +
3131 "KBgQDwIRP/UC3SBsEmGqZ9ZJW3/DkMoGeLnQg1fWn7/zYt" +
3232 "IxN2SnFCjxOCKG9v3b4jYfcTNh5ijSsq631uBItLa7od+v" +
@@ -94,11 +94,11 @@ func TestVerifyRFC8463Example(t *testing.T) {
9494 // Use the public keys from the example in RFC 8463 appendix A.2.
9595 // https://datatracker.ietf.org/doc/html/rfc6376#appendix-C
9696 ctx = WithLookupTXTFunc (ctx , makeLookupTXT (map [string ][]string {
97- "brisbane._domainkey.football.example.com" : [] string {
97+ "brisbane._domainkey.football.example.com" : {
9898 "v=DKIM1; k=ed25519; " +
9999 "p=11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo=" },
100100
101- "test._domainkey.football.example.com" : [] string {
101+ "test._domainkey.football.example.com" : {
102102 "v=DKIM1; k=rsa; " +
103103 "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDkHlOQoBTzWR" +
104104 "iGs5V6NpP3idY6Wk08a5qhdR6wy5bdOKb2jLQiY/J16JYi0Qvx/b" +
You can’t perform that action at this time.
0 commit comments