From: Jeff King <peff@peff.net>
To: Nelson Benitez Leon <nelsonjesus.benitez@seap.minhap.es>
Cc: git@vger.kernel.org
Subject: Re: Question about credential api
Date: Thu, 1 Mar 2012 15:44:39 -0500 [thread overview]
Message-ID: <20120301204439.GA17631@sigill.intra.peff.net> (raw)
In-Reply-To: <4F4F88F9.50302@seap.minhap.es> <4F4F7A94.2000804@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
prev parent reply other threads:[~2012-03-01 20:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 14:34 Question about credential api Nelson Benitez Leon
2012-03-01 13:33 ` Nelson Benitez Leon
2012-03-01 20:44 ` Jeff King [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120301204439.GA17631@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=nelsonjesus.benitez@seap.minhap.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).