summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_ta_from.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbearssl/sbearssl_ta_from.c')
-rw-r--r--src/sbearssl/sbearssl_ta_from.c4
1 files changed, 2 insertions, 2 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 ;