X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/distorted-keys/blobdiff_plain/865fd3f4cc56e190fe18e69bc1583a0c3ba60176..bd23280ceb4022899a37622ab8052359e71c54e5:/keyfunc.sh.in diff --git a/keyfunc.sh.in b/keyfunc.sh.in index 952a095..02bc10d 100644 --- a/keyfunc.sh.in +++ b/keyfunc.sh.in @@ -322,6 +322,7 @@ nubid () { ## to demonstrate the same idiocy as GNU mumblesum. set _ $({ echo "distorted-keys nubid"; cat -; } | openssl dgst -${kprop_nubid_hash-sha256}) + if [ $# -gt 2 ]; then shift; fi echo $2 } @@ -461,6 +462,7 @@ c_verify () { k_verify "$@"; } ## Stub implementations. notsupp () { op=$1; echo >&2 "$quis: operation \`$op' not supported"; } k_info () { :; } +k_import () { :; } k_encrypt () { notsupp encrypt; } k_decrypt () { notsupp decrypt; } k_sign () { notsupp sign; }