summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/md5.cc
AgeCommit message (Collapse)AuthorFilesLines
2019-01-22Remove `register` keywordKhem Raj1-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>
2018-05-07Remove obsolete RCS keywordsGuillem Jover1-1/+0
Prompted-by: Jakub Wilk <jwilk@debian.org>
2016-09-01try not to call memcpy with length 0 in hash calculationsDavid Kalnischkies1-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
2014-03-13cleanup headers and especially #includes everywhereDavid Kalnischkies1-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)
2011-09-13Support large files in the complete toolset. Indexes of thisDavid Kalnischkies1-1/+1
size are pretty unlikely for now, but we need it for deb packages which could become bigger than 4GB now (LP: #815895)
2011-09-13reorder includes: add <config.h> if needed and include it at firstDavid Kalnischkies1-1/+2
2011-07-13move implementation of checksums around by abstracting even moreDavid Kalnischkies1-23/+0
2011-07-05apt-pkg/contrib/md5.cc: fix md5sum by using the right type (unsinged char*) ↵Michael Vogt1-1/+1
and avoiding a implicit cast this way
2011-02-25template based hashsum implementationMichael Vogt1-56/+1
2010-01-31merge r1966..1967 from lp:~donkult/apt/sidMichael Vogt1-2/+1
2009-07-16* apt-pkg/contrib/hashes.cc, apt-pkg/contrib/md5.cc:Julian Andres Klode1-4/+9
- Support reading until EOF if Size=0 to match behaviour of SHA1Summation and SHA256Summation
2007-09-10* make apt build with g++ 4.3Michael Vogt1-0/+1
2007-06-08* remove all the remaining #pragma implementationMichael Vogt1-4/+0
2005-05-23* merged with my apt--fixes--0 branchMichael Vogt1-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.
2004-09-20G++3 fixes from RandolphArch Librarian1-2/+2
Author: jgg Date: 2001-05-13 05:15:03 GMT G++3 fixes from Randolph
2004-09-20HP-UX fixesArch Librarian1-2/+2
Author: jgg Date: 1999-12-10 23:40:29 GMT HP-UX fixes
2004-09-20Actually fixed md5Arch Librarian1-7/+7
Author: jgg Date: 1999-11-16 03:10:56 GMT Actually fixed md5
2004-09-20More MD5Arch Librarian1-2/+2
Author: jgg Date: 1999-11-16 01:51:03 GMT More MD5
2004-09-20More md5 fixesArch Librarian1-6/+7
Author: jgg Date: 1999-11-16 01:41:49 GMT More md5 fixes
2004-09-20Fixed cast macro in byteswapArch Librarian1-2/+2
Author: jgg Date: 1999-11-14 01:47:55 GMT Fixed cast macro in byteswap
2004-09-20Doc fixArch Librarian1-6/+13
Author: jgg Date: 1999-10-31 06:32:27 GMT Doc fix
2004-09-20Patched md5 a bit moreArch Librarian1-17/+11
Author: jgg Date: 1999-10-25 04:10:02 GMT Patched md5 a bit more
2004-09-20C9x typesArch Librarian1-14/+15
Author: jgg Date: 1999-10-25 03:36:41 GMT C9x types
2004-09-20A few functions migrated aroundArch Librarian1-58/+21
Author: jgg Date: 1999-08-02 03:07:47 GMT A few functions migrated around
2004-09-20New http methodArch Librarian1-2/+2
Author: jgg Date: 1998-11-01 05:27:29 GMT New http method
2004-09-20Md5 supportArch Librarian1-0/+392
Author: jgg Date: 1998-10-31 05:19:59 GMT Md5 support