diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-10-08 08:24:42 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-10-08 08:24:42 +0200 |
commit | ef66da674e51fc30c71b11b0237c943b106744d0 (patch) | |
tree | d3dcb2bf17f65184f8b2ac04c93701063717e14b /libextra | |
parent | a6b2f5ce7316b4774649ee9b421da2ee7fef461f (diff) | |
download | gnutls-ef66da674e51fc30c71b11b0237c943b106744d0.tar.gz |
removed unneeded code.
Diffstat (limited to 'libextra')
-rw-r--r-- | libextra/fipsmd5.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/libextra/fipsmd5.c b/libextra/fipsmd5.c index b5482e716b..801289aadc 100644 --- a/libextra/fipsmd5.c +++ b/libextra/fipsmd5.c @@ -133,40 +133,6 @@ hmacmd5hash (void *ctx, const void *text, size_t textsize) } static int -hmacmd5copy (void **dst_ctx, void *src_ctx) -{ - struct hmacctx *p = src_ctx; - struct hmacctx *q; - - q = gnutls_malloc (sizeof (struct hmacctx)); - if (!q) - return -1; - - q->data = gnutls_malloc (p->datasize); - if (!q->data) - { - gnutls_free (q); - return -1; - } - memcpy (q->data, p->data, p->datasize); - q->datasize = p->datasize; - - q->key = gnutls_malloc (p->keysize); - if (!q->key) - { - gnutls_free (q); - gnutls_free (q->data); - return -1; - } - memcpy (q->key, p->key, p->keysize); - q->keysize = p->keysize; - - *dst_ctx = q; - - return 0; -} - -static int hmacmd5output (void *ctx, void *digest, size_t digestsize) { struct hmacctx *p = ctx; @@ -207,7 +173,6 @@ static gnutls_crypto_mac_st mac = { .init = hmacmd5init, .setkey = hmacmd5setkey, .hash = hmacmd5hash, - .copy = hmacmd5copy, .output = hmacmd5output, .deinit = hmacmd5deinit }; |