CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-10-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Oct 3 05:34:31 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: netpgp: fix build with Clang (since 2022-10-01) error: passing 'char [1]' to parameter of type 'const uint8_t *'

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-10-02 Thread Roland Illig
Module Name:src Committed By: rillig Date: Mon Oct 3 05:34:31 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: netpgp: fix build with Clang (since 2022-10-01) error: passing 'char [1]' to parameter of type 'const uint8_t *'

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-10-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 1 22:21:31 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: netpgpkeys: properly terminate string before calling strdup $ MALLOC_CONF=junk:true netpgpkeys \ --export-key \

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-10-01 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Oct 1 22:21:31 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: netpgpkeys: properly terminate string before calling strdup $ MALLOC_CONF=junk:true netpgpkeys \ --export-key \

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 27 08:35:01 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c Log Message: netpgp: fix use after free when writing keyring Same pattern as in the previous commit. To generate a diff of this

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 27 08:35:01 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c Log Message: netpgp: fix use after free when writing keyring Same pattern as in the previous commit. To generate a diff of this

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 27 08:30:06 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c Log Message: netpgp: fix use after free when reading pubkey To reproduce: srcdir=... objdir=... cd "$srcdir"/crypto/external/bsd/n

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-27 Thread Roland Illig
Module Name:src Committed By: rillig Date: Sat Aug 27 08:30:06 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c Log Message: netpgp: fix use after free when reading pubkey To reproduce: srcdir=... objdir=... cd "$srcdir"/crypto/external/bsd/n

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-26 Thread Jason High
Module Name:src Committed By: jhigh Date: Fri Aug 26 19:18:38 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: create.c crypto.h misc.c netpgpsdk.h openssl_crypto.c packet-parse.c packet-print.c packet-show.c packet.h signature.c

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2022-08-26 Thread Jason High
Module Name:src Committed By: jhigh Date: Fri Aug 26 19:18:38 UTC 2022 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: create.c crypto.h misc.c netpgpsdk.h openssl_crypto.c packet-parse.c packet-print.c packet-show.c packet.h signature.c

CVS commit: src/crypto/external/bsd/netpgp/dist/src/netpgpverify

2019-10-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Oct 8 18:47:11 UTC 2019 Modified Files: src/crypto/external/bsd/netpgp/dist/src/netpgpverify: libverify.c Log Message: grow the buffer a little. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 \ src/cryp

CVS commit: src/crypto/external/bsd/netpgp/dist/src/netpgpverify

2019-10-08 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Tue Oct 8 18:47:11 UTC 2019 Modified Files: src/crypto/external/bsd/netpgp/dist/src/netpgpverify: libverify.c Log Message: grow the buffer a little. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 \ src/cryp

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src

