diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-02 02:31:16 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-06-02 02:31:16 +0200 |
commit | def38f4b38b1b7dc90d8f8decbc44fe4742928ff (patch) | |
tree | 49ca342892b7087d749a911f6c7fe58f05a5d447 /ymir/mlmmj-expose.nix | |
parent | 90035219714b770c810766630f561aa7ba5519b7 (diff) | |
download | nixos-def38f4b38b1b7dc90d8f8decbc44fe4742928ff.tar nixos-def38f4b38b1b7dc90d8f8decbc44fe4742928ff.tar.gz nixos-def38f4b38b1b7dc90d8f8decbc44fe4742928ff.tar.bz2 nixos-def38f4b38b1b7dc90d8f8decbc44fe4742928ff.tar.xz nixos-def38f4b38b1b7dc90d8f8decbc44fe4742928ff.zip |
base64 encode
Diffstat (limited to 'ymir/mlmmj-expose.nix')
-rw-r--r-- | ymir/mlmmj-expose.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ymir/mlmmj-expose.nix b/ymir/mlmmj-expose.nix index a69c6bb2..6b22bea5 100644 --- a/ymir/mlmmj-expose.nix +++ b/ymir/mlmmj-expose.nix | |||
@@ -68,7 +68,7 @@ let | |||
68 | unless (ident `elem` identities) . die $ "Unknown sender: ‘" ++ ident ++ "’" | 68 | unless (ident `elem` identities) . die $ "Unknown sender: ‘" ++ ident ++ "’" |
69 | subscribers <- getSubscribers | 69 | subscribers <- getSubscribers |
70 | unless (recipient `elem` subscribers) . die $ "Unknown recipient: ‘" ++ recipient ++ "’" | 70 | unless (recipient `elem` subscribers) . die $ "Unknown recipient: ‘" ++ recipient ++ "’" |
71 | encryptMsg CBC key (CLBS.pack . show $ (ident, recipient)) >>= CLBS.putStrLn | 71 | encryptMsg CBC key (CLBS.pack . show $ (ident, recipient)) >>= CBS.putStrLn . Base64.encode |
72 | _ -> hPutStrLn stderr ("Called without expected arguments (<listDirectory> <senderIdentity> <recipient>)") >> exitWith (ExitFailure 2) | 72 | _ -> hPutStrLn stderr ("Called without expected arguments (<listDirectory> <senderIdentity> <recipient>)") >> exitWith (ExitFailure 2) |
73 | _ -> hPutStrLn stderr ("Called under unsupported name ‘" ++ progName ++ "’") >> exitWith (ExitFailure 2) | 73 | _ -> hPutStrLn stderr ("Called under unsupported name ‘" ++ progName ++ "’") >> exitWith (ExitFailure 2) |
74 | 74 | ||