# Re: Question about credential api

2 messages from 2012-03-01 to 2012-03-01. Participants: Nelson Benitez Leon, Jeff King.
Thread: https://gitlist.dev/t/29794

## Nelson Benitez Leon, 2012-03-01 14:34

Subject: Re: Question about credential api
Message-ID: <4F4F88F9.50302@seap.minhap.es>
URL: https://gitlist.dev/e/4F4F88F9.50302%40seap.minhap.es

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

```

## Jeff King, 2012-03-01 20:44

Subject: Re: Question about credential api
Message-ID: <20120301204439.GA17631@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20120301204439.GA17631%40sigill.intra.peff.net
In-Reply-To: <4F4F88F9.50302@seap.minhap.es>

```
On Thu, Mar 01, 2012 at 02:33:08PM +0100, Nelson Benitez Leon wrote:

> 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

```
