diff options
Diffstat (limited to 'src/sbearssl/sbearssl_append.c')
-rw-r--r-- | src/sbearssl/sbearssl_append.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sbearssl/sbearssl_append.c b/src/sbearssl/sbearssl_append.c new file mode 100644 index 0000000..d0a6d64 --- /dev/null +++ b/src/sbearssl/sbearssl_append.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#include <sys/types.h> +#include <errno.h> +#include <skalibs/stralloc.h> +#include "sbearssl-internal.h> + +void sbearssl_append (void *stuff, void const *src, size_t len) +{ + sbearssl_strallocerr *blah = stuff ; + blah->err = stralloc_catb(blah->sa, (char const *)src, len) ? 0 : errno ; +} |