test annex.shared-sop-command
Test a specified Stateless OpenPGP command with eg: git-annex test --test-git-config annex.shared-sop-command=sqop Also documented that config and another one, but so far only the test suite uses the configs, have not yet implemented using it for actual symmetric encryption. Sponsored-by: Joshua Antonishen on Patreon
This commit is contained in:
parent
812cbf0e17
commit
d98f02a5b0
7 changed files with 68 additions and 5 deletions
|
@ -9,6 +9,10 @@
|
|||
|
||||
module Utility.StatelessOpenPGP (
|
||||
SopCmd(..),
|
||||
SopSubCmd,
|
||||
Password,
|
||||
Profile,
|
||||
Armoring(..),
|
||||
encryptSymmetric,
|
||||
decryptSymmetric,
|
||||
test_encrypt_decrypt_Symmetric,
|
||||
|
@ -98,7 +102,7 @@ decryptSymmetric sopcmd password emptydirectory feeder reader =
|
|||
|
||||
{- Test a value round-trips through symmetric encryption and decryption. -}
|
||||
test_encrypt_decrypt_Symmetric :: SopCmd -> SopCmd -> Password -> Armoring -> B.ByteString -> IO Bool
|
||||
test_encrypt_decrypt_Symmetric a b password armoring v =
|
||||
test_encrypt_decrypt_Symmetric a b password armoring v = catchBoolIO $
|
||||
withTmpDir "test" $ \d -> do
|
||||
let ed = EmptyDirectory d
|
||||
enc <- encryptSymmetric a password ed Nothing armoring
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue