5 Jan
2006
5 Jan
'06
12:16 p.m.
Maria Ripolles <mariaripolles63@yahoo.es> wrote:
for ( aux=request_pairs; aux; aux=aux->next) { Attribute_Name = aux->name; Attribute_Value = aux->strvalue;
if (aux->attribute == PW_CONNECT_INFO)
Use the "pairfind" function. See the existing code for examples. static int mymodule_authorize (void *instance, REQUEST *request) { VALUE_PAIR *vp; ... vp = pairfind(request->packet->vps, PW_CONNECT_INFO); if (vp) { type = auxiliar (vp->strvalue); } Alan DeKok.