diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 09:56:18 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 09:56:18 -0700 |
commit | dc55d14e9c73c45c42502c33a5ea4e32589c1642 (patch) | |
tree | 61a84afd41769dbc617366a84e4743861a1f5dad /gatchat | |
parent | 4f99859d37800baf2f87b3869f1c0e1903e3467a (diff) | |
download | ofono-dc55d14e9c73c45c42502c33a5ea4e32589c1642.tar.gz |
Add some debugging information to PPP authentication handling
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/ppp_auth.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gatchat/ppp_auth.c b/gatchat/ppp_auth.c index 3c8d3a76..b2e08b2b 100644 --- a/gatchat/ppp_auth.c +++ b/gatchat/ppp_auth.c @@ -142,19 +142,22 @@ static void chap_process_packet(gpointer priv, guint8 *new_packet) switch (code) { case CHALLENGE: + g_print("chap: challenge\n"); chap_process_challenge(data, new_packet); break; case RESPONSE: - g_print("Oops, received RESPONSE, but I've not implemented\n"); + g_print("chap: response (not implemented)\n"); break; case SUCCESS: + g_print("chap: success\n"); chap_process_success(data, new_packet); break; case FAILURE: + g_print("chap: failure\n"); chap_process_failure(data, new_packet); break; default: - g_print("Unknown auth code\n"); + g_print("chap: unknown auth code\n"); break; } } @@ -201,7 +204,7 @@ void auth_set_proto(struct auth_data *data, guint16 proto, guint8 method) switch (proto) { case CHAP_PROTOCOL: - data->proto_data = (gpointer) chap_new(data, method); + data->proto_data = chap_new(data, method); break; default: g_print("Unknown auth protocol 0x%x\n", proto); |