2 * Copyright (c) 2018 Yubico AB. All rights reserved.
3 * Use of this source code is governed by a BSD-style
4 * license that can be found in the LICENSE file.
15 #endif /* __cplusplus */
17 typedef struct fido_blob {
22 typedef struct fido_blob_array {
27 cbor_item_t *fido_blob_encode(const fido_blob_t *);
28 fido_blob_t *fido_blob_new(void);
29 int fido_blob_decode(const cbor_item_t *, fido_blob_t *);
30 int fido_blob_is_empty(const fido_blob_t *);
31 int fido_blob_set(fido_blob_t *, const u_char *, size_t);
32 int fido_blob_append(fido_blob_t *, const u_char *, size_t);
33 void fido_blob_free(fido_blob_t **);
34 void fido_blob_reset(fido_blob_t *);
35 void fido_free_blob_array(fido_blob_array_t *);
39 #endif /* __cplusplus */