Added comment linking the original source, and a comment about recent changes.

This commit is contained in:
Russell Keith-Magee 2025-02-20 11:00:06 +08:00
parent d420bdbc06
commit 3383197b13
No known key found for this signature in database
GPG key ID: 3D2DAB6A37BB5BC3

View file

@ -1,21 +1,33 @@
/* /*
this is a checksum routine that is specifically designed for spam. this is a checksum routine that is specifically designed for spam. Copyright
Copyright Andrew Tridgell <tridge@samba.org> 2002 Andrew Tridgell <tridge@samba.org> 2002
This code is released under the GNU General Public License version 2 This code is released under the GNU General Public License version 2 or later.
or later. Alternatively, you may also use this code under the terms Alternatively, you may also use this code under the terms of the Perl Artistic
of the Perl Artistic license. license.
If you wish to distribute this code under the terms of a different If you wish to distribute this code under the terms of a different free
free software license then please ask me. If there is a good reason software license then please ask me. If there is a good reason then I will
then I will probably say yes. probably say yes.
--- ---
Modified by Russell Keith-Magee, 20 Jan 2009: Original sources can be found at:
* removed the condition preventing comparison of small block sizes
(lines 364-366) https://www.samba.org/ftp/unpacked/junkcode/spamsum/
* Modified the help string to be legal cross platform C.
Changes from the original:
20 Jan 2009:
* Removed the condition preventing comparison of small block sizes (lines
364-366)
* Modified the help string to be legal cross platform C.
20 Feb 2025:
* Removed the spamsum_match_db, spamsum_stdin, spamsum_file, and mainline
entry points, plus imports required by those methods. These methods were
not exposed by the Python binding, and were problematic for Windows support.
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>