Lines Matching refs:asn1buf

32  *    an asn1buf around a krb5_data structure.
38 * Programs should use just pointers to asn1buf's (e.g. asn1buf *mybuf).
39 * These pointers must always point to a valid, allocated asn1buf
42 * The contents of the asn1buf represent an octet string. This string
44 * If next == base or mybuf == NULL, then the asn1buf represents an empty
51 * Pointers to asn1buf's must always point to a valid, allocated
52 * asn1buf structure or be NULL.
63 #include "asn1buf.h"
78 static unsigned int asn1buf_free(const asn1buf *);
79 static asn1_error_code asn1buf_ensure_space(asn1buf *, unsigned int);
80 static asn1_error_code asn1buf_expand(asn1buf *, unsigned int);
87 asn1buf_create(asn1buf **buf)
89 *buf = (asn1buf*)malloc(sizeof(asn1buf));
98 asn1buf_wrap_data(asn1buf *buf, const krb5_data *code)
107 asn1buf_imbed(asn1buf *subbuf, const asn1buf *buf, const unsigned int length, const int indef)
120 asn1buf_sync(asn1buf *buf, asn1buf *subbuf,
141 asn1buf_skiptail(asn1buf *buf, const unsigned int length, const int indef)
174 asn1buf_destroy(asn1buf **buf)
187 asn1buf_insert_octet(asn1buf *buf, const int o)
199 asn1buf_insert_bytestring(asn1buf *buf, const unsigned int len, const void *sv)
215 asn1_error_code asn1buf_remove_octet(asn1buf *buf, asn1_octet *o)
223 asn1buf_remove_octetstring(asn1buf *buf, const unsigned int len, asn1_octet **s)
243 asn1buf_remove_charstring(asn1buf *buf, const unsigned int len, char **s)
262 asn1buf_remains(asn1buf *buf, int indef)
277 asn12krb5_buf(const asn1buf *buf, krb5_data **code)
310 asn1buf_unparse(const asn1buf *buf, char **s)
333 asn1buf_hex_unparse(const asn1buf *buf, char **s)
367 asn1buf_size(const asn1buf *buf)
375 asn1buf_free(const asn1buf *buf)
383 asn1buf_ensure_space(asn1buf *buf, const unsigned int amount)
392 asn1buf_expand(asn1buf *buf, unsigned int inc)
420 asn1buf_len(const asn1buf *buf)