[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.132 and 1.133

version 1.132, 2020/09/01 12:33:48 version 1.133, 2020/09/06 09:00:37
Line 209 
Line 209 
         "noverifytime",          "noverifytime",
 #define SSL_SESSION             8  #define SSL_SESSION             8
         "session",          "session",
   #define SSL_PROTOCOLS           9
           "protocols",
         NULL          NULL
 };  };
   
Line 221 
Line 223 
         const char *errstr;          const char *errstr;
         long long depth;          long long depth;
         char *str;          char *str;
           uint32_t protocols;
   
         while (*cp) {          while (*cp) {
                 switch (getsubopt(&cp, ssl_verify_opts, &str)) {                  switch (getsubopt(&cp, ssl_verify_opts, &str)) {
Line 278 
Line 281 
                             tls_session_fd) == -1)                              tls_session_fd) == -1)
                                 errx(1, "failed to set session: %s",                                  errx(1, "failed to set session: %s",
                                     tls_config_error(tls_config));                                      tls_config_error(tls_config));
                           break;
                   case SSL_PROTOCOLS:
                           if (str == NULL)
                                   errx(1, "missing protocol name");
                           if (tls_config_parse_protocols(&protocols, str) != 0)
                                   errx(1, "failed to parse TLS protocols");
                           if (tls_config_set_protocols(tls_config, protocols) != 0)
                                   errx(1, "failed to set TLS protocols");
                         break;                          break;
                 default:                  default:
                         errx(1, "unknown -S suboption `%s'",                          errx(1, "unknown -S suboption `%s'",

Legend:
Removed from v.1.132  
changed lines
  Added in v.1.133