summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_cert_readbigpem.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 19:39:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-03-12 19:39:01 +0000
commit53091e3bce487ee82e2805a0231e780551561717 (patch)
treef0fa36ff8eadaf1f01d4510597b5e3a310764dc7 /src/sbearssl/sbearssl_cert_readbigpem.c
parentf85b8a70f3b44510a5cf3895bf7357ae90655f65 (diff)
downloads6-networking-53091e3bce487ee82e2805a0231e780551561717.tar.xz
Adapt to skalibs-2.5.0.0
Diffstat (limited to 'src/sbearssl/sbearssl_cert_readbigpem.c')
-rw-r--r--src/sbearssl/sbearssl_cert_readbigpem.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sbearssl/sbearssl_cert_readbigpem.c b/src/sbearssl/sbearssl_cert_readbigpem.c
index d09c997..9df5ebd 100644
--- a/src/sbearssl/sbearssl_cert_readbigpem.c
+++ b/src/sbearssl/sbearssl_cert_readbigpem.c
@@ -1,9 +1,8 @@
/* ISC license. */
-#include <sys/types.h>
+#include <string.h>
#include <errno.h>
#include <bearssl.h>
-#include <skalibs/bytestr.h>
#include <skalibs/buffer.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
@@ -33,8 +32,8 @@ int sbearssl_cert_readbigpem (char const *fn, genalloc *certs, stralloc *sa)
for (; i < n ; i++)
{
char const *name = sa->s + p[i].name ;
- if (!str_diff(name, "CERTIFICATE")
- || !str_diff(name, "X509 CERTIFICATE"))
+ if (!strcmp(name, "CERTIFICATE")
+ || !strcmp(name, "X509 CERTIFICATE"))
{
sbearssl_cert sc = { .data = p[i].data, .datalen = p[i].datalen } ;
if (!genalloc_append(sbearssl_cert, certs, &sc)) goto fail ;