From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolaos Chatzikonstantinou Newsgroups: gmane.emacs.bugs Subject: bug#50507: New function in Emacs GnuTLS implementation Date: Sun, 12 Sep 2021 00:28:33 +0900 Message-ID: References: <83ee9wiozc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11735"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50507@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 11 17:59:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mP5PJ-0002rq-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 17:59:09 +0200 Original-Received: from localhost ([::1]:52666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP5PI-0000Ih-NQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 11:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP5PC-0000IX-Rb for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 11:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57954) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP5PC-00017q-Eh for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 11:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mP5PC-0005vK-D3 for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 11:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolaos Chatzikonstantinou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Sep 2021 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50507 X-GNU-PR-Package: emacs Original-Received: via spool by 50507-submit@debbugs.gnu.org id=B50507.163137588922705 (code B ref 50507); Sat, 11 Sep 2021 15:59:02 +0000 Original-Received: (at 50507) by debbugs.gnu.org; 11 Sep 2021 15:58:09 +0000 Original-Received: from localhost ([127.0.0.1]:41267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP5OL-0005u8-Ab for submit@debbugs.gnu.org; Sat, 11 Sep 2021 11:58:09 -0400 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:41887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP4vz-00054X-91 for 50507@debbugs.gnu.org; Sat, 11 Sep 2021 11:28:51 -0400 Original-Received: by mail-lj1-f177.google.com with SMTP id o11so1003295ljp.8 for <50507@debbugs.gnu.org>; Sat, 11 Sep 2021 08:28:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pEnl/ZcPPwYBeSMHrGg0peWDIZSWskknYCsDFBN70b8=; b=W22XAfAXvqfQxwTY9aT9S6iyJbcH1zBY+luwf+XW32B6avVkoqEKyuJM7kWi1NRx5Y +1robpd1BAsR4jXjoJmMQHgfqRiZIKbgIhVuePTJCsT+64KWn/oRh+jFyqOX3K9uMjxN P+9615IQtmZbWfkUnP1lT1SuQOa4V2Vl+8ywtqFpDMx+1mEyWzEuJE2LcJD+FBMCV+ay HiP/Wit95Uix7d0H2cwI5DHKbBpQg5RC3WwDeZBL5HUG5zksly8JkM753JP0e1ZfrdGX jQWVgyUavMDee3Wsfcbsc1Lpfe1RZzNlZF+NRwj3qigsZd0xdXIeF3bfkUm/HAa/7ZCe XL+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pEnl/ZcPPwYBeSMHrGg0peWDIZSWskknYCsDFBN70b8=; b=SW+Lw3i4TBQM0V9UyEs2aVcdUJVlbI0Aoj+7sz+fSlpC8JBs7EF+mtHFUQPWNBysGb IVMP17DScePpobxLdaHoaF6aazqsH6jfZoY+1KmT4l49tXFb0bJaEo8St5DR+/Vlcx/c h/8ks4gZkad7vOdQt9dO2E7qT322sxVCBt8gWm+kJqkMqaunZvDs0JRLfQIp1rJwJR0e Tj5Yw2ccCRawgFMPF1lrV297WgTpUJ7BMnc+fnvoXINyDW6wmIYclX7vrNnfhpkxlFJP KULxV89qT+SSJ5xXG7VdLsaPYxks3ae4J3kGjDWoYUxDR270dYl/BpardWiPar12QDsQ kDQg== X-Gm-Message-State: AOAM533w0NwjkVkY4VvNfRsjG96gOaKFRojIeX6RjR31qsZncmn3/phh bAClHZbNo7/Mbv+OAw0UMhNQlKYZNNvlpfJoJ90XHxf8nE9UMp5E X-Google-Smtp-Source: ABdhPJxtHa0ul1wCjxFZqoVp+EVhGBXbwiM+RdgvWs2RbxvqIYmD9oLyWZ5w5VvJGp2MArGM2fLD9kSa12o/yypsB9k= X-Received: by 2002:a2e:a4ca:: with SMTP id p10mr2639377ljm.415.1631374125089; Sat, 11 Sep 2021 08:28:45 -0700 (PDT) In-Reply-To: <83ee9wiozc.fsf@gnu.org> X-Mailman-Approved-At: Sat, 11 Sep 2021 11:58:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214090 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 > From: Eli Zaretskii > Date: Fri, 10 Sep 2021 15:39:35 +0300 > > From: Nikolaos Chatzikonstantinou > > Date: Fri, 10 Sep 2021 19:39:52 +0900 > > > > I am looking at the src/gnutls.c:gnutls-boot function for the > > purpose of modifying it to use the function > > gnutls_certificate_set_x509_key_file2 > > instead of gnutls_certificate_set_x509_key_file. (Note the missing > > `2') > > > > The reason for this addition would be to protect the key with a > > password. Note that the pass parameter may be NULL. > > Do you intend to make the change unconditionally, or do you intend to > make it an optional feature? > > And what is the minimal GnuTLS version which provided this function? I intend to introduce new functions without changing any of the others. The following functions were added at 2013-04-08: gnutls_certificate_set_x509_key_file2 gnutls_certificate_set_x509_key_mem2 Versions after 3.2 and 3.1.11 include them. Although it appears straightforward to introduce them, my plan is to spend some time acclimating myself with GnuTLS and the Emacs implementation to ensure that I did it right, and then I'll submit a patch. Does it sound good? Regards, Nikolaos Chatzikonstantinou -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEHHHUCYKNdWl5h845DtNR6zceZEgFAmE8yqkACgkQDtNR6zce ZEjF9hAAyoLaoIbMEmzaJ/TrzTyucic4L78LTYyoMMAB7UgNgWFwhRZ+6POUc2N2 UiIjuz5JBGtpUIBgQS/DOyzZppZxGyJMa+VeIu1rEypk6NYw4XVVgXgOg2kEpM5R WBgdFmafsyUmNWwr9xEs8QtfaXE0qVlQA4TIXNJSI7iZsgK6B/WZbez1TBbiOign Wydgzvvb9NcRRvMUV5BHxFMfTt7dDWiN2jpCx7mYizcjWnSiAwB/75H82YAGCIa+ vHKwGGX3Fl+k6bkd9dNeaNXX//seKecgOzipodu2KeahgY3AXSxL+t9jPIwRU0gp dfm/h6qc9189WZ1hvigFpEgvU44Uc2yUUyDFQ+Gp7dLAaLo1KHsD9jVnG7WFtMBw Owcz7CwD4nYHGBwqucijrtAjurclvus7Yuqh1aayMkYySjJCN0IoQOMmbpVYUbaZ lP83wooZ4C624x0hSMIQNtAoDSB5en05ny71DkPTTozDvkED5vxfZkoARaSnQFiO NeirllWwz07ZQck1PvoJXgOUvytUEf5OS4pJNvLX11/qGUzfwBWA1ZWO3mHAPHAx K3iMUxWtRF0VnpvS6X1dXj0MYIhhJ/aEpYh/IL4uPyQrfrWoMUEmDgw3LNPB01Er tqGpeSiWbQ/YSE6AERoYf+gsuaHnsOMWwxyznwvkWWfn12I4/34= =qL1/ -----END PGP SIGNATURE-----