summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-12-14 10:33:27 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-12-14 10:33:27 +0000
commit399086d947bc2999fa2d93f47a08c5ccba024197 (patch)
treee2aac443f288e2bc06a473162734291dc6e31d4d /src
parenta91ae3a6942d22160e1a1a9a351370a5191309b6 (diff)
downloads6-networking-399086d947bc2999fa2d93f47a08c5ccba024197.tar.xz
sbearssl: follow API change for br_x590_trust_anchor
Diffstat (limited to 'src')
-rw-r--r--src/sbearssl/sbearssl_ta_from.c4
-rw-r--r--src/sbearssl/sbearssl_ta_to.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sbearssl/sbearssl_ta_from.c b/src/sbearssl/sbearssl_ta_from.c
index 001b958..1b4baca 100644
--- a/src/sbearssl/sbearssl_ta_from.c
+++ b/src/sbearssl/sbearssl_ta_from.c
@@ -9,8 +9,8 @@ int sbearssl_ta_from (sbearssl_ta *l, br_x509_trust_anchor const *k, stralloc *s
{
size_t sabase = sa->len ;
int sawasnull = !sa->s ;
- sbearssl_ta ta = { .dn = sa->len, .dnlen = k->dn_len, .flags = k->flags } ;
- if (!stralloc_catb(sa, (char const *)k->dn, k->dn_len)) return 0 ;
+ sbearssl_ta ta = { .dn = sa->len, .dnlen = k->dn.len, .flags = k->flags } ;
+ if (!stralloc_catb(sa, (char const *)k->dn.data, k->dn.len)) return 0 ;
if (!sbearssl_pkey_from(&ta.pkey, &k->pkey, sa)) goto fail ;
*l = ta ;
return 1 ;
diff --git a/src/sbearssl/sbearssl_ta_to.c b/src/sbearssl/sbearssl_ta_to.c
index 8c37119..8c16ce7 100644
--- a/src/sbearssl/sbearssl_ta_to.c
+++ b/src/sbearssl/sbearssl_ta_to.c
@@ -5,8 +5,8 @@
void sbearssl_ta_to (sbearssl_ta const *sta, br_x509_trust_anchor *bta, char *s)
{
- bta->dn = (unsigned char *)s + sta->dn ;
- bta->dn_len = sta->dnlen ;
+ bta->dn.data = (unsigned char *)s + sta->dn ;
+ bta->dn.len = sta->dnlen ;
bta->flags = sta->flags ;
sbearssl_pkey_to(&sta->pkey, &bta->pkey, s) ;
}