X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fbitsig.c;h=ed510fad0d4988c2fe9679d482f89bee715a9fde;hb=997624f88f37bec5cb96cf9fc3b3cac05ccc6ed8;hp=2e8d5c1f486f4c05a39cefd9602dce5c76131cbe;hpb=735c750e2f4e958ad4de51b43e857df1b6b03e28;p=libucw.git diff --git a/lib/bitsig.c b/lib/bitsig.c index 2e8d5c1f..ed510fad 100644 --- a/lib/bitsig.c +++ b/lib/bitsig.c @@ -36,6 +36,9 @@ * We leave L and an upper bound for N as parameters set during * creation of the structure. Currently, the structure is limited * to 4 Gb = 512 MB. + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -43,6 +46,7 @@ #include "lib/md5.h" #include +#include struct bitsig { uns l, m, n, maxn, max_m_mult; @@ -73,6 +77,12 @@ bitsig_init(uns perrlog, uns maxn) return b; } +void +bitsig_free(struct bitsig *b) +{ + xfree(b); +} + static void bitsig_hash_init(struct bitsig *b, byte *item) {