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

Diff for /src/usr.bin/ftp/fetch.c between version 1.186 and 1.187

version 1.186, 2020/01/15 14:49:38 version 1.187, 2020/01/21 05:02:53
Line 631 
Line 631 
   
 #ifndef NOSSL  #ifndef NOSSL
         if (ishttpsurl) {          if (ishttpsurl) {
                   ssize_t ret;
                 if (proxyenv && sslpath) {                  if (proxyenv && sslpath) {
                         ishttpsurl = 0;                          ishttpsurl = 0;
                         proxyurl = NULL;                          proxyurl = NULL;
Line 646 
Line 647 
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
                 if (tls_configure(tls, tls_config) != 0) {                  if (tls_configure(tls, tls_config) != 0) {
                         fprintf(ttyout, "SSL configuration failure: %s\n",                          fprintf(ttyout, "TLS configuration failure: %s\n",
                             tls_error(tls));                              tls_error(tls));
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
                 if (tls_connect_socket(tls, fd, sslhost) != 0) {                  if (tls_connect_socket(tls, fd, sslhost) != 0) {
                         fprintf(ttyout, "SSL failure: %s\n", tls_error(tls));                          fprintf(ttyout, "TLS connect failure: %s\n", tls_error(tls));
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
                 if (tls_handshake(tls) != 0) {                  do {
                         fprintf(ttyout, "SSL failure: %s\n", tls_error(tls));                          ret = tls_handshake(tls);
                   } while (ret == TLS_WANT_POLLIN || ret == TLS_WANT_POLLOUT);
                   if (ret != 0) {
                           fprintf(ttyout, "TLS handshake failure: %s\n", tls_error(tls));
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }
                 fin = funopen(tls, stdio_tls_read_wrapper,                  fin = funopen(tls, stdio_tls_read_wrapper,

Legend:
Removed from v.1.186  
changed lines
  Added in v.1.187