=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/s_client.c,v retrieving revision 1.60 retrieving revision 1.61 diff -c -r1.60 -r1.61 *** src/usr.bin/openssl/s_client.c 2023/03/06 14:32:06 1.60 --- src/usr.bin/openssl/s_client.c 2023/07/03 06:22:07 1.61 *************** *** 1,4 **** ! /* $OpenBSD: s_client.c,v 1.60 2023/03/06 14:32:06 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: s_client.c,v 1.61 2023/07/03 06:22:07 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * *************** *** 296,313 **** } #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 static int s_client_opt_protocol_version_dtls1_2(void) --- 296,301 ---- *************** *** 321,342 **** #endif 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) { cfg.min_version = TLS1_2_VERSION; --- 309,314 ---- *************** *** 505,518 **** .opt.func = s_client_opt_protocol_version_dtls, }, #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 { .name = "dtls1_2", --- 477,482 ---- *************** *** 660,679 **** .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", .desc = "Disable the use of TLSv1.2", .type = OPTION_VALUE_OR, --- 624,629 ---- *************** *** 806,823 **** }, #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", .desc = "Just use TLSv1.2", .type = OPTION_FUNC, --- 756,761 ---- *************** *** 880,896 **** "[-4 | -6] [-alpn protocols] [-bugs] [-CAfile file]\n" " [-CApath directory] [-cert file] [-certform der | pem] [-check_ss_sig]\n" " [-cipher cipherlist] [-connect host[:port]] [-crl_check]\n" ! " [-crl_check_all] [-crlf] [-debug] [-dtls] [-dtls1] [-dtls1_2] [-extended_crl]\n" " [-groups list] [-host host] [-ign_eof] [-ignore_critical]\n" " [-issuer_checks] [-key keyfile] [-keyform der | pem]\n" " [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\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_tls1_2] [-no_tls1_3] [-pass arg] [-pause] [-policy_check]\n" " [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n" " [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n" " [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n" ! " [-tls1] [-tls1_1] [-tls1_2] [-tls1_3] [-tlsextdebug]\n" " [-use_srtp profiles] [-verify depth] [-verify_return_error]\n" " [-x509_strict] [-xmpphost host]\n"); fprintf(stderr, "\n"); --- 818,834 ---- "[-4 | -6] [-alpn protocols] [-bugs] [-CAfile file]\n" " [-CApath directory] [-cert file] [-certform der | pem] [-check_ss_sig]\n" " [-cipher cipherlist] [-connect host[:port]] [-crl_check]\n" ! " [-crl_check_all] [-crlf] [-debug] [-dtls] [-dtls1_2] [-extended_crl]\n" " [-groups list] [-host host] [-ign_eof] [-ignore_critical]\n" " [-issuer_checks] [-key keyfile] [-keyform der | pem]\n" " [-keymatexport label] [-keymatexportlen len] [-legacy_server_connect]\n" " [-msg] [-mtu mtu] [-nbio] [-nbio_test] [-no_comp] [-no_ign_eof]\n" ! " [-no_legacy_server_connect] [-no_ticket] \n" " [-no_tls1_2] [-no_tls1_3] [-pass arg] [-pause] [-policy_check]\n" " [-port port] [-prexit] [-proxy host:port] [-quiet] [-reconnect]\n" " [-servername name] [-serverpref] [-sess_in file] [-sess_out file]\n" " [-showcerts] [-starttls protocol] [-state] [-status] [-timeout]\n" ! " [-tls1_2] [-tls1_3] [-tlsextdebug]\n" " [-use_srtp profiles] [-verify depth] [-verify_return_error]\n" " [-x509_strict] [-xmpphost host]\n"); fprintf(stderr, "\n");