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

Diff for /src/usr.bin/ftp/main.c between version 1.98 and 1.99

version 1.98, 2015/02/12 04:23:17 version 1.99, 2015/02/13 08:41:34
Line 198 
Line 198 
   
 #ifndef SMALL  #ifndef SMALL
         cookiefile = getenv("http_cookies");          cookiefile = getenv("http_cookies");
           if (tls_config == NULL) {
                   tls_config = tls_config_new();
                   if (tls_config == NULL)
                           errx(1, "tls config failed");
                   tls_config_set_protocols(tls_config,
                       TLS_PROTOCOLS_ALL);
           }
   
 #endif /* !SMALL */  #endif /* !SMALL */
         httpuseragent = NULL;          httpuseragent = NULL;
   
Line 308 
Line 316 
   
                 case 'S':                  case 'S':
 #ifndef SMALL  #ifndef SMALL
                         if (tls_config == NULL) {  
                                 tls_config = tls_config_new();  
                                 if (tls_config == NULL)  
                                         errx(1, "tls config failed");  
                                 tls_config_set_protocols(tls_config,  
                                     TLS_PROTOCOLS_ALL);  
                         }  
   
                         cp = optarg;                          cp = optarg;
                         while (*cp) {                          while (*cp) {
                                 char    *str;                                  char    *str;

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99