These are chat archives for IndySockets/Indy

3rd
Feb 2016
davidpn
@davidpn
Feb 03 2016 00:24
you around, Remy?
Remy Lebeau
@rlebeau
Feb 03 2016 00:25
yes
davidpn
@davidpn
Feb 03 2016 00:26
having issues with SSL loading on iOS simulator.. setting the SSL path to /usr/lib doesn't help
Delphi 10 Seattle iOS9.2 simulator
just thought that if it was a known issue, you might know a ready answer, otherwise I can do the WhichLoadFailed thing etc
Remy Lebeau
@rlebeau
Feb 03 2016 00:29
What kind of issues? Did you read Marco's blog about OpenSSL on iOS yet? (http://blog.marcocantu.com/blog/using_ssl_delphi_ios.html) Have you tried deploying the OpenSSL libs with your app? If you are trying to load the system-provided libs and it is failing, can you get the output from Indy's WhichFailedToLoad() function?
davidpn
@davidpn
Feb 03 2016 00:30
yeah, tried deploying the libs with the app.. same deal
I'll get the output
davidpn
@davidpn
Feb 03 2016 00:36
"Failed to load /usr/lib/libcrypto."
works OK using the same code in OSX
though I don't need to use IdOpenSSLSetLibPath for OSX
actually, maybe I did.. lol.. I think I have my define for Mac screwed up
Remy Lebeau
@rlebeau
Feb 03 2016 00:39
are you using the latest SVN rev?
davidpn
@davidpn
Feb 03 2016 00:39
..anyway it's being set for iOS simulator
one sec
is there a way of telling from one or more of the source files?
it's not the latest, but I could find out the version
Remy Lebeau
@rlebeau
Feb 03 2016 00:40
I made a change to IdGlobal.pas 1 1/2 weeks ago related to the file extension used to load libraries on iOS
Your version is probably trying to load .so files instead of .dylib files (what you have is a .dylib, right?)
davidpn
@davidpn
Feb 03 2016 00:42
yes, dylib
Remy Lebeau
@rlebeau
Feb 03 2016 00:44
yeah, try the latest SVN trunk, Indy would use dylib on iOS Simulator but .so on iOS devices, now it is all .dylib for all iOS platforms. But, now that I say that aloud, the latest probably won't fix your error. Can you confirm the actual libcrypto filename in /usr/lib?
davidpn
@davidpn
Feb 03 2016 00:46
there's libcrypto.dylib (link), libcrypto.0.9.7.dylib and libcrypto.0.9.8.dylib
Remy Lebeau
@rlebeau
Feb 03 2016 00:52
It should be trying to load libcrypto.dylib, libcrypto.0.9.8.dylib, and libcrypto.0.9.7.dylib, in that order. So, to get that error in WhichFailedToLoad(), all three had to have failed to load.
davidpn
@davidpn
Feb 03 2016 00:57
I may have an answer...
davidpn
@davidpn
Feb 03 2016 01:05
or not... lol. I suspected it might be that the /usr/lib means the one in the simulator folder, rather than the Mac
I copied the links into that, but still not working
Remy Lebeau
@rlebeau
Feb 03 2016 01:07
I don't know how the simulator works, so I can't comment on that. But I just now updated WhichFailedToLoad() to include the file extension when libssl or libcrypto fails to load
davidpn
@davidpn
Feb 03 2016 01:07
thanks.. I'll take a look
hmm.. whats the URL for the SVN trunk?
is it browsable?
davidpn
@davidpn
Feb 03 2016 01:29
ah crap, port 444 is blocked here
Remy Lebeau
@rlebeau
Feb 03 2016 01:33
instructions are at http://www.indyproject.org/Sockets/Download/DevSnapshot.aspx. If you can't browse, you can wait for tonight's snapshot and grab it in the morning from the Fulgan server
which is web-browsable on port 80
davidpn
@davidpn
Feb 03 2016 01:34
thanks
I assume morning = PDT morning? what time is it snapshotted?
or PST
Remy Lebeau
@rlebeau
Feb 03 2016 01:38
I'm in PST, so whatever morning is to you. Fulgan is not in PST, they are in Switzerland, so whatever that is. The page above says the "mirror is updated daily at 03:00 CET (GMT + 1)", but I don't know if that is still true nowadays (probably). The zip filename has the SVN rev number in it, and I just checked in 5339, Fulgan still has 5338 right now.
davidpn
@davidpn
Feb 03 2016 01:39
ok.. thanks again
Remy Lebeau
@rlebeau
Feb 03 2016 01:39
the current zip is timestamped 06:09a this morning, but I don't know what timezone that is in
davidpn
@davidpn
Feb 03 2016 01:42
it's 2:40am right now in Zurich, so if that's the zone, it'll be later this afternoon for me.. I'm GMT+11 (Melbourne)
Remy Lebeau
@rlebeau
Feb 03 2016 02:16
It is 3:12a in Switzerland right now. Not sure if the 03:00 CET is am or pm. The file hasn't updated yet, so maybe it is pm, which wold be in 12 hours
if you won't want to wait, I can send you the latest files
davidpn
@davidpn
Feb 03 2016 09:34
It's ok.. I'll be attending to it in the morning, Melbourne time :-)