2 * \file gammu-security.h
7 #ifndef __gammu_security_h
8 #define __gammu_security_h
11 * \defgroup Security Security
12 * Security related operations with phone.
15 #include <gammu-limits.h>
16 #include <gammu-error.h>
17 #include <gammu-statemachine.h>
20 * Definition of security codes.
28 SEC_SecurityCode
= 0x01,
54 * Network code needed.
57 } GSM_SecurityCodeType
;
60 * Security code definition.
68 GSM_SecurityCodeType Type
;
72 char Code
[GSM_SECURITY_CODE_LEN
+ 1];
76 * Some phones require to set PIN on entering PUK, you can
79 char NewPIN
[GSM_SECURITY_CODE_LEN
+ 1];
83 * Enters security code (PIN, PUK,...) .
87 GSM_Error
GSM_EnterSecurityCode(GSM_StateMachine
* s
, GSM_SecurityCode
* Code
);
90 * Queries whether some security code needs to be entered.
94 GSM_Error
GSM_GetSecurityStatus(GSM_StateMachine
* s
,
95 GSM_SecurityCodeType
* Status
);
99 /* Editor configuration
100 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: