Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpam/modules/pam_ssh Set provider to NULL -- "pam" is ...



details:   https://anonhg.NetBSD.org/src/rev/4354e8a25b5e
branches:  trunk
changeset: 366789:4354e8a25b5e
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Jun 15 08:31:34 2022 +0000

description:
Set provider to NULL -- "pam" is not a valid security key helper library.
Now ssh-agent no longer fails key addition with

    error: Cannot add provider: RSA is not an authenticator-hosted key

diffstat:

 lib/libpam/modules/pam_ssh/pam_ssh.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 94f365f300e5 -r 4354e8a25b5e lib/libpam/modules/pam_ssh/pam_ssh.c
--- a/lib/libpam/modules/pam_ssh/pam_ssh.c      Wed Jun 15 04:31:22 2022 +0000
+++ b/lib/libpam/modules/pam_ssh/pam_ssh.c      Wed Jun 15 08:31:34 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pam_ssh.c,v 1.29 2022/02/24 00:26:26 christos Exp $    */
+/*     $NetBSD: pam_ssh.c,v 1.30 2022/06/15 08:31:34 hannken Exp $     */
 
 /*-
  * Copyright (c) 2003 Networks Associates Technology, Inc.
@@ -38,7 +38,7 @@
 #ifdef __FreeBSD__
 __FBSDID("$FreeBSD: src/lib/libpam/modules/pam_ssh/pam_ssh.c,v 1.40 2004/02/10 10:13:21 des Exp $");
 #else
-__RCSID("$NetBSD: pam_ssh.c,v 1.29 2022/02/24 00:26:26 christos Exp $");
+__RCSID("$NetBSD: pam_ssh.c,v 1.30 2022/06/15 08:31:34 hannken Exp $");
 #endif
 
 #include <sys/param.h>
@@ -68,7 +68,7 @@
 #include "authfile.h"
 
 #define ssh_add_identity(auth, key, comment) \
-    ssh_add_identity_constrained(auth, key, comment, 0, 0, 0, "pam", NULL, 00)
+    ssh_add_identity_constrained(auth, key, comment, 0, 0, 0, NULL, NULL, 00)
 
 extern char **environ;
 



Home | Main Index | Thread Index | Old Index