summaryrefslogtreecommitdiffstats
path: root/lib/libmd/mdXhl.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r281928:ngie2015-05-181-1/+1
| | | | | | | | | | | | | | Avoid an infinite loop by ensuring that the amount of bytes read is greater than 0 in MDXFileChunk when calculating the checksum This edgecase can be triggered if the file is truncated while the checksum is being calculated (i.e. the EOF is reached) Differential Revision: https://reviews.freebsd.org/D2351 (patch by darius) PR: 196694 Reviewed by: delphij, ngie Submitted by: Daniel O'Connor <darius@dons.net.au> Sponsored by: EMC / Isilon Storage Division
* Fix an 11 year old mistake: Let the hash functions take a void* insteadphk2006-01-171-1/+1
| | | | of unsigned char* argument.
* Get this file closer to style(9).phk2002-09-081-51/+55
|
* Fix a bug where calling MD5File(3) with a zero-length file generated anbmah2002-09-061-0/+1
| | | | | | error, due to an uninitialized variable. Reviewed by: phk, archie
* Modernize my email address.phk2002-03-251-1/+1
|
* add __FBSDID()s to libmddillon2001-09-301-3/+3
|
* Add a new entrypoint to the hashes in libmd:phk2001-03-171-7/+29
| | | | | | | | | char * FooFileChunk(const char *filename, char *buf, off_t offset, off_t length) Which only hashes part of a file. Implement FooFile() in terms of this function. Submitted by: roam
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix bug in MDx test suite.wollman1999-02-261-6/+6
| | | | Add Eric Young's SHA-[01] implementations.
* Make the MD* header files C++-aware. Also, string arguments are supposedjoerg1997-08-251-2/+2
| | | | | | | to be of type `const char *'. PR: 3291 Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Moved #include of <sys/types.h> earlier so that this compiles whenbde1996-10-251-7/+8
| | | | | | <stdio.h> doesn't (bogusly) include <sys/types.h>. Cleaned up #includes.
* Fix a memory leak in MD[245]End()phk1996-07-241-9/+8
| | | | | Submitted by: Ikuo Nakagawa <ikuo@isl.intec.co.jp> PR: misc/1424
* Change this to do what it should have done from the start.phk1995-07-121-11/+14
| | | | | Add argument for buffer for output. Fix manuals.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* No sense in copying the hex[] array in each call to MDXEnd(), it's awollman1995-04-271-2/+2
| | | | constant. (There probably ought to be a single libc version of it.)
* Clean a bunch of -Wall warnings.phk1995-02-241-4/+4
|
* Added "const" to the arguments here and there.phk1994-11-071-1/+1
|
* Reviewed by: phkphk1994-07-241-0/+68
Imported libmd. This library contains MD2, MD4 and MD5. These three boggers pop up all over the place all of the time, so I decided we needed a library with them. In general they are used for security checks, so if you use them you want to link them static.
OpenPOWER on IntegriCloud