summaryrefslogtreecommitdiff
path: root/cipher/md.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-10-02 14:14:57 +0200
committerWerner Koch <wk@gnupg.org>2013-10-02 14:18:03 +0200
commitf04a1db22d982627ba87da4e5df52df9b994c779 (patch)
tree6d667dbe591382fcd19d7ea104209cc4091439fe /cipher/md.c
parent33757c1e03f1d885920633edf543cd1c77999455 (diff)
downloadlibgcrypt-f04a1db22d982627ba87da4e5df52df9b994c779.tar.gz
Remove deprecated control codes.
* src/gcrypt.h.in (GCRYCTL_SET_KEY): Remove. (GCRYCTL_SET_IV): Remove. (GCRYCTL_SET_CTR): Remove. * cipher/md.c (gcry_md_ctl): Remove deprecated GCRYCTL_SET_KEY. * cipher/cipher.c (gcry_cipher_ctl): Remove deprecated GCRYCTL_SET_KEY, GCRYCTL_SET_IV, GCRYCTL_SET_CTR. -- Real functions are available for a long time now thus there is no more point in supporting the control code hacks. We have an ABI break anyway thus this is a good time to get rid of them. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cipher/md.c b/cipher/md.c
index e3cc6c66..5c663973 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -717,14 +717,13 @@ gcry_md_ctl (gcry_md_hd_t hd, int cmd, void *buffer, size_t buflen)
{
gcry_err_code_t rc = 0;
+ (void)buflen; /* Currently not used. */
+
switch (cmd)
{
case GCRYCTL_FINALIZE:
md_final (hd);
break;
- case GCRYCTL_SET_KEY:
- rc = gcry_err_code (gcry_md_setkey (hd, buffer, buflen));
- break;
case GCRYCTL_START_DUMP:
md_start_debug (hd, buffer);
break;