This file is indexed.

/usr/include/snacc/c/asn-useful.h is in libsnacc-dev 1.3.1-7build1.

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
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
/*
 *    asn-useful.h
 *
 *    "ASN-USEFUL" ASN.1 module C type definitions and prototypes
 *
 *    This .h file was generated by snacc on Tue Feb 20 07:41:04 2018
 *
 *    UBC snacc written compiler by Mike Sample
 *
 *    NOTE: This is a machine generated file--editing not recommended
 */


#ifndef _asn_useful_h_
#define _asn_useful_h_




typedef AsnOcts ObjectDescriptor; /* [UNIVERSAL 7] IMPLICIT OCTET STRING */

#define BEncObjectDescriptorContent BEncAsnOctsContent

#define BDecObjectDescriptorContent BDecAsnOctsContent

#define PrintObjectDescriptor PrintAsnOcts

#define FreeObjectDescriptor FreeAsnOcts 




typedef AsnOcts NumericString; /* [UNIVERSAL 18] IMPLICIT OCTET STRING */

AsnLen BEncNumericString PROTO ((BUF_TYPE b, NumericString *v));

void BDecNumericString PROTO ((BUF_TYPE b, NumericString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncNumericStringContent BEncAsnOctsContent

#define BDecNumericStringContent BDecAsnOctsContent

#define PrintNumericString PrintAsnOcts

#define FreeNumericString FreeAsnOcts 




typedef AsnOcts PrintableString; /* [UNIVERSAL 19] IMPLICIT OCTET STRING */

AsnLen BEncPrintableString PROTO ((BUF_TYPE b, PrintableString *v));

void BDecPrintableString PROTO ((BUF_TYPE b, PrintableString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncPrintableStringContent BEncAsnOctsContent

#define BDecPrintableStringContent BDecAsnOctsContent

#define PrintPrintableString PrintAsnOcts

#define FreePrintableString FreeAsnOcts 




typedef AsnOcts TeletexString; /* [UNIVERSAL 20] IMPLICIT OCTET STRING */

AsnLen BEncTeletexString PROTO ((BUF_TYPE b, TeletexString *v));

void BDecTeletexString PROTO ((BUF_TYPE b, TeletexString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncTeletexStringContent BEncAsnOctsContent

#define BDecTeletexStringContent BDecAsnOctsContent

#define PrintTeletexString PrintAsnOcts

#define FreeTeletexString FreeAsnOcts 




typedef AsnOcts T61String; /* [UNIVERSAL 20] IMPLICIT OCTET STRING */

AsnLen BEncT61String PROTO ((BUF_TYPE b, T61String *v));

void BDecT61String PROTO ((BUF_TYPE b, T61String *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncT61StringContent BEncAsnOctsContent

#define BDecT61StringContent BDecAsnOctsContent

#define PrintT61String PrintAsnOcts

#define FreeT61String FreeAsnOcts 




typedef AsnOcts VideotexString; /* [UNIVERSAL 21] IMPLICIT OCTET STRING */

AsnLen BEncVideotexString PROTO ((BUF_TYPE b, VideotexString *v));

void BDecVideotexString PROTO ((BUF_TYPE b, VideotexString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncVideotexStringContent BEncAsnOctsContent

#define BDecVideotexStringContent BDecAsnOctsContent

#define PrintVideotexString PrintAsnOcts

#define FreeVideotexString FreeAsnOcts 




typedef AsnOcts IA5String; /* [UNIVERSAL 22] IMPLICIT OCTET STRING */

AsnLen BEncIA5String PROTO ((BUF_TYPE b, IA5String *v));

void BDecIA5String PROTO ((BUF_TYPE b, IA5String *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncIA5StringContent BEncAsnOctsContent

#define BDecIA5StringContent BDecAsnOctsContent

#define PrintIA5String PrintAsnOcts

#define FreeIA5String FreeAsnOcts 




typedef AsnOcts GraphicString; /* [UNIVERSAL 25] IMPLICIT OCTET STRING */

AsnLen BEncGraphicString PROTO ((BUF_TYPE b, GraphicString *v));

void BDecGraphicString PROTO ((BUF_TYPE b, GraphicString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncGraphicStringContent BEncAsnOctsContent

#define BDecGraphicStringContent BDecAsnOctsContent

#define PrintGraphicString PrintAsnOcts

#define FreeGraphicString FreeAsnOcts 




typedef AsnOcts VisibleString; /* [UNIVERSAL 26] IMPLICIT OCTET STRING */

AsnLen BEncVisibleString PROTO ((BUF_TYPE b, VisibleString *v));

void BDecVisibleString PROTO ((BUF_TYPE b, VisibleString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncVisibleStringContent BEncAsnOctsContent

#define BDecVisibleStringContent BDecAsnOctsContent

#define PrintVisibleString PrintAsnOcts

#define FreeVisibleString FreeAsnOcts 




typedef AsnOcts ISO646String; /* [UNIVERSAL 26] IMPLICIT OCTET STRING */

AsnLen BEncISO646String PROTO ((BUF_TYPE b, ISO646String *v));

void BDecISO646String PROTO ((BUF_TYPE b, ISO646String *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncISO646StringContent BEncAsnOctsContent

#define BDecISO646StringContent BDecAsnOctsContent

#define PrintISO646String PrintAsnOcts

#define FreeISO646String FreeAsnOcts 




typedef AsnOcts GeneralString; /* [UNIVERSAL 27] IMPLICIT OCTET STRING */

AsnLen BEncGeneralString PROTO ((BUF_TYPE b, GeneralString *v));

void BDecGeneralString PROTO ((BUF_TYPE b, GeneralString *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncGeneralStringContent BEncAsnOctsContent

#define BDecGeneralStringContent BDecAsnOctsContent

#define PrintGeneralString PrintAsnOcts

#define FreeGeneralString FreeAsnOcts 




typedef AsnOcts UTCTime; /* [UNIVERSAL 23] IMPLICIT OCTET STRING */

AsnLen BEncUTCTime PROTO ((BUF_TYPE b, UTCTime *v));

void BDecUTCTime PROTO ((BUF_TYPE b, UTCTime *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncUTCTimeContent BEncAsnOctsContent

#define BDecUTCTimeContent BDecAsnOctsContent

#define PrintUTCTime PrintAsnOcts

#define FreeUTCTime FreeAsnOcts 




typedef AsnOcts GeneralizedTime; /* [UNIVERSAL 24] IMPLICIT OCTET STRING */

AsnLen BEncGeneralizedTime PROTO ((BUF_TYPE b, GeneralizedTime *v));

void BDecGeneralizedTime PROTO ((BUF_TYPE b, GeneralizedTime *result, AsnLen *bytesDecoded, ENV_TYPE env));
#define BEncGeneralizedTimeContent BEncAsnOctsContent

#define BDecGeneralizedTimeContent BDecAsnOctsContent

#define PrintGeneralizedTime PrintAsnOcts

#define FreeGeneralizedTime FreeAsnOcts 




typedef struct EXTERNALChoice /* CHOICE */
{
    enum EXTERNALChoiceChoiceId
    {
        EXTERNALCHOICE_SINGLE_ASN1_TYPE,
        EXTERNALCHOICE_OCTET_ALIGNED,
        EXTERNALCHOICE_ARBITRARY
    } choiceId;
    union EXTERNALChoiceChoiceUnion
    {
    AsnOcts* single_ASN1_type; /* [0] OCTET STRING */
    AsnOcts* octet_aligned; /* [1] IMPLICIT OCTET STRING */
    AsnBits* arbitrary; /* [2] IMPLICIT BIT STRING */
    } a;
} EXTERNALChoice;

AsnLen BEncEXTERNALChoiceContent PROTO ((BUF_TYPE b, EXTERNALChoice *v));

void BDecEXTERNALChoiceContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, EXTERNALChoice *v, AsnLen *bytesDecoded, ENV_TYPE env));


void PrintEXTERNALChoice PROTO ((FILE* f, EXTERNALChoice *v, unsigned short int indent));
void FreeEXTERNALChoice PROTO ((EXTERNALChoice *v));





typedef struct EXTERNAL /* [UNIVERSAL 8] IMPLICIT SEQUENCE */
{
    AsnOid direct_reference; /* OBJECT IDENTIFIER OPTIONAL */
    AsnInt* indirect_reference; /* INTEGER OPTIONAL */
    ObjectDescriptor data_value_descriptor; /* ObjectDescriptor OPTIONAL */
    struct EXTERNALChoice* encoding; /* EXTERNALChoice */
} EXTERNAL;

AsnLen BEncEXTERNAL PROTO ((BUF_TYPE b, EXTERNAL *v));

void BDecEXTERNAL PROTO ((BUF_TYPE b, EXTERNAL *result, AsnLen *bytesDecoded, ENV_TYPE env));
AsnLen BEncEXTERNALContent PROTO ((BUF_TYPE b, EXTERNAL *v));

void BDecEXTERNALContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, EXTERNAL *v, AsnLen *bytesDecoded, ENV_TYPE env));


void PrintEXTERNAL PROTO ((FILE* f, EXTERNAL *v, unsigned short int indent));
void FreeEXTERNAL PROTO ((EXTERNAL *v));






#endif /* conditional include of asn-useful.h */