From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#31946: 27.0.50; The NSM should warn about more TLS problems Date: Wed, 27 Jun 2018 14:20:16 +0200 Message-ID: References: <87fu1apchn.fsf@gmail.com> <83in65r4n9.fsf@gnu.org> <87y3f1njku.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1530101959 29756 195.159.176.226 (27 Jun 2018 12:19:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2018 12:19:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31946@debbugs.gnu.org, Noam Postavsky To: Jimmy Yuen Ho Wong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 27 14:19:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fY9Pl-0007ax-SX for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 14:19:14 +0200 Original-Received: from localhost ([::1]:58758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fY9Rr-0002XJ-E1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jun 2018 08:21:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fY9Ra-0002VR-49 for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 08:21:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fY9RW-0005xp-GF for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 08:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fY9RW-0005xd-Bf for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 08:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fY9RW-0005Y8-6k for bug-gnu-emacs@gnu.org; Wed, 27 Jun 2018 08:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jun 2018 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: security Original-Received: via spool by 31946-submit@debbugs.gnu.org id=B31946.153010202921268 (code B ref 31946); Wed, 27 Jun 2018 12:21:02 +0000 Original-Received: (at 31946) by debbugs.gnu.org; 27 Jun 2018 12:20:29 +0000 Original-Received: from localhost ([127.0.0.1]:36941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fY9Qv-0005Ws-NA for submit@debbugs.gnu.org; Wed, 27 Jun 2018 08:20:29 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:41970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fY9Qq-0005Wf-QF for 31946@debbugs.gnu.org; Wed, 27 Jun 2018 08:20:24 -0400 Original-Received: from cm-84.212.221.165.getinternet.no ([84.212.221.165] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fY9Qm-0007Ul-BW; Wed, 27 Jun 2018 14:20:19 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEUsJSMJBgeTgHDZxq4R DQ4RDA0XFBQVEhITEBASDg/8hd4vAAACb0lEQVQ4jW2UwW7bMAyGNQ9w0ts0INh6cx3sBewXGAYa qI4d7MNuLTDI2XEdILnXFoul41IXld52P+Vkm4sxgJPwE0mR+mVhrF6YSJZr4dxo7RJe51r3IkY3 M5j5C3uhphgcs2F0/6BePFGM0c+QI4/+OdV9ubAVpxUjVt0u/PUa4VY4pH4JkNQIZ4cXqeqzmCLc CdTVKSJiF4I3A7CtYXhUM0DxtCteC8Dri1PxpxDDoSrk5qfJLqTcyGy7RldWdOjvoSqupJRvXuHx jkH0A4PwUOXyfQJ43m7PkN4Knshj9UHevJU/LuTFuczqNVobRNu06lCVRZ5vXhcb8e22RITZI4Ko +Yxd5ftsW+GIsnK7dmaXQPdRLGwXd6jRkukaoomo5XIxqBj8Hp23YYAf+VRDSkUir4IP6Jxs72m2 vYpqUh4d83m0wbspThM9a+sUUuE4MVgtKIzh7nmINOePfMjeWQNgnR+Ng0slPzI41yMC7WMJ/g0x 7Yp/jprBFFhaznydgR+RYY6ICnnDfgUR6TtUd2q0WmAJUjsf9zvEch7n5BcAhbKXKYmbS6DC1fkI gPYOSQRFJjKRBPfr0mgeIn3i4+bx6Wv4t6s7aFhMGN6BQf1HVysWsKCmaVNEKTQfRsUAohfc7SHp qcCnZHHlrHlB6O++TqSsZt3lPafieTJgvc1fADaB6I+gXgCMNLwExxqp+H8ARfW4BCu+pNw597EA jqfbdU3X0jMLYLDG9ro3FtejBzgaRYJAeMZKzREna6EtmiCtCTrgd4rsrroOVyYx6liVcTy+bMQN row8BVKKuE6viO/wbzbJ33SkAH4D9KSGMhJX9M0AAAAASUVORK5CYII= In-Reply-To: (Lars Ingebrigtsen's message of "Wed, 27 Jun 2018 14:07:17 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:147863 Archived-At: Lars Ingebrigtsen writes: > To get the connection parameters, say something like: > > (gnutls-peer-status (open-network-stream "foo" nil > "dh-composite.badssl.com" "https" :tls-parameters (cons > 'gnutls-x509pki (gnutls-boot-parameters :hostname > "dh-composite.badssl.com")))) Speaking of which -- it's quite a mouthful to say: (open-network-stream "foo" nil "dh-composite.badssl.com" "https" :tls-parameters (cons 'gnutls-x509pki (gnutls-boot-parameters :hostname "dh-composite.badssl.com"))) I've been meaning to add a :tls keyword to `open-network-stream' that would make (open-network-stream "foo" nil "dh-composite.badssl.com" "https" :tls t) a short way to write the above. I.e., the default TLS parameters (which is what you need in 99.9% of the cases) would be used if you just say :tls t. Does that sound OK to you, Eli? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no