From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Keep network security info buffers after use Date: Tue, 26 Dec 2023 16:09:07 -0600 Message-ID: References: <87plz4irev.fsf@red-bean.com> <83frzufo9x.fsf@gnu.org> <838r5jd56w.fsf@gnu.org> <87mstzwr5j.fsf@red-bean.com> <834jg7d0p2.fsf@gnu.org> <87h6k6chhq.fsf@gmail.com> <83frzq9kv9.fsf@gnu.org> <8734vpvxau.fsf@gmail.com> <834jg4aof7.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="21579"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kfogel@red-bean.com, emacs-devel@gnu.org To: Eli Zaretskii , =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 26 23:10:01 2023 Return-path: Envelope-to: ged-emacs-devel@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 1rIFcf-0005PY-41 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Dec 2023 23:10:01 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIFbs-0006iA-Mt; Tue, 26 Dec 2023 17:09:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIFbr-0006i2-In for emacs-devel@gnu.org; Tue, 26 Dec 2023 17:09:11 -0500 Original-Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIFbq-00043N-4h; Tue, 26 Dec 2023 17:09:11 -0500 Original-Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5553f251e3cso300737a12.2; Tue, 26 Dec 2023 14:09:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703628548; x=1704233348; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=vBiR9tE5iFJI4LfF+mkzGs2Rq2fjdSiuDLHiA8ipEqc=; b=T8e6I6lwE9pBX5BIygCN5dF4pBRJV3U/O94WyUac/FeI8c7SwJ7P2kMTjAAja/IoT4 nDqVPz5VYR8AZ+H/2itGZbBFW/OgJHoY1R1F7kZENCfJRZLkGxqr5qy7yGT1k3/ska55 zXN6l2xPJyaMmMxgg1tAOcBcQPeOcIhDjwZi4XENNZttDV+fT8BFCmd25vUxx/QdnFpw NVderVWJ2UXAJBb2xQ6FC0CkWrwulTHXDEUcBBhviG8wdgHux1zTdf4hphA56EN4TlsR zRbMfQp6DA+SXISXHgdbR7ZmwiDvbbB9nvS9Acxk+FjHe5U/7hSDvLR+MyZllKR9gnZz b9eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703628548; x=1704233348; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vBiR9tE5iFJI4LfF+mkzGs2Rq2fjdSiuDLHiA8ipEqc=; b=oVxjhAmeRhrT8WZpyWnZqd3X1qCT0IgUueOHTqQuANawb8P/PqeigbuGasfyoJCJwl S4IuKGs0NIU5NoX4CRbSK/h5eQNUzT1yUows73xQewt2poBzuAOPV6GcEUpNJa2U41bu it+VHlcic0seHOI1QLqNDZlYEYJ9w9iFxJoHPcHWbFmYkkQqcIOlTBTxesRiTTiBHmYg 0DXr/DGWOGW1JvM6ANjYRr2iGes3lvh2vM70AYPl9X0kD/jHaQWAA2sXJzY6uHNKjD0g ctVcfu+SNOgktj3kGCDjg7xq3tJIgrKGYF/m/w03bLsEzPuvfhxVfLD44YpEn4rAmykU suSA== X-Gm-Message-State: AOJu0YzfHGwsmirLOw+iBrwSMdg33ddCwFwu2bbQ94tEJhdhzoS+mN9F Aca/Q5/ps2V2KfOgiU/EuzAdRecBGirjN8wwcjDhH2XLFEg= X-Google-Smtp-Source: AGHT+IEXR2Lzh2O80GYCuA8z0Nn2l/Mi+xmmOq6V1tyy3/rdcZfgOT0kTXGk1Tewrs+AQFjKIkZYsrRfV8W65iTjIIU= X-Received: by 2002:a50:875c:0:b0:553:8226:da72 with SMTP id 28-20020a50875c000000b005538226da72mr5871500edv.16.1703628547927; Tue, 26 Dec 2023 14:09:07 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 26 Dec 2023 16:09:07 -0600 In-Reply-To: <834jg4aof7.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:314231 Archived-At: Eli Zaretskii writes: > There were two suggestions that I'm okay with: either to have a user > option to control whether this information is kept (until the next > connection which needs a certificate confirmation, which will then > erase the information about the previous certificate), or adding a > separate command to reproduce these details in a buffer. If someone > submits a patch along these lines, we could all be at least somewhat > happier. Did you consider a change like this? diff --git a/lisp/net/nsm.el b/lisp/net/nsm.el index 09f7ac52537..e69b0557478 100644 --- a/lisp/net/nsm.el +++ b/lisp/net/nsm.el @@ -919,8 +919,8 @@ nsm-query-user (read-only-mode))))) ;; Return the answer. (cadr answer)) - (kill-buffer cert-buffer) - (kill-buffer buffer))))) + (bury-buffer cert-buffer) + (bury-buffer buffer))))) (defun nsm-save-host (host port status what problems permanency) (let* ((id (nsm-id host port))