Hi,
the start_SSL() function fails only if the GUI is initialized with the
error
- "SSL connect attempt failed".
If you haven't entered the dialogue phase there should be no reason why you
would get this error.
From a preliminary search I figured that Net::SSLeay (the underlying to
IO::Socket::SSL) needs a blocking socket to work.
Does Win32::GUI set some form of continuous interrupts or signals that
prevent Net::SSLeay from working in blocking mode?
Once your application has entered the dialogue phase, it sleeps until an
event is triggered (such as a mouse click on a button). If you block on a
socket, the main app can't process new events so your application freeze's.
The solution is to spawn a separate thread to handle the socket
communications, while the main thread handles the GUI. To do threading in
Perl, you are going to need a version of 5.8.x (and I would guess the later
the better).
Cheers,
jez.