summaryrefslogtreecommitdiff
path: root/gatchat/ppp_auth.c
Commit message (Collapse)AuthorAgeFilesLines
* gatchat: Fix up minor coding style issuesDenis Kenzior2014-06-211-1/+5
|
* gatchat: implement PAP authenticationPhilip Paeps2014-06-211-0/+139
| | | | | | | | | | | | | | | | | | | | 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 requirement of 3GPP TS 29.061 that modems must send a forced positive acknowledgement of the authentication method tried (i.e.: the modem will successfully accept any CHAP handshake, but if the network only supports PAP, the modem will hang up when it tries and fails to activate the PDP context) o The PAP Authenticate-Request is resent a hard-coded three times at ten-second intervals. This may be a bit too persistent. Chances are if it doesn't work the first time, it'll never work, but the RFC insists that we MUST retry.
* gatchat: Fix minor style issueDenis Kenzior2011-11-141-1/+1
|
* gatchat: Update copyright informationMarcel Holtmann2011-10-101-1/+1
|
* ppp: Add basic length sanity checksDenis Kenzior2011-06-291-2/+8
|
* gatppp: add name field when using chap authCaiwen Zhang2011-05-111-0/+9
| | | | | Some systems require name field, otherwise chap authentication will fail.
* ppp: Remove some g_printsDenis Kenzior2011-02-281-1/+0
|
* gatchat: explicitly compare pointers to NULLLucas De Marchi2010-11-291-3/+3
| | | | | | | | | | | | | | This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
* ppp: implement ppp_packet_newKristen Carlson Accardi2010-05-191-3/+1
|
* ppp: set address and control fieldKristen Carlson Accardi2010-05-101-1/+1
| | | | | Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
* ppp: Make ppp_chap_process_packet const correctDenis Kenzior2010-04-281-3/+3
|
* ppp: nak unknown auth protocolKristen Carlson Accardi2010-04-141-2/+0
| | | | | If we are sent a Config-Request for an auth proto other than CHAP with MD5, send a NAK.
* ppp: Remove auth_ functions from ppp_auth.cDenis Kenzior2010-04-131-95/+25
| | | | | | | These really serve no purpose right now as we use only CHAP. So they only take up space and make the code harder to read. If we implement 1-3 auth protocols, then they're easier handled inside gatppp.c. If we have more, then a proper auth driver framework is required.
* Move PPP constants where they are usedMarcel Holtmann2010-04-031-0/+2
|
* Refactor: Get rid of (now) pointless commentsDenis Kenzior2010-04-021-2/+0
|
* Refactor: Get rid of packet handler registrationsDenis Kenzior2010-04-021-10/+3
| | | | | | There are only about 4 protocols that the current ppp code handles and it is doubtful that it will grow much more. There's no point in having an extensive packet handler registration framework.
* Add more missing break statementsMarcel Holtmann2010-04-021-0/+2
|
* Add some debugging information to PPP authentication handlingMarcel Holtmann2010-04-011-3/+6
|
* Fix use of g_checksum_get_digest() inout argumentMarcel Holtmann2010-03-291-2/+2
|
* ppp: send PPP_FAIL when authentication failsKristen Carlson Accardi2010-03-261-1/+2
|
* Allow empty secrets for CHAP authenticationMarcel Holtmann2010-03-261-1/+2
|
* fix memory leak in ppp_authKristen Carlson Accardi2010-03-241-0/+1
| | | | Free packet after calling ppp_transmit()
* Use password instead of passwd as variable nameMarcel Holtmann2010-03-221-4/+4
|
* The g_free() function checks for NULL pointersMarcel Holtmann2010-03-221-5/+3
| | | | And so does even the free() function from glibc ;)
* Some additional whitespace cleanup for PPP codeMarcel Holtmann2010-03-221-1/+1
|
* CHAP with MD5 authentication supportKristen Carlson Accardi2010-03-221-0/+229
Authentication support with CHAP and MD5