From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 526801F44D for ; Thu, 25 Apr 2024 20:45:57 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=lfYgHPgO; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=M3NZvHzU; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id AEED1844C0; Thu, 25 Apr 2024 20:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1714077948; bh=mMWkxNGlY5wz6pq7ZPQMgO9ZMVo2FNhZjbRHJVqd8Vg=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=lfYgHPgOQm0NR51RiZWYUF/4fmYb624BQUm7bfDWtrYINNE5MBfwjDQjcTwrjoqEg 8cdjXT8CkTV+W3Ck/sagiaUVk2Fm1F9La1Wt1NlOdZXVRxNNVM33xBHXN6G68f54qd Q569lc337YNMu1J2UbV+W+ZAsrkP0CCR7CJQQPhU= Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) by nue.mailmanlists.eu (Postfix) with ESMTPS id A6B378447B for ; Thu, 25 Apr 2024 20:45:45 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=M3NZvHzU; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=joelQJ5OxGdiZxoq5osvk7iySO8ykNKkvCv6edLVgCs=; b=M3NZvHzU0CFK/6a0qxox2rgjIx3rOMNG0XWkm8hCzkywX5+ZrP0+ValoQEUQMZxPzaiQ OEvhaoff8eMgjayRr301mNbx5SAgZrJf4vyeSQFAfvcHnVPp7JXwBVjFrHa/eS3MfW1tz7 gRQ1+ESW5h4+REDDwloTMpMryewPwBrRxpe3hmuU9J9Zp5RZF9PHv6mVO3tZHNEsM9arCI uPIz5wJEC9mQpFvP0qwJX75mMnOwFc0NWBCJ0XD3y5GFVNT3Q2SHLS4i/QJMbK2ePjtqbm 6u7lP8XdNE9Rlrs36LMD0/FVyIUKqulawsc12GyRLMlkfTwkHEimpN8z/DypfKzQ== Received: by recvd-bb7996b79-qghgv with SMTP id recvd-bb7996b79-qghgv-1-662AC0F7-20 2024-04-25 20:45:43.835967573 +0000 UTC m=+1118708.635834874 Received: from herokuapp.com (unknown) by geopod-ismtpd-17 (SG) with ESMTP id WZAhxJnTTT6i2a1QkgbeDQ for ; Thu, 25 Apr 2024 20:45:43.802 +0000 (UTC) Date: Thu, 25 Apr 2024 20:45:43 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20458 X-Redmine-Issue-Author: postmodern X-Redmine-Issue-Priority: Normal X-Redmine-Sender: postmodern X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 94311 X-SG-EID: =?us-ascii?Q?u001=2Ef03PVc9XFSI1yCbZM0x=2FRgSHvsCVvZmQpMhWHdDg0I5KuvvJ38m7GCHYQ?= =?us-ascii?Q?8bbxTKig2cYcnXe8t5UnXfKtNF5XAJvR3ys8tK2?= =?us-ascii?Q?VBtxNTDhqYnbkI2dzwKDsZ5RIkzZxuylSiroGT6?= =?us-ascii?Q?Uev5koFvKmPDQxWpTg5Y5yYbgxq0OhNC6LBEi0z?= =?us-ascii?Q?ItIWOvpxESbJtXwJ5hSk3whnoYPlIc0HCuT7zeL?= =?us-ascii?Q?PCSPdY6uBnzs11tHmrh4URrl+=2FFbFOXdI+nV9X4?= =?us-ascii?Q?2wV1rmsK6KK3GyEDLJkyHC=2FbBQ=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: YKAW7IZXDB5CKFUEJVU3A6OX5AAZMTW4 X-Message-ID-Hash: YKAW7IZXDB5CKFUEJVU3A6OX5AAZMTW4 X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117715] [Ruby master Bug#20458] OpensSSL::SSL::SSLContext#min_version= and #max_version no longer accept Symbol values List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "postmodern (Hal Brodigan) via ruby-core" Cc: "postmodern (Hal Brodigan)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20458 has been reported by postmodern (Hal Brodigan). ---------------------------------------- Bug #20458: OpensSSL::SSL::SSLContext#min_version= and #max_version no longer accept Symbol values https://bugs.ruby-lang.org/issues/20458 * Author: postmodern (Hal Brodigan) * Status: Open * ruby -v: ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- It appears that `OpenSSL::SSL::SSLContext#min_version=` and `#max_version=` no longer accept Symbol values, contrary to their [documentation](https://docs.ruby-lang.org/en/master/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D). Instead it appears they are being converted to Strings. ## Steps To Reproduce ```ruby require 'openssl' context = OpenSSL::SSL::SSLContext.new context.min_version = :TLSv1 ``` ```ruby require 'openssl' context = OpenSSL::SSL::SSLContext.new context.max_version = :TLSv1_2 ``` ### Expected Results Sets `min_version` and `max_version` to the according `OpenSSL::SSL::TLS1_VERSION` and `OpenSSL::SSL::TLS1_2_VERSION` values, respectively. ### Actual Results ``` /usr/share/ruby/openssl/ssl.rb:179:in `set_minmax_proto_version': unrecognized version "TLSv1" (ArgumentError) set_minmax_proto_version(version, @max_proto_version ||= nil) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ from /usr/share/ruby/openssl/ssl.rb:179:in `min_version=' ``` ``` /usr/share/ruby/openssl/ssl.rb:191:in `set_minmax_proto_version': unrecognized version "TLSv1_2" (ArgumentError) set_minmax_proto_version(@min_proto_version ||= nil, version) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ from /usr/share/ruby/openssl/ssl.rb:191:in `max_version=' ``` ### Version Info Tested on: * `ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]` and `openssl` gem version `3.1.0` * `ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]` and `openssl` gem version `3.2.0` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/