Coverage Report

Created: 2025-03-18 06:55

/src/gnutls/lib/minitasn1/element.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (C) 2000-2025 Free Software Foundation, Inc.
3
 *
4
 * This file is part of LIBTASN1.
5
 *
6
 * The LIBTASN1 library is free software; you can redistribute it
7
 * and/or modify it under the terms of the GNU Lesser General Public
8
 * License as published by the Free Software Foundation; either
9
 * version 2.1 of the License, or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful, but
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 * Lesser General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library; if not, see
18
 * <https://www.gnu.org/licenses/>.
19
 */
20
21
#ifndef _ELEMENT_H
22
# define _ELEMENT_H
23
24
25
struct node_tail_cache_st
26
{
27
  asn1_node head;   /* the first element of the sequence */
28
  asn1_node tail;
29
};
30
31
int _asn1_append_sequence_set (asn1_node node,
32
             struct node_tail_cache_st *pcached);
33
34
int _asn1_convert_integer (const unsigned char *value,
35
         unsigned char *value_out,
36
         int value_out_size, int *len);
37
38
void _asn1_hierarchical_name (asn1_node_const node, char *name,
39
            int name_size);
40
41
static inline asn1_node_const
42
_asn1_node_array_get (const struct asn1_node_array_st *array, size_t position)
43
0
{
44
0
  return position < array->size ? array->nodes[position] : NULL;
45
0
}
Unexecuted instantiation: coding.c:_asn1_node_array_get
Unexecuted instantiation: decoding.c:_asn1_node_array_get
Unexecuted instantiation: element.c:_asn1_node_array_get
Unexecuted instantiation: parser_aux.c:_asn1_node_array_get
Unexecuted instantiation: structure.c:_asn1_node_array_get
46
47
int
48
_asn1_node_array_set (struct asn1_node_array_st *array, size_t position,
49
          asn1_node node);
50
51
#endif