summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_x500_name_len.c
blob: a3a31679af3384957c1a95dff68b06d3e49a059a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* ISC license. */

#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 ;
}