Hi,
 
I am getting some problems with SSL_Connect.
 
 
This is waht I do.
 
i.  get a socket
     fd = socket(AF_INET, SOCK_STREAM, 0);
 
ii. connect to the remote host:port
    connect(fd, (struct sockaddr *)&sa, sizeof(sa));
 
iii. Create a new SSL session
    ssl = SSL_new(ctx);
 
iv. set the socket for this session
   SSL_set_fd(ssl, fd);
 
v. Initiate an SSLConnection
    SSL_connect(ssl);
 
This call doesn't return at times and 'gdb' shows it's in read() called by ssl_read().
 
How do I timeout this SSL_connect() call?
 
How should I go about it?
 
Thanks
-alice
 

Reply via email to