Skip to contentSkip to conversation

Question about credential api

DISCUSSION Nelson Benitez Leon 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Ok don't bother, I've already checked and seems to return NULL
in this case.

#1 lore raw
Quoted 9 lines · Nelson Benitez Leon

static struct credential proxy_auth = CREDENTIAL_INIT; credential_from_url(&proxy_auth, "http://proxy.server.com:8080");

will prox_auth.username and prox_auth.password be an empty string ? so that strcmp(proxy_auth.username,"") returns zero.. couldn't figure that out from api-credentials.txt
[...]
Ok don't bother, I've already checked and seems to return NULL
in this case.

Right. It is NULL, which translates to "we don't know yet and it needs to be filled in during credential_fill".

-Peff