From bbf612262c55e010702d06c6dcd49f00ee5fb595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Tue, 7 Mar 2023 18:13:22 +0100 Subject: [PATCH] add commented new feature --- functions.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/functions.sh b/functions.sh index 1140aa2..fb6e49f 100755 --- a/functions.sh +++ b/functions.sh @@ -22,6 +22,32 @@ promptcommandmunge () { } function _pkcs11module_hook() { + +# if [ -S ~/.ssh/ssh_from_remote_auth_sock ] +# then +# if ss -elx|grep -q $(readlink -f ~/.ssh/ssh_from_remote_auth_sok) # test if socket is active +# then +# # Use PKCS11_MODULE from remote connection, even when using local machine +# # This is for: When i'm logged in from remote and working on local workstation, so i can use the token locally too +# #echo "read p11m" >&2 +# if [ -e ~/.ssh/p11m ] +# then +# . ~/.ssh/p11m +# else +# rm ~/.ssh/p11m +# unset P11M +# unset PKCS11_MODULE +# fi +# fi +# else +# #echo "NOT read p11m, delete it!" >&2 +# [ -e ~/.ssh/p11m ] && { rm ~/.ssh/p11m; \ +# unset P11M; \ +# unset PKCS11_MODULE; \ +# } +# +# fi + if [ -z "${PKCS11_MODULE:+x}" ] then # setze PKCS11_MODULE