I've been able to use SslRead okay, just using example code from IBM developerworks examples:
 
http://www-128.ibm.com/developerworks/library/wi-palmos5/?ca=dgr-lnxw914SecurePalm
 
I noticed that IIS 5 (not sure if 6 fixes it) closes the connection rather than performing a proper SSL shutdown; after my SslRead calls I check for an EOF and just handle it as if the connection's been closed. In my case though I know my application only talks to IIS 5, so this won't be a general catch-all solution applicable for everyone. But maybe that could be causing you problems with your SslRead - I don't know about SslReceive, though - it looks as though I have the incorrect header in my copy of CodeWarrior also ;-) *doh*
    
// ...

if ( error == sslErrEof )
{
    error = errNone;
    wReceived = 0;
}
 
// ...
 
 
 -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mark Tamura
Sent: 21 March 2006 18:34
To: Palm Developer Forum
Subject: RE: SslReceive()

I think there is a bug in SslLib.h in the Metrowerks headers. Here's what is on my machine C:\Program Files\Metrowerks\CodeWarrior\Palm OS Support\Incs\Libraries\SSL\SslLib.h
 
Int16 SslReceive(UInt16 refnum,SslContext *ctx,void *buffer,UInt16 bufferLen,
  UInt16 flags, void *fromAddr, UInt16 fromLen,
  Int32 timeout,Err *errRet)
   SYS_TRAP(kSslReceive)
 
But the PalmOS Reference says "UInt16 fromLen" should actually be "UInt16 * fromAddressLength". Try changing the header and recompiling.
 
Mark


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Bloomfield
Sent: Tuesday, March 21, 2006 10:11 AM
To: Palm Developer Forum
Subject: Re: SslReceive()

I'm using Metrowerks CodeWarrior 9.3

-Benjamin Bloomfield

On 3/21/06, Mark Tamura <[EMAIL PROTECTED] > wrote:
Are you using Metrowerks or something else?
 
Mark


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Benjamin Bloomfield
Sent: Tuesday, March 21, 2006 8:37 AM
To: Palm Developer Forum
Subject: SslReceive()

SslReceive() causes a fatal exception on my device and causes the simulator to crash whenever I use it.  Using all of the same (relevant) parameters with NetLibReceive() works fine.  Has anyone had any luck using SslReceive()?  I have been using SslRead(), but it only seems to work properly the first time I call it, so I wanted to try SslReceive().

-Benjamin Bloomfield
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to