aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/misc.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-03-13 12:42:00 +0000
committerNeal H. Walfield <[email protected]>2015-03-23 18:58:27 +0000
commit63552852bf191985b4b55aa524bc397c5b1d1515 (patch)
treeeac05933fc60983e828b3221e9e0308b05fe4f56 /dirmngr/misc.h
parentAdd new LDAP utility functions. (diff)
downloadgnupg-63552852bf191985b4b55aa524bc397c5b1d1515.tar.gz
gnupg-63552852bf191985b4b55aa524bc397c5b1d1515.zip
Move armor_data to misc.c.
* dirmngr/ks-engine-hkp.c (armor_data): Move function from here... * dirmngr/misc.c (armor_data): ... to here and drop static qualifier. * dirmngr/misc.h: New declaration. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r--dirmngr/misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dirmngr/misc.h b/dirmngr/misc.h
index 2dc298557..e98b79162 100644
--- a/dirmngr/misc.h
+++ b/dirmngr/misc.h
@@ -80,6 +80,10 @@ char *host_and_port_from_url (const char *url, int *port);
/* Create a KSBA reader object and connect it to the estream FP. */
gpg_error_t create_estream_ksba_reader (ksba_reader_t *r_reader, estream_t fp);
+/* Encode the binary data in {DATA,DATALEN} as ASCII-armored data and
+ stored it as a NUL-terminated string in *R_STRING. The caller is
+ responsible for freeing *R_STRING. */
+gpg_error_t armor_data (char **r_string, const void *data, size_t datalen);
#endif /* MISC_H */