From de5ab7abc178ea26bb11eac870bcaa717aa4e673 Mon Sep 17 00:00:00 2001 From: billf Date: Sat, 25 Nov 2000 01:55:42 +0000 Subject: [PATCH] Correct an arguement to ssh_add_identity, this matches what is currently in ports/security/openssh/files/pam_ssh.c PR: 22164 Submitted by: Takanori Saneto Reviewed by: green Approved by: green --- crypto/openssh/pam_ssh/pam_ssh.c | 2 +- lib/libpam/modules/pam_ssh/pam_ssh.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/openssh/pam_ssh/pam_ssh.c b/crypto/openssh/pam_ssh/pam_ssh.c index cdf2e55d120c..13e5c4429b47 100644 --- a/crypto/openssh/pam_ssh/pam_ssh.c +++ b/crypto/openssh/pam_ssh/pam_ssh.c @@ -443,7 +443,7 @@ pam_sm_open_session( env_destroy(ssh_env); return PAM_SESSION_ERR; } - retval = ssh_add_identity(ac, key.rsa, comment); + retval = ssh_add_identity(ac, &key, comment); ssh_close_authentication_connection(ac); env_swap(ssh_env, 0); return retval ? PAM_SUCCESS : PAM_SESSION_ERR; diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.c b/lib/libpam/modules/pam_ssh/pam_ssh.c index cdf2e55d120c..13e5c4429b47 100644 --- a/lib/libpam/modules/pam_ssh/pam_ssh.c +++ b/lib/libpam/modules/pam_ssh/pam_ssh.c @@ -443,7 +443,7 @@ pam_sm_open_session( env_destroy(ssh_env); return PAM_SESSION_ERR; } - retval = ssh_add_identity(ac, key.rsa, comment); + retval = ssh_add_identity(ac, &key, comment); ssh_close_authentication_connection(ac); env_swap(ssh_env, 0); return retval ? PAM_SUCCESS : PAM_SESSION_ERR;