summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/md5.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove `register` keywordKhem Raj2019-01-221-1/+1
| | | | | | | | | | | | | | | | | | In C++17 `register` keyword was removed. Current gcc 8.1.0 produces following warning if `-std=c++17` flag is used: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] GCC almost completely ignores `register` keyword, with rare exception of `-O0` when additional copy from/to stack may be generated. For simplicity of the codebase it is better to just remove this problematic keyword where it is not strictly required. See: http://en.cppreference.com/w/cpp/language/storage_duration Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Remove obsolete RCS keywordsGuillem Jover2018-05-071-1/+0
| | | | Prompted-by: Jakub Wilk <jwilk@debian.org>
* try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies2016-09-011-0/+2
| | | | | | | | | | memcpy is marked as nonnull for its input, but ignores the input anyhow if the declared length is zero. Our SHA2 implementations do this as well, it was "just" MD5 and SHA1 missing, so we add the length check here as well as along the callstack as it is really pointless to do all these method calls for "nothing". Reported-By: gcc -fsanitize=undefined
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-5/+1
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* Support large files in the complete toolset. Indexes of thisDavid Kalnischkies2011-09-131-1/+1
| | | | size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
* reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies2011-09-131-1/+2
|
* move implementation of checksums around by abstracting even moreDavid Kalnischkies2011-07-131-23/+0
|
* apt-pkg/contrib/md5.cc: fix md5sum by using the right type (unsinged char*) ↵Michael Vogt2011-07-051-1/+1
| | | | and avoiding a implicit cast this way
* template based hashsum implementationMichael Vogt2011-02-251-56/+1
|
* merge r1966..1967 from lp:~donkult/apt/sidMichael Vogt2010-01-311-2/+1
|
* * apt-pkg/contrib/hashes.cc, apt-pkg/contrib/md5.cc:Julian Andres Klode2009-07-161-4/+9
| | | | - Support reading until EOF if Size=0 to match behaviour of SHA1Summation and SHA256Summation
* * make apt build with g++ 4.3Michael Vogt2007-09-101-0/+1
|
* * remove all the remaining #pragma implementationMichael Vogt2007-06-081-4/+0
|
* * merged with my apt--fixes--0 branchMichael Vogt2005-05-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * apt@packages.debian.org/apt--misc-abi-changes--0--patch-4 Merge from mainline * apt@packages.debian.org/apt--misc-abi-changes--0--patch-5 Merge from mainline * apt@packages.debian.org/apt--misc-abi-changes--0--patch-6 Collapse both pkgAcquire::Run() methods into one, with a default value * michael.vogt@ubuntu.com--2005/apt--fixes--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-79 * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-1 * merged obvious fixes into the tree to make it easy for matt to merge * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-2 * more merges from otavio that looks good/uncritical * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-3 * merged Matts misc-abi-changes tree * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-4 * finalized the changelog for a ubuntu build * otavio@debian.org--2005/apt--fixes--0--base-0 tag of apt@packages.debian.org/apt--main--0--patch-71 * otavio@debian.org--2005/apt--fixes--0--patch-1 Fix comments about the need of xmlto * otavio@debian.org--2005/apt--fixes--0--patch-2 Fix a compile warning * otavio@debian.org--2005/apt--fixes--0--patch-3 Sync with apt--main--0--patch-76 * otavio@debian.org--2005/apt--fixes--0--patch-4 Sync with apt--main--0--patch-78 * otavio@debian.org--2005/apt--fixes--0--patch-5 Add fixes that was wrongly included on DDTP changes. * otavio@debian.org--2005/apt--fixes--0--patch-8 Add information about the other fixes include on this branch now. * otavio@debian.org--2005/apt--fixes--0--patch-9 Merge last changes from apt--main--0. * otavio@debian.org--2005/apt--fixes--0--patch-10 Fix warnings about min/max change in gcc-4.0 * otavio@debian.org--2005/apt--fixes--0--patch-11 Fix remaning warnings while compiling gcc-4.0 * otavio@debian.org--2005/apt--fixes--0--patch-12 Add changelog entry about the fixes for warnings while compiling using GCC 4.0 compiler.
* G++3 fixes from RandolphArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 2001-05-13 05:15:03 GMT G++3 fixes from Randolph
* HP-UX fixesArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
* Actually fixed md5Arch Librarian2004-09-201-7/+7
| | | | | | Author: jgg Date: 1999-11-16 03:10:56 GMT Actually fixed md5
* More MD5Arch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-11-16 01:51:03 GMT More MD5
* More md5 fixesArch Librarian2004-09-201-6/+7
| | | | | | Author: jgg Date: 1999-11-16 01:41:49 GMT More md5 fixes
* Fixed cast macro in byteswapArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1999-11-14 01:47:55 GMT Fixed cast macro in byteswap
* Doc fixArch Librarian2004-09-201-6/+13
| | | | | | Author: jgg Date: 1999-10-31 06:32:27 GMT Doc fix
* Patched md5 a bit moreArch Librarian2004-09-201-17/+11
| | | | | | Author: jgg Date: 1999-10-25 04:10:02 GMT Patched md5 a bit more
* C9x typesArch Librarian2004-09-201-14/+15
| | | | | | Author: jgg Date: 1999-10-25 03:36:41 GMT C9x types
* A few functions migrated aroundArch Librarian2004-09-201-58/+21
| | | | | | Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
* New http methodArch Librarian2004-09-201-2/+2
| | | | | | Author: jgg Date: 1998-11-01 05:27:29 GMT New http method
* Md5 supportArch Librarian2004-09-201-0/+392
Author: jgg Date: 1998-10-31 05:19:59 GMT Md5 support