diff options
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -7,6 +7,13 @@ | |||
7 | #ifndef _BLOB_H | 7 | #ifndef _BLOB_H |
8 | #define _BLOB_H | 8 | #define _BLOB_H |
9 | 9 | ||
10 | #include <cbor.h> | ||
11 | #include <stdlib.h> | ||
12 | |||
13 | #ifdef __cplusplus | ||
14 | extern "C" { | ||
15 | #endif /* __cplusplus */ | ||
16 | |||
10 | typedef struct fido_blob { | 17 | typedef struct fido_blob { |
11 | unsigned char *ptr; | 18 | unsigned char *ptr; |
12 | size_t len; | 19 | size_t len; |
@@ -25,4 +32,8 @@ int fido_blob_set(fido_blob_t *, const unsigned char *, size_t); | |||
25 | void fido_blob_free(fido_blob_t **); | 32 | void fido_blob_free(fido_blob_t **); |
26 | void fido_free_blob_array(fido_blob_array_t *); | 33 | void fido_free_blob_array(fido_blob_array_t *); |
27 | 34 | ||
35 | #ifdef __cplusplus | ||
36 | } /* extern "C" */ | ||
37 | #endif /* __cplusplus */ | ||
38 | |||
28 | #endif /* !_BLOB_H */ | 39 | #endif /* !_BLOB_H */ |