bcgit/bc-java — pull request #68 by rdicroce (2014-03-26 21:40:20+00:00)
Title: Add non-blocking support to TLS API. Implement server side of TLS-SRP.

This pull request resolves part of issue #55 (which I also filed as BJA-482 in JIRA, although JIRA is down right now).

It re-arranges some of the TLS code to make it possible to use the TLS API in a non-blocking manner, and adds some new methods for non-blocking use. Existing method signatures are untouched (I think), so anyone currently using the TLS API shouldn't need to change anything.

This pull request also implements the server side of the TLS-SRP (RFC 5054) protocol. I'm not sure if I've satisfied the requirements of the RFC completely, but at the very least, the test I added for TLS-SRP is passing. Note that this pull request implements support for SRP cipher suites only; SRP-RSA and SRP-DSS cipher suites are not supported. (More accurately, I have not tested them, so they may or may not work.)

This pull request does not fully resolve #55 / BJA-482. The non-blocking API is not based on SSLEngine and the DTLS API has not been changed.