X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fbuildreq.c;fp=pppd%2Fplugins%2Fradius%2Fradiusclient%2Flib%2Fbuildreq.c;h=d8a52c9535c3c82144c8196846b3e4e10e2c5370;hb=487bb169365c260739dc79702772e2fb15ec6202;hp=b7ca07ecd2946a59e29ee2b04dc69a034648c405;hpb=dbab7400abf57617a9334735a64ff00c6552cec5;p=ppp.git diff --git a/pppd/plugins/radius/radiusclient/lib/buildreq.c b/pppd/plugins/radius/radiusclient/lib/buildreq.c index b7ca07e..d8a52c9 100644 --- a/pppd/plugins/radius/radiusclient/lib/buildreq.c +++ b/pppd/plugins/radius/radiusclient/lib/buildreq.c @@ -1,5 +1,5 @@ /* - * $Id: buildreq.c,v 1.2 2002/03/01 14:39:19 dfs Exp $ + * $Id: buildreq.c,v 1.3 2002/04/02 14:09:35 dfs Exp $ * * Copyright (C) 1995,1997 Lars Fenneberg * @@ -120,14 +120,15 @@ unsigned char rc_get_seqnbr(void) */ int rc_auth(UINT4 client_port, VALUE_PAIR *send, VALUE_PAIR **received, - char *msg) + char *msg, REQUEST_INFO *info) { SERVER *authserver = rc_conf_srv("authserver"); if (!authserver) { return (ERROR_RC); } - return rc_auth_using_server(authserver, client_port, send, received, msg); + return rc_auth_using_server(authserver, client_port, send, received, + msg, info); } /* @@ -146,7 +147,7 @@ int rc_auth_using_server(SERVER *authserver, UINT4 client_port, VALUE_PAIR *send, VALUE_PAIR **received, - char *msg) + char *msg, REQUEST_INFO *info) { SEND_DATA data; UINT4 client_id; @@ -186,7 +187,7 @@ int rc_auth_using_server(SERVER *authserver, rc_buildreq(&data, PW_ACCESS_REQUEST, authserver->name[i], authserver->port[i], timeout, retries); - result = rc_send_server (&data, msg); + result = rc_send_server (&data, msg, info); } *received = data.receive_pairs; @@ -230,7 +231,7 @@ int rc_auth_proxy(VALUE_PAIR *send, VALUE_PAIR **received, char *msg) rc_buildreq(&data, PW_ACCESS_REQUEST, authserver->name[i], authserver->port[i], timeout, retries); - result = rc_send_server (&data, msg); + result = rc_send_server (&data, msg, NULL); } *received = data.receive_pairs; @@ -306,7 +307,7 @@ int rc_acct_using_server(SERVER *acctserver, dtime = time(NULL) - start_time; rc_avpair_assign(adt_vp, &dtime, 0); - result = rc_send_server (&data, msg); + result = rc_send_server (&data, msg, NULL); } rc_avpair_free(data.receive_pairs); @@ -363,7 +364,7 @@ int rc_acct_proxy(VALUE_PAIR *send) rc_buildreq(&data, PW_ACCOUNTING_REQUEST, acctserver->name[i], acctserver->port[i], timeout, retries); - result = rc_send_server (&data, msg); + result = rc_send_server (&data, msg, NULL); } rc_avpair_free(data.receive_pairs); @@ -406,7 +407,7 @@ int rc_check(char *host, unsigned short port, char *msg) rc_avpair_add(&(data.send_pairs), PW_SERVICE_TYPE, &service_type, 0, VENDOR_NONE); rc_buildreq(&data, PW_STATUS_SERVER, host, port, timeout, retries); - result = rc_send_server (&data, msg); + result = rc_send_server (&data, msg, NULL); rc_avpair_free(data.receive_pairs);