This file is indexed.

/usr/include/openct/tlv.h is in libopenct1-dev 0.6.20-1.2ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
 * Handle TLV encoded data
 *
 * Copyright (C) 2003, Olaf Kirch <okir@suse.de>
 */

#ifndef OPENCT_TLV_H
#define OPENCT_TLV_H

#ifdef __cplusplus
extern "C" {
#endif

#include <openct/protocol.h>
#include <openct/buffer.h>

typedef unsigned char	ifd_tag_t;

typedef struct ct_tlv_parser {
	unsigned char	use_large_tags;
	unsigned char *	val[256];
	unsigned int	len[256];
} ct_tlv_parser_t;

typedef struct ct_tlv_builder {
	int		error;
	unsigned char	use_large_tags;
	ct_buf_t *	buf;
	unsigned int	len;
	unsigned char *	lenp;
} ct_tlv_builder_t;

extern int	ct_tlv_parse(ct_tlv_parser_t *, ct_buf_t *);
/* ct_tlv_get return 0 == not there, 1 == there */
extern int	ct_tlv_get_int(ct_tlv_parser_t *,
				ifd_tag_t, unsigned int *);
extern int	ct_tlv_get_string(ct_tlv_parser_t *,
				ifd_tag_t, char *, size_t);
extern int	ct_tlv_get_opaque(ct_tlv_parser_t *,
				ifd_tag_t, unsigned char **, size_t *);
/* or number of bytes */
extern int	ct_tlv_get_bytes(ct_tlv_parser_t *,
				ifd_tag_t, void *, size_t);

extern void	ct_tlv_builder_init(ct_tlv_builder_t *, ct_buf_t *, int);
extern void	ct_tlv_put_int(ct_tlv_builder_t *,
				ifd_tag_t, unsigned int);
extern void	ct_tlv_put_string(ct_tlv_builder_t *,
				ifd_tag_t, const char *);
extern void	ct_tlv_put_opaque(ct_tlv_builder_t *, ifd_tag_t,
				const unsigned char *, size_t);
extern void	ct_tlv_put_tag(ct_tlv_builder_t *, ifd_tag_t);
extern void	ct_tlv_add_byte(ct_tlv_builder_t *, unsigned char);
extern void	ct_tlv_add_bytes(ct_tlv_builder_t *,
				const unsigned char *, size_t);

#ifdef __cplusplus
}
#endif

#endif /* OPENCT_TLV_H */