Skip to content

Commit

Permalink
EVP_MAC ctrl numbering duplicate removal.
Browse files Browse the repository at this point in the history
Both EVP_MAC_CTRL_SET_MD and EVP_MAC_CTRL_SET_CIPHER were numbered 4.
This would preclude any future MAC from using both.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Yang <yang.yang@baishancloud.com>
(Merged from #7566)
  • Loading branch information
paulidale committed Nov 5, 2018
1 parent 9368979 commit 38cfa99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/openssl/evp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1024,9 +1024,9 @@ void EVP_MAC_do_all_sorted(void (*fn)
# define EVP_MAC_CTRL_SET_FLAGS 0x02 /* unsigned long */
# define EVP_MAC_CTRL_SET_ENGINE 0x03 /* ENGINE * */
# define EVP_MAC_CTRL_SET_MD 0x04 /* EVP_MD * */
# define EVP_MAC_CTRL_SET_CIPHER 0x04 /* EVP_CIPHER * */
# define EVP_MAC_CTRL_SET_SIZE 0x05 /* size_t */
# define EVP_MAC_CTRL_SET_IV 0x06 /* unsigned char *, size_t */
# define EVP_MAC_CTRL_SET_CIPHER 0x05 /* EVP_CIPHER * */
# define EVP_MAC_CTRL_SET_SIZE 0x06 /* size_t */
# define EVP_MAC_CTRL_SET_IV 0x07 /* unsigned char *, size_t */

/* PKEY stuff */
int EVP_PKEY_decrypt_old(unsigned char *dec_key,
Expand Down

0 comments on commit 38cfa99

Please sign in to comment.