diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-12-17 16:11:14 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2012-12-17 16:11:14 +0100 |
commit | 09d1cff2418a900b587b2113f508984f2417cc11 (patch) | |
tree | 95dce8da09eccdeb8e70f10adcb285d7047b3120 /lib/include/radsec/radsec.h | |
parent | 5b117878698519e798f928cef18eafc9dad4c15a (diff) |
Add formal argument 'secret' to two public functions.
The functions are rs_packet_create_authn_request() and
rs_request_create_authn().
Attributes of type PW_USER_PASSWORD are supposed to be MD5
obfuscated (see vp2data_any()).
NOTE: This is a non-backward compatible API change.
Diffstat (limited to 'lib/include/radsec/radsec.h')
-rw-r--r-- | lib/include/radsec/radsec.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h index 6c4f6a7..b45aea1 100644 --- a/lib/include/radsec/radsec.h +++ b/lib/include/radsec/radsec.h @@ -310,12 +310,14 @@ int rs_packet_send(struct rs_packet *pkt, void *user_data); /** Create a RADIUS authentication request packet associated with connection \a conn. Optionally, User-Name and User-Password - attributes are added to the packet using the data in \a user_name - and \a user_pw. */ + attributes are added to the packet using the data in \a user_name, + \a user_pw and \a secret where \secret is the RADIUS shared + secret. */ int rs_packet_create_authn_request(struct rs_connection *conn, struct rs_packet **pkt, const char *user_name, - const char *user_pw); + const char *user_pw, + const char *secret); /*** Append \a tail to packet \a pkt. */ int |