[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.111 and 1.112

version 1.111, 2013/11/13 20:41:10 version 1.112, 2013/12/24 13:00:59
Line 606 
Line 606 
                 SSL_load_error_strings();                  SSL_load_error_strings();
                 SSLeay_add_ssl_algorithms();                  SSLeay_add_ssl_algorithms();
                 ssl_ctx = SSL_CTX_new(SSLv23_client_method());                  ssl_ctx = SSL_CTX_new(SSLv23_client_method());
                   if (ssl_ctx == NULL) {
                           ERR_print_errors_fp(ttyout);
                           goto cleanup_url_get;
                   }
                   if (ssl_verify) {
                           if (ssl_ca_file == NULL && ssl_ca_path == NULL)
                                   ssl_ca_file = _PATH_SSL_CAFILE;
                           if (SSL_CTX_load_verify_locations(ssl_ctx,
                               ssl_ca_file, ssl_ca_path) != 1) {
                                   ERR_print_errors_fp(ttyout);
                                   goto cleanup_url_get;
                           }
                           SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, NULL);
                           if (ssl_verify_depth != -1)
                                   SSL_CTX_set_verify_depth(ssl_ctx,
                                       ssl_verify_depth);
                   }
                   if (ssl_ciphers != NULL)
                           SSL_CTX_set_cipher_list(ssl_ctx, ssl_ciphers);
                 ssl = SSL_new(ssl_ctx);                  ssl = SSL_new(ssl_ctx);
                 if (ssl == NULL || ssl_ctx == NULL) {                  if (ssl == NULL) {
                         ERR_print_errors_fp(ttyout);                          ERR_print_errors_fp(ttyout);
                         goto cleanup_url_get;                          goto cleanup_url_get;
                 }                  }

Legend:
Removed from v.1.111  
changed lines
  Added in v.1.112