mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:14:39 +03:00
add scram-sha-256 for smtp
similar to imap. the code should be merged. this also reads the abort-line after authentication failure.
This commit is contained in:
@ -90,6 +90,11 @@ func TestAuthenticateSCRAMSHA256(t *testing.T) {
|
||||
} else if err == nil || !errors.Is(err, serverFinalError) {
|
||||
t.Fatalf("server final, got err %#v, expected %#v", err, serverFinalError)
|
||||
}
|
||||
if serverFinalError != nil {
|
||||
tc.writelinef("*")
|
||||
} else {
|
||||
tc.writelinef("")
|
||||
}
|
||||
_, result, err := tc.client.Response()
|
||||
tc.check(err, "read response")
|
||||
if string(result.Status) != strings.ToUpper(status) {
|
||||
|
Reference in New Issue
Block a user