FreeRADIUS / freeradius-client

A BSD licenced RADIUS client library
http://freeradius.org/freeradius-client/
Other
143 stars 100 forks source link

Encryption of CHAP-password #100

Open spoddar1 opened 4 years ago

spoddar1 commented 4 years ago

Is there a plan to add encryption of CHAP-password in rc_pack_list() defined lib/senserver.c?

I could have done it outside before adding VP attribute, but in some cases standard requires us to use authorization-vector which is initialized @ line 333 in rc_send_server() in lib.sendserver.c.

alandekok commented 4 years ago

Is there a plan to add encryption of CHAP-password in rc_pack_list() defined lib/senserver.c?

Sure. Please send a patch.

The CHAP encoding should be done in rc_pack_list(), as it requires access to the authentication vector, and the secret.

spoddar1 commented 4 years ago

Sent pull request "Added CHAP encryption #101 "