This file is indexed.

/usr/include/gisi-1.0/simauth.h is in libgisi-dev 0.1.0-1.

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
/*
 * Copyright (c) 2010, Sebastian Reichel <sre@ring0.de>
 * 
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#ifndef __ISIMODEM_SIM_AUTH_H
#define __ISIMODEM_SIM_AUTH_H

#ifdef __cplusplus
extern "C" {
#endif

#define PN_SIM_AUTH		0x08

#define SIM_AUTH_TIMEOUT	5

#define SIM_MAX_PIN_LENGTH	8
#define SIM_MAX_PUK_LENGTH	8

enum sim_auth_message_id {
	SIM_AUTH_PROTECTED_REQ       = 0x01,
	SIM_AUTH_PROTECTED_RESP      = 0x02,
	SIM_AUTH_UPDATE_REQ          = 0x04,
	SIM_AUTH_UPDATE_SUCCESS_RESP = 0x05,
	SIM_AUTH_UPDATE_FAIL_RESP    = 0x06,
	SIM_AUTH_REQ                 = 0x07,
	SIM_AUTH_SUCCESS_RESP        = 0x08,
	SIM_AUTH_FAIL_RESP           = 0x09,
	SIM_AUTH_STATUS_IND          = 0x10,
	SIM_AUTH_STATUS_REQ          = 0x11,
	SIM_AUTH_STATUS_RESP         = 0x12
};

enum sim_auth_req_sub_id {
	SIM_AUTH_REQ_PIN = 0x02,
	SIM_AUTH_REQ_PUK = 0x03
};

enum sim_auth_errror_id {
	SIM_AUTH_ERROR_INVALID_PW = 0x06,
	SIM_AUTH_ERROR_NEED_PUK   = 0x18
};

enum sim_auth_ind_id {
	SIM_AUTH_IND_NEED_AUTH    = 0x01,
	SIM_AUTH_IND_NEED_NO_AUTH = 0x02,
	SIM_AUTH_IND_VALID        = 0x03,
	SIM_AUTH_IND_INVALID      = 0x04,
	SIM_AUTH_IND_AUTHORIZED   = 0x05,
	SIM_AUTH_IND_CONFIG       = 0x06
};

enum sim_auth_ind_type {
	SIM_AUTH_IND_PIN = 0x02,
	SIM_AUTH_IND_PUK = 0x03,
	SIM_AUTH_IND_OK  = 0x63
};

enum sim_auth_ind_cfg {
	SIM_AUTH_IND_CFG_UNPROTECTED = 0x0B,
	SIM_AUTH_IND_CFG_PROTECTED = 0x0C,
};

enum sim_auth_status_resp {
	SIM_AUTH_STATUS_RESP_NEED_PIN = 0x02,
	SIM_AUTH_STATUS_RESP_NEED_PUK = 0x03,
	SIM_AUTH_STATUS_RESP_RUNNING  = 0x05,
	SIM_AUTH_STATUS_RESP_INIT     = 0x07
};

enum sim_auth_status_resp_running {
	SIM_AUTH_STATUS_RESP_RUNNING_AUTHORIZED  = 0x12,
	SIM_AUTH_STATUS_RESP_RUNNING_UNPROTECTED = 0x13,
	SIM_AUTH_STATUS_RESP_RUNNING_NO_SIM      = 0x16
};

enum sim_auth_protection_id {
	SIM_AUTH_PIN_PROTECTED_DISABLE = 0x00,
	SIM_AUTH_PIN_PROTECTED_ENABLE = 0x01,
	SIM_AUTH_PIN_PROTECTED_STATUS = 0x04
};

#ifdef __cplusplus
};
#endif

#endif /* __ISIMODEM_SIM_AUTH_H */