X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=sha1.h;h=1eb8d8dd0c37bd789f50c906a0e6cfddc0bb4712;hp=1ede8b3bbbce6822b02b225a27f349b62031e103;hb=f38dd9bcb0caffd3fc9126b05788c936690e8288;hpb=5eeb3286b0a8a892195462c37815a064311ce1f6 diff --git a/sha1.h b/sha1.h index 1ede8b3..1eb8d8d 100644 --- a/sha1.h +++ b/sha1.h @@ -1,21 +1,28 @@ -/* Declarations of functions and data types used for SHA1 sum - library functions. - Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc. - Copyright (C) 2006 Michael Vrable - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +/* Declarations of functions and data types used for SHA1 sum library + * functions. + * part of Cumulus: Smart Filesystem Backup to Dumb Servers + * + * Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc. + * Copyright (C) 2006-2007 The Regents of the University of California + * + * Original code (in C) is taken from GNU coreutils (Debian package 5.97-5). + * Modifications by Michael Vrable to integrate into + * Cumulus. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #ifndef SHA1_H # define SHA1_H 1 @@ -88,6 +95,7 @@ public: ~SHA1Checksum(); void process(const void *data, size_t len); + bool process_file(const char *filename); const uint8_t *checksum(); size_t checksum_size() const { return 20; } std::string checksum_str();