summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
diff options
context:
space:
mode:
authorAndreas.Eversberg2010-09-19 12:52:42 +0200
committerAndreas.Eversberg2010-09-19 12:52:42 +0200
commit5e1cf12d67be5f45d811fc5f2529ba6593981b92 (patch)
tree8712b3bc5a9c2a67c2e8788e1517cfe6a4bccef5 /src/host/layer23/include/osmocom/bb/mobile/subscriber.h
parent[layer23] SIM client completion (diff)
downloadosmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.tar.gz
osmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.tar.xz
osmocom-5e1cf12d67be5f45d811fc5f2529ba6593981b92.zip
[layer23] Fixed and completed SIM's PIN handling
Use VTY to handle PIN: enable sim pin 1 xxxx sim change-pin 1 xxxx yyyy sim disable-pin 1 xxxx sim enable-pin 1 xxxx sim unlock-pin 1 uuuuuuuu yyyy 1 = mobile station "1" xxxx = current PIN yyyy = new PIN uuuuuuuu = unlock key (PuK)
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/mobile/subscriber.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/subscriber.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
index 93e7052..15af5d0 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/subscriber.h
@@ -81,7 +81,8 @@ int gsm_subscr_init(struct osmocom_ms *ms);
int gsm_subscr_exit(struct osmocom_ms *ms);
int gsm_subscr_testcard(struct osmocom_ms *ms, uint16_t mcc, uint16_t mnc);
int gsm_subscr_simcard(struct osmocom_ms *ms);
-void gsm_subscr_sim_pin(struct osmocom_ms *ms, char *pin);
+void gsm_subscr_sim_pin(struct osmocom_ms *ms, char *pin1, char *pin2,
+ int8_t mode);
int gsm_subscr_write_loci(struct osmocom_ms *ms);
int gsm_subscr_generate_kc(struct osmocom_ms *ms, uint8_t key_seq,
uint8_t *rand, uint8_t no_sim);