Security

GSM_Error GSM_EnterSecurityCode(GSM_StateMachine * s, GSM_SecurityCode * Code)

Enters security code (PIN, PUK,…) .

GSM_Error GSM_GetSecurityStatus(GSM_StateMachine * s, GSM_SecurityCodeType * Status)

Queries whether some security code needs to be entered.

enum GSM_SecurityCodeType

Definition of security codes.

Values:

SEC_SecurityCode = 0x01

Security code.

SEC_Pin

PIN.

SEC_Pin2

PIN 2.

SEC_Puk

PUK.

SEC_Puk2

PUK 2.

SEC_None

Code not needed.

SEC_Phone

Phone code needed.

SEC_Network

Network code needed.

struct GSM_SecurityCode

Security code definition.

Public Members

GSM_SecurityCodeType Type

Type of the code.

char GSM_SecurityCode::Code[GSM_SECURITY_CODE_LEN+1]

Actual code.

char GSM_SecurityCode::NewPIN[GSM_SECURITY_CODE_LEN+1]

New PIN code.

Some phones require to set PIN on entering PUK, you can provide it here.