summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_auth.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-21gatchat: Fix up minor coding style issuesDenis Kenzior1-1/+5
2014-06-21gatchat: implement PAP authenticationPhilip Paeps1-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.
2011-11-14gatchat: Fix minor style issueDenis Kenzior1-1/+1
2011-10-10gatchat: Update copyright informationMarcel Holtmann1-1/+1
2011-06-29ppp: Add basic length sanity checksDenis Kenzior1-2/+8
2011-05-11gatppp: add name field when using chap authCaiwen Zhang1-0/+9
Some systems require name field, otherwise chap authentication will fail.
2011-02-28ppp: Remove some g_printsDenis Kenzior1-1/+0
2010-11-29gatchat: explicitly compare pointers to NULLLucas De Marchi1-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>
2010-05-19ppp: implement ppp_packet_newKristen Carlson Accardi1-3/+1
2010-05-10ppp: set address and control fieldKristen Carlson Accardi1-1/+1
Before sending to hdlc, set the address and control field. Fix hardcode of ppp header size.
2010-04-28ppp: Make ppp_chap_process_packet const correctDenis Kenzior1-3/+3
2010-04-14ppp: nak unknown auth protocolKristen Carlson Accardi1-2/+0
If we are sent a Config-Request for an auth proto other than CHAP with MD5, send a NAK.
2010-04-13ppp: Remove auth_ functions from ppp_auth.cDenis Kenzior1-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.
2010-04-03Move PPP constants where they are usedMarcel Holtmann1-0/+2
2010-04-02Refactor: Get rid of (now) pointless commentsDenis Kenzior1-2/+0
2010-04-02Refactor: Get rid of packet handler registrationsDenis Kenzior1-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.
2010-04-02Add more missing break statementsMarcel Holtmann1-0/+2
2010-04-01Add some debugging information to PPP authentication handlingMarcel Holtmann1-3/+6
2010-03-29Fix use of g_checksum_get_digest() inout argumentMarcel Holtmann1-2/+2
2010-03-26ppp: send PPP_FAIL when authentication failsKristen Carlson Accardi1-1/+2
2010-03-26Allow empty secrets for CHAP authenticationMarcel Holtmann1-1/+2
2010-03-24fix memory leak in ppp_authKristen Carlson Accardi1-0/+1
Free packet after calling ppp_transmit()
2010-03-22Use password instead of passwd as variable nameMarcel Holtmann1-4/+4
2010-03-22The g_free() function checks for NULL pointersMarcel Holtmann1-5/+3
And so does even the free() function from glibc ;)
2010-03-22Some additional whitespace cleanup for PPP codeMarcel Holtmann1-1/+1
2010-03-22CHAP with MD5 authentication supportKristen Carlson Accardi1-0/+229
Authentication support with CHAP and MD5