summaryrefslogtreecommitdiff
path: root/src/sbearssl/sbearssl_x500_name_len.c
blob: 02bc9d7b6cc6255068e7d7c94c75b38d723c7365 (plain)
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 ;
}