agc
5d3eeabad1
Be a bit less zealous when copying memory, so that we don't copy beyond
...
th end of the buffer, and provoke a core dump.
2009-02-20 02:45:43 +00:00
christos
ce563f1b55
CID 4960: Plug memory leak.
2009-02-18 20:10:23 +00:00
uebayasi
aa58ef4867
Revert previous for now. The hidden intent was to rewrite duplicate rules
...
of ${TOOL_COMPILE_ET} seen in lib/*/Makefile, using make(1) suffix rule.
But I have not figured out the best way yet.
(The reason why I want to rewrite them is to strip absolute paths embedded in
/usr/include/krb5/*.h.)
2009-02-18 01:18:57 +00:00
dogcow
0d280a6b94
sig_atomic_t is long on alpha (?!); use %ld and cast to long.
2009-02-17 05:28:32 +00:00
uebayasi
5b1f280b89
To name output files, replace only suffix part exactly.
2009-02-17 05:24:14 +00:00
christos
79290a1b6f
remove extra args.
2009-02-16 22:50:17 +00:00
christos
9341d6b102
put back deleted files
2009-02-16 20:55:22 +00:00
christos
abbe9cc1c0
merge changes
2009-02-16 20:53:54 +00:00
tteras
b1ab726a1a
From Paul Moore: Fix a heap corruption bug (yacc return non-null terminated
...
buffer and sprintf writes over bounds).
2009-02-16 18:36:21 +00:00
christos
9d3c9d9c55
from ftp.openbsd.org
2009-02-16 17:14:22 +00:00
jmmv
44d668a632
Fix build; need to constify the return value of a function.
2009-02-13 22:01:05 +00:00
lukem
d237abe695
fix -Wsign-compare issues
2009-02-12 10:43:41 +00:00
vanhu
3723c0b8cf
trac#301: fixed IPsec SAs flush in purge_remote() when NAT-T enabled but no NAT-T on tunnel
2009-02-11 15:18:59 +00:00
agc
00be53a929
Remove argument names from function prototypes in header files.
2009-02-07 07:00:01 +00:00
agc
fd38df44a9
Be a bit more consistent with the naming scheme (and a bit less verbose).
2009-02-07 05:57:39 +00:00
agc
47eb47e6b3
The catch-all header file also includes version.h now, in case we want
...
to display the version number of the openpgpsdk library.
2009-02-07 05:37:57 +00:00
agc
6aef23c4e0
Re-order header file inclusion order to be alphabetic.
...
Print out the version number of the openpgpsdk library when showing the
version string.
Parse the existing ~/.gnupg/gpg.conf to get the default user id, if any.
Use the actual size of the arrays in snprintf(), rather than a size which
may or may not be accurate.
Get rid of an unused 8K array on the stack - it's not needed.
2009-02-07 05:36:51 +00:00
agc
02ebfd8cdc
Minor cosmetic change - no functional difference.
2009-02-07 05:32:27 +00:00
agc
852e7a06c8
Be a bit less rigid when re-allocating memory - don't just keep doubling
...
the size we've allocated; instead, if the current size is more than 8 MiB,
then add 1 MiB on; current behaviour remains unchanged for re-allocations
less than 8 MiB.
2009-02-07 05:31:28 +00:00
agc
c62065c7b1
Check the characters we're given when trying to decide whether it's a
...
key id, or a user id/name.
2009-02-07 05:28:55 +00:00
agc
eab6d9dfa6
Only use O_BINARY if it's defined (rather than the vague WIN32 definition
...
test).
Minor cosmetic changes
2009-02-07 05:26:19 +00:00
agc
203a89fce5
Fix a bug which prevented files signed with an RSA public key from being
...
decrypted.
2009-02-06 06:36:03 +00:00
agc
80a7466337
No need to define our own ops_boolean_t, ops_true and ops_false when
...
there are perfectly good values like bool, true and false waiting to
be used in <stdbool.h>
2009-02-05 06:03:49 +00:00
agc
dda6c6990e
When signing or encrypting files, allow the userid to be specified using
...
the (8 or 16) character keyid.
One more thing off the TODO list.
2009-02-05 01:42:39 +00:00
tteras
ee2923bc73
From: Phil Sutter. Fix script environment variables with IPv6 addresses.
2009-02-03 20:21:45 +00:00
agc
57ef716bf6
Document the --version switch to print out the version information from
...
the libopenpgpsdk(3) library
2009-02-02 20:24:36 +00:00
agc
c350af2e45
Document the function to get the version information for the openpgpsdk
...
library.
2009-02-02 20:21:26 +00:00
agc
40cade5517
Add a --version command to the openpgp utility, and document it. The
...
version is grabbed from the openpgpsdk library.
Make openpgp just include the one catch-all openpgpsdk header file.
2009-02-02 20:13:59 +00:00
agc
fed46fd602
Remove a block of text, which wiz had commented out - it was not meant to
...
be.
2009-01-31 16:00:18 +00:00
wiz
127b1b6933
mdoclint cleanup:
...
remove trailing whitespace and a few nits.
2009-01-31 14:16:34 +00:00
wiz
8edb63eafb
Add all options to SYNOPSIS.
...
Sort option descriptions.
Describe --passphrase, while it still is supported.
Use more markup.
Comment out block of text that didn't make sense to me in the context.
Punctuation improvements.
2009-01-31 14:14:10 +00:00
agc
fce523c3f5
Get rid of 3 static functions which performed the same operation on 3
...
different arrays, and replace them with a function which takes the array
and size as arguments. No functional change.
2009-01-31 02:33:22 +00:00
agc
aa5adc9663
Cosmetic change to surround the argument to sizeof in (brackets). No
...
functional change.
2009-01-31 01:44:31 +00:00
agc
d2d3b6f70a
Get rid of all occurrences of ops_mallocz(), since all it did was allocate
...
zeroed storage, and calloc(3) seems to do that just fine.
2009-01-31 01:20:32 +00:00
agc
f058249f4f
Add a manual page for the openpgpsdk library - very bare bones right now,
...
all contributions gratefully received.
Also add a convenience header file, which includes the other necessary
openpgpsdk header files - this means that
#include <openpgpsdk/openpgpsdk.h>
will get all the necessary definitions and declarations.
2009-01-31 00:48:18 +00:00
wiz
22e63019c0
mdoclint cleanup:
...
Sort sections.
Make HTML-ready.
Add RCS Id.
Fix section and man page names.
2009-01-30 22:59:37 +00:00
agc
c804754594
Make source match the documentation (I thought I'd committed these yesterday,
...
but it seems not).
Bump default number of bits from 1024 to 2048.
Add --armor as a synonym for --armour, and prepare for the great spelling war
of 2009.
2009-01-30 21:39:42 +00:00
agc
990ca9e392
Mac OS X has a CommonDigest wrapper around openssl - use this if necessary.
2009-01-30 04:16:15 +00:00
agc
467d65ac1a
Add a manual page for openpgp.1 (all contributions welcome, it's incomplete
...
right now).
Explain the reason for the WARNS=0 directive in openpgp(1)'s Makefile.
2009-01-30 04:14:19 +00:00
agc
00bc87c557
Run all the sources through indent.
...
Always print fingerprint information for keys when listing them.
Always display the publick key algorithm used (because of a bug, the
algorithm name was being ignored, rather than printed out).
2009-01-29 05:14:44 +00:00
martin
b9c66cb587
avoid comment inside comment
2009-01-28 19:03:10 +00:00
agc
fff13c1447
Fix problem in build reported by Paul Goyette
2009-01-28 17:27:35 +00:00
agc
06a360215d
Move to /* ... */ style of comments in this code - facilitates running
...
indent on the code.
2009-01-28 16:54:20 +00:00
agc
8da84dc021
Abstract away all the %zu uses, and use a symbolic constant for them.
...
With thanks to uwe for the information to make this portable.
Expose the ops_memory_t structure, since we're now using it outside
its own source file.
Various cosmetic changes, mainly for debugging purposes.
2009-01-28 01:29:15 +00:00
agc
ff02cd3e84
Use some symbolic constants where possible - take some of the magic out
...
of this.
Make the --list-keys command work again.
2009-01-28 01:24:49 +00:00
tnn
c7c8fe9828
Fix previous. That should of course be %zu.
2009-01-27 17:15:26 +00:00
tnn
b7888d42fa
use %zd for size_t
2009-01-27 15:34:39 +00:00
agc
ed31bb989a
The existing code has problems verifying a signed file which is more
...
than 8192 bytes long, as the callback data simply assigns any data it
receives to a buffer, and then calls the hash function on that buffer
when EOF is reached.
Use an inefficient temporary workaround for this by holding the memory
in a temporary buffer in the callback argument structure.
2009-01-27 02:25:13 +00:00
tteras
98b638ac57
Argument parsing needs lcconf initialized.
2009-01-26 18:13:06 +00:00
veego
1ac066df3f
Print size_t values using %zu printf format, not %ld
...
Thanks to Havard (and Matt Thomas) for pointing that out.
2009-01-25 13:38:17 +00:00