[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?
From: |
David Shaw |
Subject: |
Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?) |
Date: |
Sat, 20 Aug 2005 12:52:27 -0400 |
User-agent: |
Mutt/1.5.8i |
On Sat, Aug 20, 2005 at 12:32:52PM -0400, Yaron Minsky wrote:
> > I'm not the best at reading ocaml, but it doesn't seem that your code
> > will handle arbitrary %-escaping elsewhere in <some string>. The HTTP
> > spec allows any character to be escaped. Some clients (like libcurl)
> > are a little more agressive about escaping. For example, the actual
> > stream that is sent from curl during the HTTP POST begins:
> >
> >
> > keytext%3D%2D%2D%2D%2D%2DBEGIN%20PGP%20PUBLIC%20KEY%20BLOCK%2D%2D%2D%2D%2D%0AVersion%3A%20GnuPG
> > (etc)
>
>
> Why don't you think I handle that case correctly? I apply a
> Wserver.decodeto the whole string, and then do sscanf on it to extract
> the keytext. Like
> this:
>
> #
> Wserver.decode"keytext%3D%2D%2D%2D%2D%2DBEGIN%20PGP%20PUBLIC%20KEY%20BLOCK%2D%2D%2D%2D%2D%0AVersion%3A%20GnuPG";;
> - : string = "keytext=-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG"
Ah, I missed that in the ocaml.
> Actually, now I think I understand the bug. The %s in the sscanf doesn't
> capture everything, just the next word (as broken by spaces). That's why
> Jason's patch does the right thing but mine is wrong.
>
> I'll fix that right up.
It looks good now. I was able to submit a key via the curl-ized
gpgkeys_hkp.
David
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), (continued)
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), Yaron Minsky, 2005/08/13
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), Yaron Minsky, 2005/08/19
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), David Shaw, 2005/08/19
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), Yaron Minsky, 2005/08/20
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), David Shaw, 2005/08/20
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), Yaron Minsky, 2005/08/20
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?),
David Shaw <=
- Re: [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), Yaron Minsky, 2005/08/20
- [Sks-devel] Re: SKS v. unknown HTTP headers (was: Re: IPv6 failover?), David Shaw, 2005/08/05