X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fsha1.c;h=b7dea1c2a577f4277455eaa0cfe9d2096aaab7c9;hb=87119b130bf7ec48181a33cd411f566d0234fc19;hp=ff4dd164779bbfc74b87aa2ae54d597f02ca9241;hpb=146549321044615d9aef2b30cedccda9c49f3f38;p=notmuch diff --git a/lib/sha1.c b/lib/sha1.c index ff4dd164..b7dea1c2 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -13,7 +13,7 @@ * 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, see http://www.gnu.org/licenses/ . + * along with this program. If not, see https://www.gnu.org/licenses/ . * * Author: Carl Worth */ @@ -43,14 +43,14 @@ _hex_of_sha1_digest (const unsigned char digest[SHA1_DIGEST_SIZE]) return result; } -/* Create a hexadcimal string version of the SHA-1 digest of 'str' +/* Create a hexadecimal string version of the SHA-1 digest of 'str' * (including its null terminating character). * * This function returns a newly allocated string which the caller * should free() when finished. */ char * -notmuch_sha1_of_string (const char *str) +_notmuch_sha1_of_string (const char *str) { sha1_ctx sha1; unsigned char digest[SHA1_DIGEST_SIZE]; @@ -74,7 +74,7 @@ notmuch_sha1_of_string (const char *str) * file not found, etc.), this function returns NULL. */ char * -notmuch_sha1_of_file (const char *filename) +_notmuch_sha1_of_file (const char *filename) { FILE *file; #define BLOCK_SIZE 4096 @@ -112,4 +112,3 @@ notmuch_sha1_of_file (const char *filename) return result; } -