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

Diff for /src/usr.bin/openssl/s_client.c between version 1.60 and 1.61

version 1.60, 2023/03/06 14:32:06 version 1.61, 2023/07/03 06:22:07
Line 296 
Line 296 
 }  }
 #endif  #endif
   
 #ifndef OPENSSL_NO_DTLS1  
 static int  
 s_client_opt_protocol_version_dtls1(void)  
 {  
         cfg.meth = DTLS_client_method();  
         cfg.min_version = DTLS1_VERSION;  
         cfg.max_version = DTLS1_VERSION;  
         cfg.socket_type = SOCK_DGRAM;  
         return (0);  
 }  
 #endif  
   
 #ifndef OPENSSL_NO_DTLS1_2  #ifndef OPENSSL_NO_DTLS1_2
 static int  static int
 s_client_opt_protocol_version_dtls1_2(void)  s_client_opt_protocol_version_dtls1_2(void)
Line 321 
Line 309 
 #endif  #endif
   
 static int  static int
 s_client_opt_protocol_version_tls1(void)  
 {  
         cfg.min_version = TLS1_VERSION;  
         cfg.max_version = TLS1_VERSION;  
         return (0);  
 }  
   
 static int  
 s_client_opt_protocol_version_tls1_1(void)  
 {  
         cfg.min_version = TLS1_1_VERSION;  
         cfg.max_version = TLS1_1_VERSION;  
         return (0);  
 }  
   
 static int  
 s_client_opt_protocol_version_tls1_2(void)  s_client_opt_protocol_version_tls1_2(void)
 {  {
         cfg.min_version = TLS1_2_VERSION;          cfg.min_version = TLS1_2_VERSION;
Line 505 
Line 477 
                 .opt.func = s_client_opt_protocol_version_dtls,                  .opt.func = s_client_opt_protocol_version_dtls,
         },          },
 #endif  #endif
 #ifndef OPENSSL_NO_DTLS1  
         {  
                 .name = "dtls1",  
                 .desc = "Just use DTLSv1",  
                 .type = OPTION_FUNC,  
                 .opt.func = s_client_opt_protocol_version_dtls1,  
         },  
 #endif  
 #ifndef OPENSSL_NO_DTLS1_2  #ifndef OPENSSL_NO_DTLS1_2
         {          {
                 .name = "dtls1_2",                  .name = "dtls1_2",
Line 660 
Line 624 
                 .value = SSL_OP_NO_TICKET,                  .value = SSL_OP_NO_TICKET,
         },          },
         {          {
                 .name = "no_tls1",  
                 .desc = "Disable the use of TLSv1",  
                 .type = OPTION_VALUE_OR,  
                 .opt.value = &cfg.off,  
                 .value = SSL_OP_NO_TLSv1,  
         },  
         {  
                 .name = "no_tls1_1",  
                 .desc = "Disable the use of TLSv1.1",  
                 .type = OPTION_VALUE_OR,  
                 .opt.value = &cfg.off,  
                 .value = SSL_OP_NO_TLSv1_1,  
         },  
         {  
                 .name = "no_tls1_2",                  .name = "no_tls1_2",
                 .desc = "Disable the use of TLSv1.2",                  .desc = "Disable the use of TLSv1.2",
                 .type = OPTION_VALUE_OR,                  .type = OPTION_VALUE_OR,
Line 806 
Line 756 
         },          },
 #endif  #endif
         {          {
                 .name = "tls1",  
                 .desc = "Just use TLSv1",  
                 .type = OPTION_FUNC,  
                 .opt.func = s_client_opt_protocol_version_tls1,  
         },  
         {  
                 .name = "tls1_1",  
                 .desc = "Just use TLSv1.1",  
                 .type = OPTION_FUNC,  
                 .opt.func = s_client_opt_protocol_version_tls1_1,  
         },  
         {  
                 .name = "tls1_2",                  .name = "tls1_2",
                 .desc = "Just use TLSv1.2",                  .desc = "Just use TLSv1.2",
                 .type = OPTION_FUNC,                  .type = OPTION_FUNC,
Line 880 
Line 818 
             "[-4 | -6] [-alpn protocols] [-bugs] [-CAfile file]\n"              "[-4 | -6] [-alpn protocols] [-bugs] [-CAfile file]\n"
             "    [-CApath directory] [-cert file] [-certform der | pem] [-check_ss_sig]\n"              "    [-CApath directory] [-cert file] [-certform der | pem] [-check_ss_sig]\n"
             "    [-cipher cipherlist] [-connect host[:port]] [-crl_check]\n"              "    [-cipher cipherlist] [-connect host[:port]] [-crl_check]\n"
             "    [-crl_check_all] [-crlf] [-debug] [-dtls] [-dtls1] [-dtls1_2] [-extended_crl]\n"              "    [-crl_check_all] [-crlf] [-debug] [-dtls] [-dtls1_2] [-extended_crl]\n"
             "    [-groups list] [-host host] [-ign_eof] [-ignore_critical]\n"              "    [-groups list] [-host host] [-ign_eof] [-ignore_critical]\n"
             "    [-issuer_checks] [-key keyfile] [-keyform der | pem]\n"              "    [-issuer_checks] [-key keyfile] [-keyform der | pem]\n"
             "    [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\n"              "    [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\n"
             "    [-msg] [-mtu mtu] [-nbio] [-nbio_test] [-no_comp] [-no_ign_eof]\n"              "    [-msg] [-mtu mtu] [-nbio] [-nbio_test] [-no_comp] [-no_ign_eof]\n"
             "    [-no_legacy_server_connect] [-no_ticket] [-no_tls1] [-no_tls1_1]\n"              "    [-no_legacy_server_connect] [-no_ticket] \n"
             "    [-no_tls1_2] [-no_tls1_3] [-pass arg] [-pause] [-policy_check]\n"              "    [-no_tls1_2] [-no_tls1_3] [-pass arg] [-pause] [-policy_check]\n"
             "    [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n"              "    [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n"
             "    [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n"              "    [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n"
             "    [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n"              "    [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n"
             "    [-tls1] [-tls1_1] [-tls1_2] [-tls1_3] [-tlsextdebug]\n"              "    [-tls1_2] [-tls1_3] [-tlsextdebug]\n"
             "    [-use_srtp profiles] [-verify depth] [-verify_return_error]\n"              "    [-use_srtp profiles] [-verify depth] [-verify_return_error]\n"
             "    [-x509_strict] [-xmpphost host]\n");              "    [-x509_strict] [-xmpphost host]\n");
         fprintf(stderr, "\n");          fprintf(stderr, "\n");

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61