summaryrefslogtreecommitdiff
path: root/accel-pppd/ipv6
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-02-11 21:02:24 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-12 00:12:48 +0400
commit9f831d04a54d4f2f36c90e6914018be5eb9d09ff (patch)
treef7ca78fcd5aa77e45803246963dca5fdb42cb7a6 /accel-pppd/ipv6
parentce807c0f2e045fb936cbf71b4d2a6d98ed12519e (diff)
downloadaccel-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