git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Question about credential api

From
Jeff King <peff@peff.net>
Date
Mar 1, 2012, 20:44 UTC
Message-ID
<20120301204439.GA17631@sigill.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:
Show 9 quoted lines
> 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
Previous: Nelson Benitez Leon
Message 2 of 2 in “Re: Question about credential api”
  1. Nelson Benitez LeonMar 1, 2012
  2. Jeff KingMar 1, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.