Commit graph

23 commits

Author SHA1 Message Date
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
agc
30b3ee084a No functional changes.
Add a very small regression test script.
Add a "test" target to the package Makefile.
Suggested by Dan McMahill.
2001-03-14 17:27:05 +00:00
dmcmahill
aa50384881 add missing header file. makes this build on alpha with -Werror. 2001-03-13 15:09:55 +00:00
agc
6fed36d326 Add sha256, sha384 and sha512 digest algorithms, with BSD-licenced
code from Aaron Gifford.

Bump version number to 20010307

Simplify the manual page installation:

+ remove the :D.gz modifier from the manual page installation commands.
It's not necessary, as bsd.pkg.mk works out whether the manual page
is gzipped or not

+ just use the make(1) :M modifier to work out
whether catinstall and maninstall are set in ${MANINSTALL}
2001-03-12 09:08:40 +00:00
tron
49942d77b2 Make this build with the latest "zoularis" again. 2001-03-11 22:29:16 +00:00
tron
02b9a46f56 Remove unnecessary bootstrap kludge to make patches work for this package.
Because the source are included we can simply update them.
2001-03-10 15:55:14 +00:00
tron
5be1fa6c13 To make bootstrap of this package work again we need MD5 checksums. 2001-03-10 15:23:55 +00:00
wiz
5400d3e577 regen (pkglint!) 2001-03-10 13:59:05 +00:00
tron
f4a60f3f98 Make this package work under Solaris. 2001-03-10 11:18:09 +00:00
agc
7375ba660e Don't use __weak_alias() when compiling. Fixes a coredump on 1.5, noted
by Chuq Silvers
2001-03-08 14:55:17 +00:00
agc
f29caca16e Import of a small utility, which calculates message digests, into the
NetBSD packages collection.

At the current time, this utility calculates md5, sha1 and rmd160
message digests, but is designed to be extensible, so that other
algorithms can be added easily, if and when they appear.

The utility outputs digests in the same format as md5(1) in basesrc.

It is designed to be small, and to be linked statically.
2001-03-06 11:21:04 +00:00