about summary refs log tree commit diff
path: root/pkgs/tools/security/monkeysphere
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2019-01-28 16:09:24 +0100
committerMichael Weiss <dev.primeos@gmail.com>2019-01-28 16:18:39 +0100
commit829d105b586cc4643e7207e1fbf066431577e3f1 (patch)
tree81611f2ce5dff8f89f315b18902918072b71e62d /pkgs/tools/security/monkeysphere
parent719b7dcfb1605002b80ff8b2df9da3d0a0edb736 (diff)
downloadnixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar.gz
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar.bz2
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar.lz
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar.xz
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.tar.zst
nixlib-829d105b586cc4643e7207e1fbf066431577e3f1.zip
monkeysphere: Fix the Ed25519 tests
The Ed25519 test was failing inside of the sandbox because /dev/tty is
not available:
### generating ed25519 key for testuser...
gpg: cannot open '/dev/tty': No such device or address
FAILED!
Diffstat (limited to 'pkgs/tools/security/monkeysphere')
-rw-r--r--pkgs/tools/security/monkeysphere/monkeysphere.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/security/monkeysphere/monkeysphere.patch b/pkgs/tools/security/monkeysphere/monkeysphere.patch
index fdf4b9335b19..0a05635d6a80 100644
--- a/pkgs/tools/security/monkeysphere/monkeysphere.patch
+++ b/pkgs/tools/security/monkeysphere/monkeysphere.patch
@@ -28,5 +28,17 @@ diff --git a/src/share/keytrans b/src/share/keytrans
  
  # keytrans: this is an RSA key translation utility; it is capable of
  # transforming RSA keys (both public keys and secret keys) between
+diff --git a/tests/basic b/tests/basic
+--- a/tests/basic
++++ b/tests/basic
+@@ -343,7 +340,7 @@ if [ "$MONKEYSPHERE_TEST_USE_ED25519" = true ]; then
+     echo "### generating ed25519 key for testuser..."
+     # from the imported secret key
+     USER_FPR=8A4B353B4CBA6F30625498BAE00B5EEEBA79B482
+-    gpg --quick-add-key "$USER_FPR" ed25519 auth 2d
++    gpg --no-tty --quick-add-key "$USER_FPR" ed25519 auth 2d
+ else
+     echo "### generating standard monkeysphere key for testuser..."
+     monkeysphere gen-subkey
 -- 
 2.16.3