summaryrefslogtreecommitdiff
path: root/src/gcrypt.h.in
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 /src/gcrypt.h.in
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 'src/gcrypt.h.in')
-rw-r--r--src/gcrypt.h.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 8fca52e0..719b9516 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -257,8 +257,7 @@ const char *gcry_check_version (const char *req_version);
/* Codes used with the gcry_control function. */
enum gcry_ctl_cmds
{
- GCRYCTL_SET_KEY = 1,
- GCRYCTL_SET_IV = 2,
+ /* Note: 1 .. 2 are not anymore used. */
GCRYCTL_CFB_SYNC = 3,
GCRYCTL_RESET = 4, /* e.g. for MDs */
GCRYCTL_FINALIZE = 5,
@@ -298,7 +297,7 @@ enum gcry_ctl_cmds
GCRYCTL_ANY_INITIALIZATION_P = 40,
GCRYCTL_SET_CBC_CTS = 41,
GCRYCTL_SET_CBC_MAC = 42,
- GCRYCTL_SET_CTR = 43,
+ /* Note: 43 is not anymore used. */
GCRYCTL_ENABLE_QUICK_RANDOM = 44,
GCRYCTL_SET_RANDOM_SEED_FILE = 45,
GCRYCTL_UPDATE_RANDOM_SEED_FILE = 46,