[BACK]Return to s_time.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / openssl

Diff for /src/usr.bin/openssl/s_time.c between version 1.2 and 1.3

version 1.2, 2014/09/01 20:54:37 version 1.3, 2014/11/04 18:15:22
Line 63 
Line 63 
    Written and donated by Larry Streepy <streepy@healthcare.com>     Written and donated by Larry Streepy <streepy@healthcare.com>
   -----------------------------------------*/    -----------------------------------------*/
   
 #include <sys/select.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
   
 #include <stdio.h>  #include <stdio.h>
Line 71 
Line 71 
 #include <limits.h>  #include <limits.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   #include <poll.h>
   
 #include "apps.h"  #include "apps.h"
   
Line 530 
Line 531 
 static SSL *  static SSL *
 doConnection(SSL * scon)  doConnection(SSL * scon)
 {  {
         BIO *conn;          struct pollfd pfd[1];
         SSL *serverCon;          SSL *serverCon;
         int width, i;          BIO *conn;
         fd_set readfds;          int i;
   
         if ((conn = BIO_new(BIO_s_connect())) == NULL)          if ((conn = BIO_new(BIO_s_connect())) == NULL)
                 return (NULL);                  return (NULL);
Line 562 
Line 563 
                         BIO_printf(bio_err, "DELAY\n");                          BIO_printf(bio_err, "DELAY\n");
   
                         i = SSL_get_fd(serverCon);                          i = SSL_get_fd(serverCon);
                         width = i + 1;                          pfd[0].fd = i;
                         FD_ZERO(&readfds);                          pfd[0].events = POLLIN;
                         FD_SET(i, &readfds);                          poll(pfd, 1, -1);
                         select(width, &readfds, NULL, NULL, NULL);  
                         continue;                          continue;
                 }                  }
                 break;                  break;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3