src/asn1_helper.h
author Krista Bennett <krista@pep-project.org>
Wed, 15 Mar 2017 18:02:46 +0100
changeset 1674 5639f969866a
parent 1513 e7f7e42385b5
permissions -rw-r--r--
Added pgp_encrypt_only stubs for NetPGP
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