[PATCH 2/3] gprs: make PPP authentication method configurable

2014-06-17 Thread Philip Paeps
Add a new "AuthMethod" property to select between "pap" and "chap" PPP authentication, defaulting to "chap" (i.e.: previous behaviour). Signed-off-by: Philip Paeps --- doc/connman-api.txt|4 ++ drivers/atmodem/gprs-context.c | 14 +++ include/gprs-context.h |6 +

[PATCH 1/3] gatchat: implement PAP authentication

2014-06-17 Thread Philip Paeps
Make the authentication method configurable, CHAP or PAP, defaulting to CHAP (i.e.: previous behaviour). Implementation details: o If PAP is configured, we NAK the CHAP authentication protocol option in LCP configuration requests and suggest PAP instead. This works around the amusing requ

[PATCH 3/3] mbpi: add authentication methods to provisioning

2014-06-17 Thread Philip Paeps
Signed-off-by: Philip Paeps --- include/gprs-provision.h |1 + plugins/mbpi.c | 32 plugins/provision.c |1 + src/gprs.c |2 ++ 4 files changed, 36 insertions(+) diff --git a/include/gprs-provision.h b/include/gprs-provi

[PATCH] Add support for PAP authentication

2014-06-17 Thread Philip Paeps
Some operators require PAP authentication instead of the more prevalent CHAP. This is particularly true in the case of private APNs for machine to machine communication. These patches add support for PAP in the PPP library and glue for configuring and provisioning contexts to use it. The default