summaryrefslogtreecommitdiff
path: root/imap/src/c-client/http.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2022-08-27 22:08:12 -0600
committerEduardo Chappa <chappa@washington.edu>2022-08-27 22:08:12 -0600
commita76c9cd40a3e6140d3f562de375d2299fd9865af (patch)
tree098a53e2b1a48fb2842e07820a32fceb5989aa73 /imap/src/c-client/http.c
parent701aebc00aff0585ce6c96653714e4ba94834c9c (diff)
downloadalpine-a76c9cd40a3e6140d3f562de375d2299fd9865af.tar.xz
* Addition of a first attempt to transform a json structure into a
string.
Diffstat (limited to 'imap/src/c-client/http.c')
-rw-r--r--imap/src/c-client/http.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/imap/src/c-client/http.c b/imap/src/c-client/http.c
index d291c975..04ae0c09 100644
--- a/imap/src/c-client/http.c
+++ b/imap/src/c-client/http.c
@@ -88,7 +88,6 @@ typedef struct http_header_data_s {
HTTP_STATUS_S *http_status_line_get(unsigned char *);
void http_status_line_free(HTTP_STATUS_S **);
void http_header_free(HTTP_HEADER_DATA_S **);
-void buffer_add(unsigned char **, unsigned char *);
unsigned char *hex_escape_url_part(unsigned char *, unsigned char *);
unsigned char *encode_url_body_part(unsigned char *, unsigned char *);
@@ -771,19 +770,6 @@ http_add_header(HTTP_REQUEST_S **reqp, unsigned char *name, unsigned char *value
}
void
-buffer_add(unsigned char **bufp, unsigned char *text)
-{
- int len;
-
- if(!bufp || !text || !*text) return;
-
- len = *bufp ? strlen(*bufp) : 0;
- fs_resize((void **) bufp, (len + strlen(text) + 1)*sizeof(char));
- (*bufp)[len] = '\0';
- strcat(*bufp, text);
-}
-
-void
http_add_body(HTTP_REQUEST_S **reqp, unsigned char *text)
{
if(!reqp) return;