summaryrefslogtreecommitdiffstats
path: root/fmt_asn1transparent.c
blob: d0ccd41b319b662cd24e04cabe0dcc72d4ed55f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "asn1.h"
#include <byte.h>

size_t fmt_asn1transparent(char* dest,enum asn1_tagclass tc,enum asn1_tagtype tt,enum asn1_tag tag,size_t l) {
  size_t len,tmp;
  /* first the tag */
  len=fmt_asn1tag(dest,tc,tt,tag);
  tmp=fmt_asn1length(dest?dest+len:dest,l);
  return tmp+len;
}