src/asn1_helper.h
author Krista Bennett <krista@pep-project.org>
Tue, 01 Aug 2017 16:40:24 +0200
branchmessage-2.0
changeset 1979 3d0a778d035a
parent 1513 e7f7e42385b5
permissions -rw-r--r--
Changed name to ENGINE-214 for JIRA tracking - please use that branch instead.
vb@1513
     1
// This file is under GNU General Public License 3.0
vb@1513
     2
// see LICENSE.txt
vb@1513
     3
vb@1116
     4
#pragma once
vb@1116
     5
vb@1116
     6
#include <string.h>
vb@1116
     7
vb@1116
     8
typedef struct growing_buf {
vb@1116
     9
    char *data;
vb@1116
    10
    size_t size;
vb@1116
    11
} growing_buf_t;
vb@1116
    12
vb@1116
    13
growing_buf_t *new_growing_buf(void);
vb@1116
    14
void free_growing_buf(growing_buf_t *buf);
vb@1116
    15
int consume_bytes(const void *src, size_t size, growing_buf_t *dst);
vb@1116
    16