When I call SslLibCreate after having previously opened the CPM library, I
get an error 0x3801, which is cpmErrAlreadyOpen - CPM Library is already
open. If the CPM library isn't open, SslLibCreate succeeds. What's worse is
that the SslLib pointer that comes back from SslLibCreate is not NULL, but
when I call SslLibDestroy to get rid of it, it crashes the Simulator.
Is SSL + CPM a no-no? Or am I missing something? (much more likely) The code
I'm using is as follows:
// CPMLib is previously opened.
UInt16 sslRefNum;
Err err;
SslLib *contextTemplateP = NULL;
SslContext *contextP = NULL;
if (SysLibFind(kSslDBName, &sslRefNum) != errNone)
err = SysLibLoad(kSslLibType, kSslLibCreator, &sslRefNum);
if (err == errNone)
err = SslLibCreate(sslRefNum, &contextTemplateP);
// SslLibCreate fails with an error 0x3801, and
// contextTemplateP is not NULL. Subsequent call
// to SslLibDestroy with contextTemplateP crashes the Simulator.
Specifics:
Win NT 4.0
CodeWarrior 8.2
Simulator dr12 (release).
Thanks,
dave
-----------------------------------
David Tribble, Northrop Grumman IT
(808) 680-0384
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/