From 63552852bf191985b4b55aa524bc397c5b1d1515 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Fri, 13 Mar 2015 13:42:00 +0100 Subject: 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 --- dirmngr/misc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dirmngr/misc.h') 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 */ -- cgit v1.2.3