aboutsummaryrefslogtreecommitdiffstats
path: root/agent/preset-passphrase.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2006-08-16 10:47:53 +0000
committerWerner Koch <[email protected]>2006-08-16 10:47:53 +0000
commitb744f963d7061ce55d2eed65b281298476e54fb7 (patch)
tree6e8ccb3c39a45c16b4ca6cdb2273eb3b8bc2a888 /agent/preset-passphrase.c
parentChanged HTTP API. (diff)
downloadgnupg-b744f963d7061ce55d2eed65b281298476e54fb7.tar.gz
gnupg-b744f963d7061ce55d2eed65b281298476e54fb7.zip
With --enable-gpg the keyservers are now build and a first test using gpg2
shows no prblems. Needs more testing of course.
Diffstat (limited to 'agent/preset-passphrase.c')
-rw-r--r--agent/preset-passphrase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/agent/preset-passphrase.c b/agent/preset-passphrase.c
index f876b0647..8f8f60e76 100644
--- a/agent/preset-passphrase.c
+++ b/agent/preset-passphrase.c
@@ -152,8 +152,8 @@ map_spwq_error (int err)
}
-/* Percent-Escape special characters. The string is valid until the
- next invocation of the function. */
+/* Convert the string SRC into HEX encoding. Caller needs to xfree
+ the returned string. */
static char *
make_hexstring (const char *src)
{
@@ -161,7 +161,7 @@ make_hexstring (const char *src)
char *dst;
char *res;
- res = dst = malloc (len);
+ res = dst = xtrymalloc (len);
if (!dst)
{
log_error ("can not escape string: %s\n",
@@ -225,7 +225,7 @@ preset_passphrase (const char *keygrip)
rc = asprintf (&line, "PRESET_PASSPHRASE %s -1 %s\n", keygrip,
passphrase_esc);
wipememory (passphrase_esc, strlen (passphrase_esc));
- free (passphrase_esc);
+ xfree (passphrase_esc);
if (rc < 0)
{