Turns out I spoke too soon about it working. It works fine if run in
tclsh or if I run wish in the terminal. If I run it in a standalone app
bundle, there is a hard crash with this error:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libcrypto.1.0.0.dylib 0x000000010a34dbfd CRYPTO_get_ex_data
+ 13
1 tcltls.dylib 0x000000010a2d66c4 VerifyCallback +
84 (tls.c:277)
2 libcrypto.1.0.0.dylib 0x000000010a43c923 X509_verify_cert +
2259
3 libssl.1.0.0.dylib 0x000000010a312fcc
ssl_verify_cert_chain + 444
4 libssl.1.0.0.dylib 0x000000010a2ebc10
ssl3_get_server_certificate + 368
5 libssl.1.0.0.dylib 0x000000010a2ea633 ssl3_connect + 1971
6 libssl.1.0.0.dylib 0x000000010a2fac01 ssl23_connect + 3073
7 tcltls.dylib 0x000000010a2d7bcd Tls_WaitForConnect
+ 93 (tlsIO.c:230)
Sigh. The Windows build using tls 1.6.x has no problems at all. No clue
how to debug this because it runs in the debugger (lldb) and also runs
fine in the console.
--Kevin