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/request.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/request.h')
-rw-r--r-- | lib/include/radsec/request.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/include/radsec/request.h b/lib/include/radsec/request.h index f124373..574f395 100644 --- a/lib/include/radsec/request.h +++ b/lib/include/radsec/request.h @@ -22,11 +22,13 @@ void rs_request_add_reqpkt(struct rs_request *req, struct rs_packet *req_msg); /** Create a request associated with connection \a conn containing a newly created RADIUS authentication message, possibly with \a user_name and \a user_pw attributes. \a user_name and _user_pw - are optional and can be NULL. */ + are optional and can be NULL. If they are present, \a secret must + also be given and is used for "hiding" the password. */ int rs_request_create_authn(struct rs_connection *conn, struct rs_request **req_out, const char *user_name, - const char *user_pw); + const char *user_pw, + const char *secret); /** Send request \a req and wait for a matching response. The response is put in \a resp_msg (if not NULL). NOTE: At present, |