src/asn1_helper.h
author Volker Birk <vb@pep.foundation>
Thu, 01 Sep 2016 22:47:08 +0200
branchkeysync
changeset 1116 c9a03f2423c1
child 1513 e7f7e42385b5
permissions -rw-r--r--
decode_sync_msg() for debugging
     1 #pragma once
     2 
     3 #include <string.h>
     4 
     5 typedef struct growing_buf {
     6     char *data;
     7     size_t size;
     8 } growing_buf_t;
     9 
    10 growing_buf_t *new_growing_buf(void);
    11 void free_growing_buf(growing_buf_t *buf);
    12 int consume_bytes(const void *src, size_t size, growing_buf_t *dst);
    13