Improved debug info

This commit is contained in:
M66B
2023-04-30 09:11:35 +02:00
parent 3ba229dd66
commit cadc97d77e
2 changed files with 28 additions and 4 deletions

View File

@@ -1370,6 +1370,19 @@ public class EmailService implements AutoCloseable {
}
}
static String getEncryptionName(int type) {
switch (type) {
case ENCRYPTION_SSL:
return "ssl";
case ENCRYPTION_STARTTLS:
return "starttls";
case ENCRYPTION_NONE:
return "none";
default:
return Integer.toString(type);
}
}
static class UntrustedException extends MessagingException {
private X509Certificate certificate;