2018-04-03 Thread Sevan Janiyan
On 04/04/18 01:09, Christos Zoulas wrote: > In article <20180403220010.ga5...@britannica.bec.de>, > Joerg Sonnenberger wrote: >> This is not a very useful commit message... > > I was typing the same thing :-) Sorry, I was thinking in the context of the netpgp history (the PR was handled previ

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src

2018-04-03 Thread Christos Zoulas
In article <20180403220010.ga5...@britannica.bec.de>, Joerg Sonnenberger wrote: >On Tue, Apr 03, 2018 at 09:57:15PM +, Sevan Janiyan wrote: >> Module Name: src >> Committed By:sevan >> Date:Tue Apr 3 21:57:15 UTC 2018 >> >> Modified Files: >> src/crypto/external

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src

2018-04-03 Thread Joerg Sonnenberger
On Tue, Apr 03, 2018 at 09:57:15PM +, Sevan Janiyan wrote: > Module Name: src > Committed By: sevan > Date: Tue Apr 3 21:57:15 UTC 2018 > > Modified Files: > src/crypto/external/bsd/netpgp/dist/src/lib: libnetpgp.3 > src/crypto/external/bsd/netpgp/dist/src/libbn: libnetpg

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2018-04-01 Thread Christos Zoulas
In article <20180401232528.1e523f...@cvs.netbsd.org>, Sevan Janiyan wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: sevan >Date: Sun Apr 1 23:25:28 UTC 2018 > >Modified Files: > src/crypto/external/bsd/netpgp/dist/src/lib: libnetpgp.3 > >Log Message: >netpgp_t is a struct

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src

2017-02-21 Thread Pierre Pronchery
Hey, On 20/02/2017 03:40, Alistair Crooks wrote: Thanks, but I'd really like it if netpgp would work the same on all pkgsrc platforms: The linux man page for getpass(3) (https://linux.die.net/man/3/getpass) says: The function *getpass*() returns a pointer to a static bu

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src

2017-02-19 Thread Alistair Crooks
Thanks, but I'd really like it if netpgp would work the same on all pkgsrc platforms: The linux man page for getpass(3) (https://linux.die.net/man/3/getpass) says: The function *getpass*() returns a pointer to a static buffer containing (the first *PASS_MAX* bytes of) the password without the tra

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-08-15 Thread Alistair Crooks
On Sun, Aug 15, 2010 at 05:16:47PM +, Christos Zoulas wrote: > In article <20100815163624.8645d17...@cvs.netbsd.org>, > Alistair G. Crooks wrote: > >-=-=-=-=-=- > > > >Module Name: src > >Committed By:agc > >Date:Sun Aug 15 16:36:24 UTC 2010 > > > >Modified Files: > >

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-08-15 Thread Christos Zoulas
In article <20100815163624.8645d17...@cvs.netbsd.org>, Alistair G. Crooks wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: agc >Date: Sun Aug 15 16:36:24 UTC 2010 > >Modified Files: > src/crypto/external/bsd/netpgp/dist/src/lib: misc.c packet-parse.c > packet-show

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-07-26 Thread Alistair Crooks
On Mon, Jul 26, 2010 at 03:56:07AM -0700, Tom Spindler wrote: > > Modified Files: > > src/crypto/external/bsd/netpgp/dist/src/lib: keyring.h packet-print.c > > Added Files: > > src/crypto/external/bsd/netpgp/dist/src/lib: mj.c mj.h > > > > Log Message: > > add a minimalist JSON implementat

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-07-26 Thread Tom Spindler
> Modified Files: > src/crypto/external/bsd/netpgp/dist/src/lib: keyring.h packet-print.c > Added Files: > src/crypto/external/bsd/netpgp/dist/src/lib: mj.c mj.h > > Log Message: > add a minimalist JSON implementation, and add a new function to access the > data, and serialise it using

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-28 Thread Alan Barrett
On Sat, 26 Jun 2010, David Holland wrote: > I suppose the best available comprehensive solution is to use PRIu*** > garble in the code and then if necessary have autoconf figure out what > the garble should expand to based on SIZE_MAX. Yes. --apb (Alan Barrett)

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-27 Thread David Holland
On Sun, Jun 27, 2010 at 08:10:41PM +0200, Joerg Sonnenberger wrote: > > Compromising the autoconfiguration not work properly in the name of > > cross-compilation, though, is misguided. Can't you have it run the > > test if it's not a cross-compiler and only if it is fall back to the > > platfor

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-27 Thread Joerg Sonnenberger
On Sat, Jun 26, 2010 at 11:21:37PM +, David Holland wrote: > On Sat, Jun 26, 2010 at 06:25:23AM +0200, Joerg Sonnenberger wrote: > > > It would be better to make this a check which is size_t dependent, > > > rather than platform-dependent. > > > > The idea is to black list platforms that d

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-26 Thread David Holland
On Sat, Jun 26, 2010 at 06:25:23AM +0200, Joerg Sonnenberger wrote: > > It would be better to make this a check which is size_t dependent, > > rather than platform-dependent. > > The idea is to black list platforms that don't do %zu and there is no > way to do that without breaking cross-comp

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Joerg Sonnenberger
On Sat, Jun 26, 2010 at 06:18:11AM +0200, Alistair Crooks wrote: > It would be better to make this a check which is size_t dependent, > rather than platform-dependent. The idea is to black list platforms that don't do %zu and there is no way to do that without breaking cross-compilation. It is sti

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Alistair Crooks
On Sat, Jun 26, 2010 at 05:25:31AM +0200, Joerg Sonnenberger wrote: > On Sat, Jun 26, 2010 at 05:11:39AM +0200, Alistair Crooks wrote: > > On Sat, Jun 26, 2010 at 01:32:05AM +0200, Joerg Sonnenberger wrote: > > > On Fri, Jun 25, 2010 at 11:54:32PM +0200, Alistair Crooks wrote: > > > > Even

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 09:34:12PM -0600, M. Warner Losh wrote: > You could easily enough have something like the following in autoconf > to generate that: > > #include > #include > > int main(int argc, char **argv) > { > size_t foo = ~0; > printf("#ifndef SIZE_MAX\n#define SIZE_MAX

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread M. Warner Losh
In message: <20100626032531.ga14...@britannica.bec.de> Joerg Sonnenberger writes: : On Sat, Jun 26, 2010 at 05:11:39AM +0200, Alistair Crooks wrote: : > On Sat, Jun 26, 2010 at 01:32:05AM +0200, Joerg Sonnenberger wrote: : > > On Fri, Jun 25, 2010 at 11:54:32PM +0200, Alistair Crooks w

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Joerg Sonnenberger
On Sat, Jun 26, 2010 at 05:11:39AM +0200, Alistair Crooks wrote: > On Sat, Jun 26, 2010 at 01:32:05AM +0200, Joerg Sonnenberger wrote: > > On Fri, Jun 25, 2010 at 11:54:32PM +0200, Alistair Crooks wrote: > > > Even in C99, the "%lu" method will work unless size_t is bigger than > > > unsigned l

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Alistair Crooks
On Sat, Jun 26, 2010 at 01:32:05AM +0200, Joerg Sonnenberger wrote: > On Fri, Jun 25, 2010 at 11:54:32PM +0200, Alistair Crooks wrote: > > Even in C99, the "%lu" method will work unless size_t is bigger than > > unsigned long *and* the value being printed exceeds ULONG_MAX, which > > is

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Joerg Sonnenberger
On Fri, Jun 25, 2010 at 11:54:32PM +0200, Alistair Crooks wrote: > Even in C99, the "%lu" method will work unless size_t is bigger than > unsigned long *and* the value being printed exceeds ULONG_MAX, which > is unlikely to happen in practice. Actually, it doesn't. This method br

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Alistair Crooks
On Fri, Jun 25, 2010 at 08:40:26PM +, Christos Zoulas wrote: > In article <20100625183016.ac0be17...@cvs.netbsd.org>, > Alistair G. Crooks wrote: > >-=-=-=-=-=- > > > >Module Name: src > >Committed By:agc > >Date:Fri Jun 25 18:30:16 UTC 2010 > > > >Modified Files: > >

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-06-25 Thread Christos Zoulas
In article <20100625183016.ac0be17...@cvs.netbsd.org>, Alistair G. Crooks wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: agc >Date: Fri Jun 25 18:30:16 UTC 2010 > >Modified Files: > src/crypto/external/bsd/netpgp/dist/src/lib: misc.c > >Log Message: >Fix build problems on

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-03-08 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 8 08:56:03 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: ensure that we have an element in the array before we try to store a value in it. To generate a diff of this commit: c

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-03-08 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 8 08:56:03 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c Log Message: ensure that we have an element in the array before we try to store a value in it. To generate a diff of this commit: c

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-03-05 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Fri Mar 5 16:30:05 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c netpgp.c Log Message: clean up some lint that crept in. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 \ src/cry

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-03-05 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Fri Mar 5 16:30:05 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: keyring.c netpgp.c Log Message: clean up some lint that crept in. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 \ src/cry

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpd

2010-03-01 Thread Thomas E. Spanjaard
Joerg Sonnenberger wrote: > Why do we want to have another ad-hoc HTTP implementation? Wouldn't a > small *CGI script be good enough? Argument for a separate implementation: it runs as a standalone daemon on a different port than the default for HTTP, as a decoupled service from your normal httpd.

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpd

2010-03-01 Thread Alistair Crooks
not really, i tried to shoehorn all of this into bozo, and it wasn't willing to do it, and its cgi subsystem doesn't lend itself to this kind of thing. i'm fairly intimate with most of bozo's internals, too. the server itself is not that large. if there's a common server-side library that can be

Re: CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpd

2010-03-01 Thread Joerg Sonnenberger
Why do we want to have another ad-hoc HTTP implementation? Wouldn't a small *CGI script be good enough? Joerg On Mon, Mar 01, 2010 at 07:41:57AM +, Alistair G. Crooks wrote: > Module Name: src > Committed By: agc > Date: Mon Mar 1 07:41:57 UTC 2010 > > Added Files: > src/cryp

CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpclient

2010-02-28 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 1 07:52:21 UTC 2010 Added Files: src/crypto/external/bsd/netpgp/dist/src/hkpclient: hkpclient.lua optparse.lua tst Log Message: add the scripts used to test the hkpd. fwiw, the hkp client script is - essentially

CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpclient

2010-02-28 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 1 07:52:21 UTC 2010 Added Files: src/crypto/external/bsd/netpgp/dist/src/hkpclient: hkpclient.lua optparse.lua tst Log Message: add the scripts used to test the hkpd. fwiw, the hkp client script is - essentially

CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpd

2010-02-28 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 1 07:41:57 UTC 2010 Added Files: src/crypto/external/bsd/netpgp/dist/src/hkpd: Makefile hkpd.c hkpd.h main.c Log Message: add an embryonic httpd key server (hkpd) to netpgp. this is based on the discontinued draf

CVS commit: src/crypto/external/bsd/netpgp/dist/src/hkpd

2010-02-28 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Mon Mar 1 07:41:57 UTC 2010 Added Files: src/crypto/external/bsd/netpgp/dist/src/hkpd: Makefile hkpd.c hkpd.h main.c Log Message: add an embryonic httpd key server (hkpd) to netpgp. this is based on the discontinued draf

CVS commit: src/crypto/external/bsd/netpgp/dist/src/netpgp

2010-02-24 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Wed Feb 24 08:22:59 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/netpgp: netpgp.1 Log Message: New sentence, new line; remove trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \

CVS commit: src/crypto/external/bsd/netpgp/dist/src

2010-02-22 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Tue Feb 23 01:24:45 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c validate.c src/crypto/external/bsd/netpgp/dist/src/netpgp: netpgp.1 Log Message: fix a bug in verifying memory. add two examp

CVS commit: src/crypto/external/bsd/netpgp/dist/src

2010-02-22 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Tue Feb 23 01:24:45 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: netpgp.c validate.c src/crypto/external/bsd/netpgp/dist/src/netpgp: netpgp.1 Log Message: fix a bug in verifying memory. add two examp

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-02-12 Thread Alistair G. Crooks
Module Name:src Committed By: agc Date: Sat Feb 13 00:14:00 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: signature.h Log Message: let's get modern int types defined so that netpgp will build on mac os x To generate a diff of this commit: cvs rdif

CVS commit: src/crypto/external/bsd/netpgp/dist/src/lib

2010-02-06 Thread David Laight
Module Name:src Committed By: dsl Date: Sat Feb 6 10:50:52 UTC 2010 Modified Files: src/crypto/external/bsd/netpgp/dist/src/lib: packet-parse.c validate.c Log Message: Fix printf formats on amd64 (and probably other 64bit systems). To generate a diff of this commit: cvs