From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: master 583995c: GnuTLS HMAC and symmetric cipher support Date: Mon, 17 Jul 2017 17:59:10 -0700 Organization: UCLA Computer Science Department Message-ID: References: <20170714150706.13106.18905@vcs0.savannah.gnu.org> <20170714150707.5E9B322DF8@vcs0.savannah.gnu.org> <87eftfdu5g.fsf@lifelogs.com> <7kzic356o4.fsf@fencepost.gnu.org> <34d18yexh0.fsf@fencepost.gnu.org> <2ztw2auan0.fsf@fencepost.gnu.org> <3f44fabe-80b7-8a01-2b64-0a33b2a311b3@cs.ucla.edu> <02lgnm1zjh.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1500339607 13781 195.159.176.226 (18 Jul 2017 01:00:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2017 01:00:07 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 Cc: Emacs developers , Noam Postavsky To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 18 03:00:01 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dXGro-0003AI-MR for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2017 03:00:00 +0200 Original-Received: from localhost ([::1]:53308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGru-0007tt-5P for ged-emacs-devel@m.gmane.org; Mon, 17 Jul 2017 21:00:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dXGr6-0007sX-Kh for emacs-devel@gnu.org; Mon, 17 Jul 2017 20:59:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dXGr3-000682-IA for emacs-devel@gnu.org; Mon, 17 Jul 2017 20:59:16 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51524) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dXGr3-00065H-Bf; Mon, 17 Jul 2017 20:59:13 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 203AE16022A; Mon, 17 Jul 2017 17:59:11 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id cR7ueoJzutkm; Mon, 17 Jul 2017 17:59:10 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 666C016022F; Mon, 17 Jul 2017 17:59:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uBIQvcQiAPOo; Mon, 17 Jul 2017 17:59:10 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 45F5816022A; Mon, 17 Jul 2017 17:59:10 -0700 (PDT) In-Reply-To: <02lgnm1zjh.fsf@fencepost.gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216810 Archived-At: Glenn Morris wrote: >> It's OK, as every cipher other than GNUTLS_CIPHER_NULL has a non-NULL = name. > But it isn't OK. That's what this thread is about. > GNUTLS_CIPHER_UNKNOWN apparently has a NULL name. Sorry, I still don't see the problem here. From what I can see,=20 GNUTLS_CIPHER_NULL is not a cipher (or to be more precise, it is not a va= lid=20 GnuTLS cipher ID). The code in question: > const gnutls_cipher_algorithm_t *gciphers =3D gnutls_cipher_list (); > for (ptrdiff_t pos =3D 0; gciphers[pos] !=3D GNUTLS_CIPHER_NULL; pos++) > { > gnutls_cipher_algorithm_t gca =3D gciphers[pos]; > Lisp_Object cipher_symbol =3D intern (gnutls_cipher_get_name (gca)); looks only at GnuTLS cipher IDs returned by gnutls_cipher_list, and=20 GNUTLS_CIPHER_UNKNOWN is not one of those cipher IDs.