David, unfortunately I can not say about CPM+SSL but I should note that CPM library is not debugged well yet. We find out that a couple of encryption/decryption operations crash Simulator due to memory leak problems. I hope that Palm will released updated versions of these libraries soon.
Best regards, Alex. "Tribble, David" <[EMAIL PROTECTED]> wrote in message news:91250@palm-dev-forum... > > 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/
