How to use TLS/SSL certificate in Active Open

"[email protected]" <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
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.