[openssh-commits] [openssh] 02/13: upstream: add a comment so I don't make this mistake again
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jan 7 09:21:49 AEDT 2022
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 24c5187edfef4651a625b7d5d692c8c7e794f71f
Author: djm at openbsd.org <djm at openbsd.org>
Date: Wed Jan 5 21:54:37 2022 +0000
upstream: add a comment so I don't make this mistake again
OpenBSD-Commit-ID: 69c7f2362f9de913bb29b6318580c5a1b52c921e
---
ssh-keygen.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ssh-keygen.c b/ssh-keygen.c
index 6dd82593..05901cb0 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.446 2022/01/05 21:50:00 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.447 2022/01/05 21:54:37 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -3523,6 +3523,7 @@ main(int argc, char **argv)
return sig_match_principals(identity_file, cert_key_id,
opts, nopts);
} else if (strncmp(sign_op, "sign", 4) == 0) {
+ /* NB. cert_principals is actually namespace, via -n */
if (cert_principals == NULL ||
*cert_principals == '\0') {
error("Too few arguments for sign: "
@@ -3545,10 +3546,11 @@ main(int argc, char **argv)
return sig_verify(ca_key_path, cert_principals,
NULL, NULL, NULL, opts, nopts);
} else if (strncmp(sign_op, "verify", 6) == 0) {
+ /* NB. cert_principals is actually namespace, via -n */
if (cert_principals == NULL ||
*cert_principals == '\0') {
error("Too few arguments for verify: "
- "missing principal");
+ "missing namespace");
exit(1);
}
if (ca_key_path == NULL) {
@@ -3563,7 +3565,7 @@ main(int argc, char **argv)
}
if (cert_key_id == NULL) {
error("Too few arguments for verify: "
- "missing principal ID");
+ "missing principal identity");
exit(1);
}
return sig_verify(ca_key_path, cert_principals,
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list