summaryrefslogtreecommitdiff
path: root/rest/sha1.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-06-28 12:33:07 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-06-28 12:33:07 +0200
commit44a79fd73de5862d2106f5ad9192b566502a7052 (patch)
tree59af7bf3ad61981f73f40ef3e0bd18547aa8bcb8 /rest/sha1.h
parent2a8dac4cc7aeca25b182bb9806ddb1881f2f4994 (diff)
downloadlibrest-44a79fd73de5862d2106f5ad9192b566502a7052.tar.gz
Revert "Use HMAC glib implementation instead of rolling our own"
This reverts commit 2a8dac4cc7aeca25b182bb9806ddb1881f2f4994. Pushed by mistake...
Diffstat (limited to 'rest/sha1.h')
-rw-r--r--rest/sha1.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/rest/sha1.h b/rest/sha1.h
new file mode 100644
index 0000000..3538e21
--- /dev/null
+++ b/rest/sha1.h
@@ -0,0 +1,22 @@
+/*
+ * librest - RESTful web services access
+ * Copyright (c) 2008, 2009, Intel Corporation.
+ *
+ * Authors: Ross Burton <ross@linux.intel.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU Lesser General Public License,
+ * version 2.1, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ */
+
+char * hmac_sha1 (const char *key, const char *message);