diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-11 21:02:24 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-12 00:12:48 +0400 |
commit | 9f831d04a54d4f2f36c90e6914018be5eb9d09ff (patch) | |
tree | f7ca78fcd5aa77e45803246963dca5fdb42cb7a6 /accel-pppd/ipv6 | |
parent | ce807c0f2e045fb936cbf71b4d2a6d98ed12519e (diff) | |
download | accel-ppp-9f831d04a54d4f2f36c90e6914018be5eb9d09ff.tar.gz accel-ppp-9f831d04a54d4f2f36c90e6914018be5eb9d09ff.zip |
l2tp: Implement peer authentication
Send the Challenge AVP in SCCRP messages and check for the Challenge
Response AVP in SCCCN.
This patch adds two functions:
-l2tp_tunnel_genchall() generates the Challenge, stores it in the
tunnel structure and adds the AVP in the packet to be sent.
-l2tp_tunnel_checkchallresp() reads a Challenge Response, computes
the expected response using the Challenge stored in the tunnel
structure and finally checks if both responses match.
These two functions are meant to be used in the upcoming implementation
of SCCRQ message sending and SCCRP message reception.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ipv6')
0 files changed, 0 insertions, 0 deletions