aboutsummaryrefslogtreecommitdiffstats
path: root/common/Makefile.am
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-26 22:10:38 +0000
committerWerner Koch <[email protected]>2019-01-26 22:10:38 +0000
commitec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1 (patch)
tree33ad3af6094e2a64625772e0f60104e48e8b917e /common/Makefile.am
parentscd: Improve app selection for app "undefined". (diff)
downloadgnupg-ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1.tar.gz
gnupg-ec13b1c562e34c0fcbc7b848ab6dc187b79cf2c1.zip
gpg: Move S2K encoding function to a shared file.
* g10/passphrase.c (encode_s2k_iterations): Move function to ... * common/openpgp-s2k.c: new file. Remove default intialization code. * common/openpgpdefs.h (S2K_DECODE_COUNT): New to keep only one copy. * g10/call-agent.c (agent_get_s2k_count): Change to return the count and print an error. * agent/protect.c: Include openpgpdefs.h * g10/card-util.c (gen_kdf_data): Adjust for changes * g10/gpgcompose.c: Include call-agent.h. (sk_esk): Adjust for changes. * g10/passphrase (passphrase_to_dek): Adjust for changes. * g10/main.h (S2K_DECODE_COUNT): Remove macro. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/Makefile.am')
-rw-r--r--common/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index d288fa36b..b6a6605f1 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -83,7 +83,7 @@ common_sources = \
localename.c \
session-env.c session-env.h \
userids.c userids.h \
- openpgp-oid.c \
+ openpgp-oid.c openpgp-s2k.c \
ssh-utils.c ssh-utils.h \
agent-opt.c \
helpfile.c \