1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* ISC license. */ #include <bearssl.h> #include <s6-networking/sbearssl.h> size_t sbearssl_x500_name_len (sbearssl_ta const *sta, size_t n) { size_t total = 0 ; while (n--) { total += sta->dnlen ; sta++ ; } return total ; }