aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr/misc.h')
-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 */