Commit graph

60 commits

Author SHA1 Message Date
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
dholland
e23c5d67c4 Regen. 2013-01-03 10:21:21 +00:00
dholland
32fca5cf08 Remove configure test for vprintf, which wasn't even being used, and
configure tests for memset/memcpy, which are standard and haven't
needed checking in a long time. This makes the configure script
tolerate injection of -Werror.

Fix signed/unsigned mismatches in the sha2 and whirlpool code. This
package now passes -Wall with gcc45.

Bump the package version to 20121220, which is when I made these
changes.
2013-01-03 10:20:31 +00:00
cheusov
75f5cc8ca9 Fix segmentation fault of digest(1) on Linux when directory
is passed as an argument or when read error occurs.
Update version to 20111104.
2011-11-04 23:58:14 +00:00
obache
4d9c18416f Exactly include unistd.h for size_t (at least, need for Haiku). 2010-01-23 13:25:12 +00:00
joerg
d0c565a211 Define int64_t if missing. Should fix PR 41396. 2009-05-09 01:45:10 +00:00
joerg
99269d29a5 Regen with autoconf 2.63. The endian macro issues on Mac OS X have been
addressed according to PR 38625.
2009-02-09 19:18:42 +00:00
joerg
ce6709837a Bump version to 20080510. 2008-05-11 18:39:20 +00:00
joerg
3a1ba09130 As workaround for PR 38625, rebuild with autoconf 2.61. 2008-05-11 18:38:15 +00:00
joerg
9502292e69 Fix a bug in the SHA512 implementation that would be triggered if the
last block has exactly the length of a short fragment. This happened
incidently with two files in the NetBSD 4.0 release.
2008-05-09 16:19:57 +00:00
joerg
647e9d137e digest-20080509:
The tiger hash needs to run at least once through the update function,
even for empty input. The fix is different from the patch in PR 36565.
2008-05-09 15:00:32 +00:00
joerg
f60512c785 Fully ANSIfy and use size_t and uint32_t in places where u_int was used
before. This fixes the build on QNX, where u_int is not exposed by the
current set of headers. Make the prototypes of the crypto functions
consistent.
2007-09-21 18:44:36 +00:00
joerg
66a0cbeee0 Don't use u_char when uint8_t are meant. Don't mess with __attribute__,
conditionally use it in the only place it is used. This should fix
problems on QNX reported by Sean Boudreau.
2007-09-14 08:12:29 +00:00
tnn
5b5761f0b7 Bump version to 20070803 after fixing a crash when generating Tiger hashes 2007-08-03 21:42:04 +00:00
tnn
155170f318 Allocate enough storage space to hold a tiger hash. Corrects a
segfault caused by writing past the end of the buffer.
XXX how do I bump the version of this package?
2007-08-03 17:10:07 +00:00
joerg
5122a367fd Include inttypes.h if it exists. Fixes issues on OSF/1 as reported
by tnn@.
2007-08-02 13:54:34 +00:00
joerg
315daaa372 As reported by tnn@, the old approach to find the byte order
doesn't work on HP-UX/Itanium. Use the standard approach using
AC_C_BIGENDIAN. Tested by myself on i386, he@ on SPARC and tnn@ on
HP-UX.
2007-07-27 17:08:27 +00:00
minskim
30720001b0 Include stdint.h to use integer types such as uint32_t. 2007-07-08 05:09:09 +00:00
joerg
b1a42ef8c2 Make pkgtools/digest cross-compilation ready and actually improve
portability somewhat:
- consistently use POSIX uint{8,16,32,64}_t throughout the code.
- asssume for now that the compiler supports ULL as suffix
- use AC_TYPE_UINT{8,16,32,64}_T instead of bits.c to compute
  possible replacement types.

Bump to 20070703. Tested by Thorsten Glaser on Interix and tnn@ on
Solaris.
2007-07-03 18:54:02 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
joerg
49de1e68ab Revert libncompat usage and kill the use of snprintf in whirlpool and
tiger instead. Also kill bogus NULL pointer handling in both algorithms:
passing null pointers as buffers (when len != 0) or context is a serious
programming error and should result in a segfault. Bump version to
20060826. OK agc@
2006-08-29 13:43:11 +00:00
agc
493baa8da5 Update the digest package to 20060302.
Apply Tyler Retzlaff's patches from PR 32323 to make this compile with gcc4.
2006-03-02 20:34:17 +00:00
joerg
9534013f8c Update AC_C___ATTRIBUTE__ macro with newer version on Heimdal,
the old one is just bogus and depends on GCC extensions. Unbreaks
GCC 4 build.
2006-03-01 16:44:28 +00:00
grant
ecf46f2b5a include digest-types.h so the various {u,}intNN_t types are defined.
fixes build on BSD/OS.

from T. M. Pederson in PR pkg/31024.
2005-08-21 05:26:33 +00:00
agc
f889f01b22 Update digest to version 20050731:
Pull in a patch from Vsevolod Stakhov via FreeBSD:

	Because that the 55-bytes input-message becomes just 64 bytes
	block after `the message terminator code(0x80)' and
	`size-field(8-bytes field)' are added.  Perhaps, I think the
	block of a lot of one be made at this time.

