fix confusing typo in constant (THAN -> THEN)
This commit is contained in:
parent
f4afcf0b23
commit
d2fa7a509a
|
@ -6,7 +6,7 @@ struct gsm_subscriber;
|
|||
|
||||
enum auth_action {
|
||||
AUTH_NOT_AVAIL = 0, /* No auth tuple available */
|
||||
AUTH_DO_AUTH_THAN_CIPH = 1, /* Firsth authenticate, then cipher */
|
||||
AUTH_DO_AUTH_THEN_CIPH = 1, /* Firsth authenticate, then cipher */
|
||||
AUTH_DO_CIPH = 2, /* Only ciphering */
|
||||
AUTH_DO_AUTH = 3, /* Only authentication, no ciphering */
|
||||
};
|
||||
|
|
|
@ -132,6 +132,6 @@ int auth_get_tuple_for_subscr(struct gsm_auth_tuple *atuple,
|
|||
db_sync_lastauthtuple_for_subscr(atuple, subscr);
|
||||
|
||||
DEBUGP(DMM, "Need to do authentication and ciphering\n");
|
||||
return AUTH_DO_AUTH_THAN_CIPH;
|
||||
return AUTH_DO_AUTH_THEN_CIPH;
|
||||
}
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ int gsm48_secure_channel(struct gsm_subscriber_connection *conn, int key_seq,
|
|||
/* FIXME: Should start a timer for completion ... */
|
||||
|
||||
/* Then do whatever is needed ... */
|
||||
if (rc == AUTH_DO_AUTH_THAN_CIPH) {
|
||||
if (rc == AUTH_DO_AUTH_THEN_CIPH) {
|
||||
/* Start authentication */
|
||||
return gsm48_tx_mm_auth_req(conn, op->atuple.rand, op->atuple.key_seq);
|
||||
} else if (rc == AUTH_DO_CIPH) {
|
||||
|
|
Loading…
Reference in New Issue