Hey! Ok, so I sat down and "packaged" some fixes to mainly iOS SqueakSSL that we have done here at 3DICC. We have no intention to keep stuff like this for ourselves, but daily we work using our own repos so it needs some attention and time to get it out there :) Sorry if this email is long but I just wanted to make it easy for people to know how to integrate this. The fixes span: * A new SqueakSSL Monticello package, that has other fixes too done at 3DICC. I haven't looked through them all in detail, so here a bit of manual cherry picking is needed. For example we removed some "compatibility code" for Squeak 4.2 causing us some problems. * Modified platform files: platforms/Cross/plugins/SqueakSSL/SqueakSSL.h platforms/iOS/plugins/SqueakSSL/sqMacSSL.c platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c platforms/win32/plugins/SqueakSSL/sqWin32SSL.c I have so far only tested the new sqMacSSL.c on iOS - OSX 10.8.5. The changes in the other platforms are not complicated, its about being able to disable certificate check mainly so I don't think they should fail. As of now SqueakSSL-Tests show 14 run, 3 passes, 8 expected failures and 3 errors on my Mac. The errors still left are: testSSLSockets, testSocketAccept, testSocketConnect. AFAIK all these try to use a test certificate and Accept - and *that* I haven't implemented on Mac (well, ok, I started - there is a way to at least set a Mac test cert into the plugin - but I didn't go further). New methods in the classes: SqueakSSL,SecureSocketStream>>certVerify: aBoolean Now one can tell the plugin to verify certs or just skip that. SqueakSSL,SecureSocketStream>>logLevel: anInteger Now one can set the logLevel in the plugin, 0 or 1 so far. Attached ssl-fix.zip which contains: . âââ platforms â âââ Cross â â âââ plugins â â âââ SqueakSSL â â âââ SqueakSSL.h â âââ iOS â â âââ plugins â â âââ SqueakSSL â â âââ sqMacSSL.c â âââ unix â â âââ plugins â â âââ SqueakSSL â â âââ sqUnixOpenSSL.c â âââ win32 â âââ plugins â âââ SqueakSSL â âââ sqWin32SSL.c âââ SqueakSSL-Core-gk.36.mcz âââ SqueakSSL-Tests-ar.17.mcz âââ ssl-fix.patch I threw in the latest SqueakSSL-Core and Tests that we have here at 3DICC. The Tests package is the same as on SS. The Core has 4 more fixes from Ron I think, just look in "History" to see commit messages there. ssl-fix.patch - this should show you what I have done in the platform files, and I produced it using git diff on those four files with this command: git diff 83bce99715cddd8a82c3d94c487e45ec0213be19 platforms/Cross/plugins/SqueakSSL/SqueakSSL.h platforms/iOS/plugins/SqueakSSL/sqMacSSL.c platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c platforms/win32/plugins/SqueakSSL/sqWin32SSL.c > ssl-fix.patch The SHA is: commit 83bce99715cddd8a82c3d94c487e45ec0213be19 Author: Camillo Bruni <camillobruni@gmail.com> Date: Fri Nov 15 12:24:11 2013 +0100 fixed wrong path ------------------------------ ...phew. Ok, let me know if you need anything more and ask questions. regards, Göran
Hi guys! Ok, soo.... obviously I now noted these files didn't include the latest tweaks from Levente (mem leaks) etc. Just a heads up. Let's now move this thread to vm-dev only - don't want to spam squeak-dev nor pharo-dev. I presume people interested track vm-dev. So if you reply - stick to vm-dev. :) regards, Göran
Hi Göran, Thanks a lot, I've turned your email into a Pharo issue: https://pharo.fogbugz.com/f/cases/12894/SSL-plugin-enhancements I won't be able to process this by myself, but it will get integrated once the right people get together. Sven On 13 Feb 2014, at 13:00, Göran Krampe <goran@krampe.se> wrote:
Hey!
Ok, so I sat down and "packaged" some fixes to mainly iOS SqueakSSL that we have done here at 3DICC. We have no intention to keep stuff like this for ourselves, but daily we work using our own repos so it needs some attention and time to get it out there :)
Sorry if this email is long but I just wanted to make it easy for people to know how to integrate this.
The fixes span:
* A new SqueakSSL Monticello package, that has other fixes too done at 3DICC. I haven't looked through them all in detail, so here a bit of manual cherry picking is needed. For example we removed some "compatibility code" for Squeak 4.2 causing us some problems.
* Modified platform files: platforms/Cross/plugins/SqueakSSL/SqueakSSL.h platforms/iOS/plugins/SqueakSSL/sqMacSSL.c platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c platforms/win32/plugins/SqueakSSL/sqWin32SSL.c
I have so far only tested the new sqMacSSL.c on iOS - OSX 10.8.5. The changes in the other platforms are not complicated, its about being able to disable certificate check mainly so I don't think they should fail.
As of now SqueakSSL-Tests show 14 run, 3 passes, 8 expected failures and 3 errors on my Mac. The errors still left are: testSSLSockets, testSocketAccept, testSocketConnect. AFAIK all these try to use a test certificate and Accept - and *that* I haven't implemented on Mac (well, ok, I started - there is a way to at least set a Mac test cert into the plugin - but I didn't go further).
New methods in the classes:
SqueakSSL,SecureSocketStream>>certVerify: aBoolean Now one can tell the plugin to verify certs or just skip that.
SqueakSSL,SecureSocketStream>>logLevel: anInteger Now one can set the logLevel in the plugin, 0 or 1 so far.
Attached ssl-fix.zip which contains: . âââ platforms â âââ Cross â â âââ plugins â â âââ SqueakSSL â â âââ SqueakSSL.h â âââ iOS â â âââ plugins â â âââ SqueakSSL â â âââ sqMacSSL.c â âââ unix â â âââ plugins â â âââ SqueakSSL â â âââ sqUnixOpenSSL.c â âââ win32 â âââ plugins â âââ SqueakSSL â âââ sqWin32SSL.c âââ SqueakSSL-Core-gk.36.mcz âââ SqueakSSL-Tests-ar.17.mcz âââ ssl-fix.patch
I threw in the latest SqueakSSL-Core and Tests that we have here at 3DICC. The Tests package is the same as on SS. The Core has 4 more fixes from Ron I think, just look in "History" to see commit messages there.
ssl-fix.patch - this should show you what I have done in the platform files, and I produced it using git diff on those four files with this command:
git diff 83bce99715cddd8a82c3d94c487e45ec0213be19 platforms/Cross/plugins/SqueakSSL/SqueakSSL.h platforms/iOS/plugins/SqueakSSL/sqMacSSL.c platforms/unix/plugins/SqueakSSL/sqUnixOpenSSL.c platforms/win32/plugins/SqueakSSL/sqWin32SSL.c > ssl-fix.patch
The SHA is:
commit 83bce99715cddd8a82c3d94c487e45ec0213be19 Author: Camillo Bruni <camillobruni@gmail.com> Date: Fri Nov 15 12:24:11 2013 +0100
fixed wrong path ------------------------------
...phew. Ok, let me know if you need anything more and ask questions.
regards, Göran
<ssl-fix.zip>
On 02/16/2014 08:08 PM, Sven Van Caekenberghe wrote:
Hi Göran,
Thanks a lot, I've turned your email into a Pharo issue:
https://pharo.fogbugz.com/f/cases/12894/SSL-plugin-enhancements
I won't be able to process this by myself, but it will get integrated once the right people get together.
No problemo, thanks! regards, Göran
participants (2)
-
Göran Krampe -
Sven Van Caekenberghe