chiark / gitweb /
keys.new-keeper: Don't try to create $SAFE/keys.keeper if it exists.
[distorted-keys] / keyfunc.sh.in
index 952a09560b3e1de9d4ddb44688d22650ff4a4bc7..02bc10dd8af0d70e94ccb985cdf3906348e2997e 100644 (file)
@@ -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; }