summaryrefslogtreecommitdiff
path: root/lib/hash_int.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-23 11:07:11 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-07-10 07:25:52 +0000
commitcc73fe9d141dc94efe5b647c96bf1f1659169f1c (patch)
tree7ab8c6a6bbc36cb6b840d7cd994017a468eb4a8c /lib/hash_int.c
parent3f918162903828e7206f8b7deeef87f1c196e2e8 (diff)
downloadgnutls-cc73fe9d141dc94efe5b647c96bf1f1659169f1c.tar.gz
Removed unused functions
These were identified using callcatcher. http://www.skynet.ie/~caolan/Packages/callcatcher.html Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/hash_int.c')
-rw-r--r--lib/hash_int.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/hash_int.c b/lib/hash_int.c
index 024b41a6bb..ba2a5f01f1 100644
--- a/lib/hash_int.c
+++ b/lib/hash_int.c
@@ -468,38 +468,6 @@ ssl3_md5(int i, uint8_t * secret, int secret_len,
}
int
-_gnutls_ssl3_hash_md5(const void *first, int first_len,
- const void *second, int second_len,
- int ret_len, uint8_t * ret)
-{
- uint8_t digest[MAX_HASH_SIZE];
- digest_hd_st td;
- int block = MD5_DIGEST_OUTPUT;
- int rc;
-
- rc = _gnutls_hash_init(&td, mac_to_entry(GNUTLS_MAC_MD5));
- if (rc < 0) {
- gnutls_assert();
- return rc;
- }
-
- _gnutls_hash(&td, first, first_len);
- _gnutls_hash(&td, second, second_len);
-
- _gnutls_hash_deinit(&td, digest);
-
- if (ret_len > block) {
- gnutls_assert();
- return GNUTLS_E_INTERNAL_ERROR;
- }
-
- memcpy(ret, digest, ret_len);
-
- return 0;
-
-}
-
-int
_gnutls_ssl3_generate_random(void *secret, int secret_len,
void *rnd, int rnd_len,
int ret_bytes, uint8_t * ret)