From 45c3b61476571f923fd9a7c5d9057f74f764040f Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 16 Jul 2023 10:17:38 +0200 Subject: [PATCH] Extend docstring of ssh-add utility function --- site-lisp/db-utils.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-utils.el b/site-lisp/db-utils.el index 5c7712f..d37991f 100644 --- a/site-lisp/db-utils.el +++ b/site-lisp/db-utils.el @@ -837,10 +837,13 @@ This is `db-light' and `solarized-light'." ;;; SSH-Key-Handling (defun db/add-ssh-key-with-password (key-file password-fn) - "Add key in KEY-FILE to currently running ssh-agent. + "Synchronously add key in KEY-FILE to currently running ssh-agent. PASSWORD-FN is supposed to be a function returning the password -for KEY-FILE." +for KEY-FILE; PASSWORD-FN is called on demand. + +This function uses ssh-add to add the key to the currently +running ssh-agent and waits for the process to finish." (with-environment-variables (("SSH_ASKPASS_REQUIRE" "never")) (let* ((key-file (expand-file-name key-file)) (proc (make-process :name "ssh-add"