Alle 09:00, gioved� 31 marzo 2005, Benjamin Lee ha scritto:
> I think this is the relevant code:
>
> /*
> * new authorisation, usable by POST and GET
> */
> static URLTranslation *authorise_username(Octstr *username, Octstr
> *password, Octstr *client_ip)
> {
...
I tryed to add a fprintf(...) in gw/urltrans.c:
URLTranslation *urltrans_find_username(URLTranslationList *trans,
Octstr *name)
{
URLTranslation *t;
int i;
gw_assert(name != NULL);
for (i = 0; i < list_len(trans->list); ++i) {
t = list_get(trans->list, i);
if (t->type == TRANSTYPE_SENDSMS) {
if (octstr_compare(name, t->username) == 0)
{
-->> fprintf( stderr, "return t;" ); <<--- I added this and it prints this.
return t;
}
}
}
fprintf( stderr, "ritorna NULL" );
return NULL;
}
Giovanni