On Wed, 23 Oct 2013, Levente Uzonyi wrote:
Other than that, the SqueakSSL-Tests package has some tests (some require internet access to google and yahoo). If you load SqueakSSL-Core and SqueakSSL-Tests, then 12 tests should pass in a Trunk image. Two tests should fail with an error, because Socket >> accept returns a Socket instead of SecureSocket. The solution is to change the method to
Socket >> accept "Accept a connection from the receiver socket. Return a new socket that is connected to the client"
^self class acceptFrom: self
or implement #accept in SecureSocket as
^SecureSocket acceptFrom: self
I have uploaded a new version of SqueakSSL-Core which addresses this, and another issue on Unix: http://leves.web.elte.hu/squeak/SqueakSSL-Core-ul.27.mcz You'll have to delete the file named SqueakSSLCert.pem, if the tests are failing, and you ran the tests before using this version.
In order to run all the SqueakSSL tests, you also have to have WebClient loaded, otherwise some of them will just pass without doing anything.
Levente
Levente
Thanks, Dave