src/asn1_helper.h
branchkeysync
changeset 1116 c9a03f2423c1
child 1513 e7f7e42385b5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/asn1_helper.h	Thu Sep 01 22:47:08 2016 +0200
     1.3 @@ -0,0 +1,13 @@
     1.4 +#pragma once
     1.5 +
     1.6 +#include <string.h>
     1.7 +
     1.8 +typedef struct growing_buf {
     1.9 +    char *data;
    1.10 +    size_t size;
    1.11 +} growing_buf_t;
    1.12 +
    1.13 +growing_buf_t *new_growing_buf(void);
    1.14 +void free_growing_buf(growing_buf_t *buf);
    1.15 +int consume_bytes(const void *src, size_t size, growing_buf_t *dst);
    1.16 +