summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_cert_to.c
blob: af7ad4cce700a05b8edb6429ba5ca4097a1f5368 (plain)
1
2
3
4
5
6
7
8
9
/* ISC license. */

#include <s6-networking/sbearssl.h>

void sbearssl_cert_to (sbearssl_cert const *sc, br_x509_certificate *bc, char *s)
{
  bc->data = (unsigned char *)s + sc->data ;
  bc->data_len = sc->datalen ;
}