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

Re: [PATCH/RFC] contrib: add win32 credential-helper

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Apr 3, 2012, 08:44 UTC
Message-ID
<CABPQNSZzboU+p9UbRBt19WhhxwbwCLDRnGUyDwY_myH2kXbOag@mail.gmail.com>
In-Reply-To
<CABPQNSac0opcTDVBwr4VeuA7pxqbtsqU7mdmYWms9tu3MjcpeQ@mail.gmail.com>
On Mon, Apr 2, 2012 at 5:53 PM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
Show 33 quoted lines
> On Fri, Mar 23, 2012 at 10:10 PM, Jeff King <peff@peff.net> wrote:
>> On Tue, Mar 20, 2012 at 12:06:54AM +0100, Erik Faye-Lund wrote:
>>
>>> This one pretty much sucks. Mem-leaks and a sketchy deletion-filter.
>>
>> Thanks for moving forward on this. I'm sorry I can't be much help on the
>> Windows-specific knowledge, but I'll answer what I can.
>>
>
> Thanks for following up :)
>
>>> Currently uses "::" as an attribute-separator, but this is not robust
>>> without encoding if the attribute values themselves contains "::".
>>
>> Yeah. Can you store arbitrary bytes? If so, NUL would be a good
>> terminator.
>
> No. TargetName is an LPWSTR, which is supposed to be zero-terminated.
> There's no way of specifying it's length directly.
>
>> Otherwise, newline is a reasonable choice, as the protocol
>> already can't communicate usernames/passwords with newlines (a
>> limitation that I accepted to make the protocol much simpler for
>> scripting use).
>>
>
> This works, but it causes Windows 7's credential manager to glitch in
> rendering the credential (adding all the newlines to the end of the
> line, and stretching an icon - yuck), which is also a bit unfortunate.
>
> So I'm thinking that escaping the string needs to be done. It can't be
> that big of a deal ;)
>

Hmm, but I must have been a complete moron; the credential structure in windows has a general purpose credential-attribute system, where I can store the meta-data I want.

So I can probably use that and get away without any sort of encoding. Yay.
I'll look deeper into it when I find the time.
Previous: Erik Faye-LundNext: Jeff King
Message 4 of 8 in “contrib: add win32 credential-helper”
  1. contrib: add win32 credential-helperErik Faye-Lund, Mar 19, 2012
  2. Jeff KingMar 23, 2012
  3. Erik Faye-LundApr 2, 2012
  4. Erik Faye-LundApr 3, 2012
  5. Jeff KingApr 4, 2012
  6. Erik Faye-LundApr 4, 2012
  7. Jeff KingApr 4, 2012
  8. Junio C HamanoApr 4, 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.