Re: How to use TLS/SSL certificate in Active Open

"[email protected]" <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
After reading the manual (TN245.pdf) like this:
---------------------------
"Some Rabbit-based applications may require that the device initiate a connection to a server (with the Rabbit acting as a client), rather than the other way around (with the Rabbit acting as a server).
The current Rabbit implementation of SSL does not support client-side SSL, so some applications will simply not be possible."
---------------------------

My question:  What a new Dynamic C support for used SSL in client? I'm used Dynamic C 10.54 with rcm5600w. Thank you.



--- In [email protected], "dynamic_c@..." <dynamic_c@...> wrote:
>
> I connect rcm5600w(as client/active-open) to computer(as server/passive-open) using sslstream socket(http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx).
> 
> How to perform the handshake SslStream implements the AuthenticateAsServer() and AuthenticateAsClient() in rcm5600w? 
> 
> #class auto
> #define TCPCONFIG 1
> #use "dcrtcp.lib"
> #define  DEST "192.168.1.1"  // ip server (computer)
> #define  PORT 8080           // socket port server (computer)
> 
> void main()
> {
>     char buffer[100]; 	
>     int bytes_read;
>     longword destIP;
>     tcp_Socket socket;
>     
>     // Start network and wait for interface to come up
>     sock_init_or_exit(1);
> 
>     // open socket
>     tcp_open(&socket,0,DEST,PORT,NULL);
> 
>     printf("Waiting for connection...\n");
>     while(!sock_established(&socket) 
>            && sock_bytesready(&socket)==-1) 
>     {
>          tcp_tick(NULL);
>     }
>     printf("Connection established\n");
> }
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.