]> git.tuebingen.mpg.de Git - adu.git/commitdiff
Remove sha1.c
authorAndre Noll <maan@systemlinux.org>
Mon, 10 Nov 2008 00:38:10 +0000 (01:38 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 10 Nov 2008 00:38:10 +0000 (01:38 +0100)
This was never needed.

sha1.c [deleted file]

diff --git a/sha1.c b/sha1.c
deleted file mode 100644 (file)
index 1c3d00f..0000000
--- a/sha1.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
-
-/** \file sha1.c Secure Hash Algorithm, provided by openssl. */
-
-#include "adu.h"
-#include <openssl/sha.h>
-
-/**
- * Compute the sha1 hash.
- *
- * \param data Pointer to the data to compute the hash value from.
- * \param len The length of \a data in bytes.
- * \param sha1 Result pointer.
- *
- * \a sha1 must point to an area at least 20 bytes large.
- *
- * \sa sha(3), openssl(1).
- * */
-void sha1_hash(const char *data, unsigned long len, unsigned char *sha1)
-{
-       SHA_CTX c;
-       SHA1_Init(&c);
-       SHA1_Update(&c, data, len);
-       SHA1_Final(sha1, &c);
-}