Fixes PR 30857
2005-07-31 22:45:24 +00:00
minskim
6c25e87617 Include stdint.h because uint32_t is used. Makes the package build on
Linux again.
2005-03-24 15:37:40 +00:00
yamt
d64f41391e fix a memory leak. 2005-03-23 21:40:35 +00:00
agc
185921b533 Update digest to version 20050323. The whirlpool digest algorithm was
added in this version, taken from the reference code from the NESSIE
project. Passes regression test suite on NetBSD/{i386,sparc64} and
also on SunOS 5.9 sparc (thanks, Jonathan).
2005-03-23 14:32:19 +00:00
wiz
7db5367d53 Bump date for tiger. > -> \*[Gt] 2005-03-22 12:42:02 +00:00
agc
0efe6ebb73 Add support for the tiger algorithm to digest.
Bump version to 20050310.

The cabal known as the cryptographers might like to have a look at the
first two results in test 6 of the regression tests.
2005-03-22 10:16:15 +00:00
grant
272275bcea update config.{sub,guess} to fix build on newer platforms such as
DragonFly. part of PR pkg/28579 from Todd Willey. thanks!
2004-12-15 02:37:59 +00:00
grant
f2d85b7aed add missing DESCR to DISTFILES. 2004-03-28 02:43:21 +00:00
grant
35c826f6a5 sync with ../DESCR 2004-03-28 02:42:51 +00:00
atatat
677c3a74db Fix the usage line. Addresses PR pkg/22207. 2003-07-24 00:27:09 +00:00
seb
e59a7f655d Remove AC_FUNC_MALLOC: there is no need to check for a compatible GNU malloc
as there is no call to malloc(0) in this code.
As a side effect, need to explicitly add a check for <stdlib.h>.
2003-07-20 19:55:01 +00:00
atatat
0d6688542d Only need to #include <digest-types.h> once. Discovered during sync
with bootstrap-pkgsrc/digest.
2003-06-23 13:12:53 +00:00
seb
4f5d385691 Redde Caesari quae sunt Caesaris... 2003-06-16 16:11:35 +00:00
atatat
49758757d0 A function that is declared to return an int *really ought to do do*.
I expect that since all possible code paths through this function did,
as their last step, an assignment of what was to be the return value,
that the registers somehow ended up nicely arranged after we fell out
of the bottom of the function.

But it's still better just to return a value.
2003-06-16 13:35:22 +00:00
atatat
99b76b3894 Reword the guts of digest so that the entry points into the various
hashes (fooInit(), fooUpdate(), fooFinal(), and fooFile()) are in the
array of structs that list the digests we support.

This makes the code somewhat simpler, easier to patch, and makes it
much easier to add new algorithms.

Note that since this *only* changes the inner workings of the digest
program, we don't need to touch the version number.

Approved (finally) by agc.  :)
2003-06-15 00:42:29 +00:00
schmonz
9ded3433a9 "Import" autoconf'd digest source from othersrc/bootstrap-pkgsrc/digest
into ${FILESDIR}. (Using autoconf greatly simplifies maintenance
of this package across multiple platforms.) Copy the sources into
${WRKSRC} during "do-extract". We automagically determine VERSION
by inspecting ${FILESDIR}/configure.

USE_BUILDLINK2=no because this is a pkgsrc bootstrap tool.
2002-12-21 04:06:10 +00:00
abs
515e56567b Make this work under Linux, and fix manpage install on SunOS 2002-06-21 15:26:07 +00:00
wiz
b4f0a668fa Miscellaneous man page fixes. 2001-12-03 19:03:19 +00:00
agc
7dad1fb4e4 Don't build digest statically on Darwin. 2001-10-30 14:07:33 +00:00
wiz
5fda8f604d Add some `\n' in error messages, per pkg/13650 by Stoned Elipot.
Bump to 20010807.
2001-08-07 22:14:52 +00:00
hubertf
a5fad2cd26 Pull in consistent set of headers (<sys/cdefs.h> - BSD-specific too,
but at least it's consistent :)
2001-07-09 21:43:20 +00:00
hubertf
59758216a2 Get rid of BSD err() and warn() functions - for great just^Wportability! 2001-07-09 21:42:30 +00:00
hubertf
9fbec0016f Always use this pkg's md5 routines. The Solaris ones e.g. aren't
compatible, and not everyone uses a full BSD environment on !BSD.
2001-07-09 21:42:03 +00:00
agc
9245ae2221 Include the rmd160 sources unconditionally, in reponse to a number of
reports which state that, although /usr/include/rmd160.h exists, the
corresponding rmd160*() routines are not available in libc.

Bump version number to 20010320
2001-03-29 08:42:14 +00:00
agc
c5809a44ab + Use libc mods to force aligned access.
+ Always use the included sha1 source, since libc's may cause
unaligned access.
+ Don't allow weak aliases in included sha1 code.
+ Bump package version number
2001-03-26 12:57:32 +00:00
agc
d33b36cd21 Align correctly on LP64 platforms - from Andrew Brown and Simon Burge.
Bump version string accordingly
2001-03-22 09:51:47 +00:00