[openssh-commits] [openssh] 01/13: upstream: increase maximum message length for PKCS#11 helper to
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Nov 27 08:18:17 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 86fc9a74127e5e56d325e62a216450b8e446cfbe
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Nov 26 05:37:28 2026 +0000
upstream: increase maximum message length for PKCS#11 helper to
slightly over 256KB. Avoids helper fatal() when a certificate over 10KB is
added.
Anthropic ANT-2026-RYQEXQ8K
OpenBSD-Commit-ID: 10264b82b1dc12d79fccc0241b4d72c27157f880
---
ssh-pkcs11-helper.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index f7b7b2e81..4ef6015a0 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11-helper.c,v 1.31 2026/02/11 17:03:17 dtucker Exp $ */
+/* $OpenBSD: ssh-pkcs11-helper.c,v 1.32 2026/11/26 05:37:28 djm Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -42,7 +42,13 @@
static char *providername; /* Provider for this helper */
-#define MAX_MSG_LENGTH 10240 /*XXX*/
+/*
+ * Must be able to hold any request ssh-agent accepts (AGENT_MAX_LEN in
+ * ssh-agent.c) plus the few bytes ssh-pkcs11-client.c adds when it
+ * forwards a signature request, otherwise a large sign request (e.g. one
+ * carrying a big host certificate) terminates the helper.
+ */
+#define MAX_MSG_LENGTH (256*1024 + 1024)
/* input and output queue */
struct sshbuf *iqueue;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list