external: SETCREDS include creds in externalConfigChanges

This makes the creds get saved, since only things recorded there will be
saved.

IIRC, unparsedRemoteConfig was not originally available when I
implemented this; now that it is things get a bit simpler.

More could probably be simplified, is externalConfigChanges needed at
all?

This does not entirely fix the bugs though, because creds are only
embedded when embedcreds=yes, but not when encryption=pubkey is used
without embedcreds=yes.
This commit is contained in:
Joey Hess 2020-06-16 17:24:24 -04:00
parent 9fb549b3f1
commit a1d4c8e4ec
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 40 additions and 19 deletions

View file

@ -36,6 +36,7 @@ data EncryptionMethod
-- XXX ideally, this would be a locked memory region
data Cipher = Cipher String | MacOnlyCipher String
deriving (Show) -- XXXDO NOT COMMIT
data StorableCipher
= EncryptedCipher String EncryptedCipherVariant KeyIds