summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_append.c
blob: ae4aac067d2eec36dbdeea11dad0e98f37438655 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 ;
}