summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-10-27 15:48:17 +0000
committerSimon Josefsson <simon@josefsson.org>2005-10-27 15:48:17 +0000
commitde0b7f484b9d689f519c5ff82b4a25338578f3a3 (patch)
treee3061f16e926197b4718fdf85333a0c4d9100e89 /gl
parent846da220692b0974b56046635912349936f6d254 (diff)
downloadgnutls-de0b7f484b9d689f519c5ff82b4a25338578f3a3.tar.gz
Update.
Diffstat (limited to 'gl')
-rw-r--r--gl/gc-gnulib.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gl/gc-gnulib.c b/gl/gc-gnulib.c
index 26b0356685..99e522da3d 100644
--- a/gl/gc-gnulib.c
+++ b/gl/gc-gnulib.c
@@ -617,7 +617,7 @@ gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle * outhandle)
else
free (ctx);
- return GC_OK;
+ return rc;
}
Gc_rc
@@ -625,7 +625,6 @@ gc_hash_clone (gc_hash_handle handle, gc_hash_handle * outhandle)
{
_gc_hash_ctx *in = handle;
_gc_hash_ctx *out;
- Gc_rc rc = GC_OK;
*outhandle = out = calloc (sizeof (*out), 1);
if (!out)
@@ -670,7 +669,6 @@ void
gc_hash_write (gc_hash_handle handle, size_t len, const char *data)
{
_gc_hash_ctx *ctx = handle;
- Gc_rc rc = GC_OK;
switch (ctx->alg)
{
@@ -708,7 +706,6 @@ gc_hash_read (gc_hash_handle handle)
{
_gc_hash_ctx *ctx = handle;
const char *ret = NULL;
- Gc_rc rc;
switch (ctx->alg)
{
@@ -850,5 +847,5 @@ gc_hmac_sha1 (const void *key, size_t keylen,
void
gc_hash_hmac_setkey (gc_hash_handle handle, size_t len, const char *key)
{
- return GC_INVALID_HASH;
+ return;
}