Menu

#11 Explicit SSL/TLS reply code

open
nobody
None
5
2014-12-24
2006-06-06
Anonymous
No

the reply code 234 (or 334 from some servers) is not
interpreted as ok by
ReplyCode.isPositiveCompletionReply() and so the error
message "AUTH SSL not supported by server" would be
presented. To allow it to work I replaced the
implementation of this method as follows:

public static boolean isPositiveCompletionReply(
Reply reply) {

String lines =
reply.getLines().get(reply.getLines().size() - 1);
String code = lines.trim().substring(0,3);
if (lines.startsWith(POSITIVE_COMPLETION_REPLY)
|| code.equals("234") || code.equals("334")) {
return true;
}
return false;
}

While inelegant, it works like a charm now ;)

Discussion


Log in to post a comment.