From 957b11334a7afb14537322f0e4795b2e368b3f59 Mon Sep 17 00:00:00 2001 From: beck <> Date: Sun, 29 Jan 2017 17:49:23 +0000 Subject: Send the function codes from the error functions to the bit bucket, as was done earlier in libssl. Thanks inoguchi@ for noticing libssl had more reacharounds into this. ok jsing@ inoguchi@ --- src/lib/libcrypto/hmac/hmac.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/hmac/hmac.c') diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c index 155e32a540..8fd980b052 100644 --- a/src/lib/libcrypto/hmac/hmac.c +++ b/src/lib/libcrypto/hmac/hmac.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hmac.c,v 1.22 2015/02/10 09:52:35 miod Exp $ */ +/* $OpenBSD: hmac.c,v 1.23 2017/01/29 17:49:23 beck Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -80,7 +80,7 @@ HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md, reset = 1; j = EVP_MD_block_size(md); if ((size_t)j > sizeof(ctx->key)) { - EVPerr(EVP_F_HMAC_INIT_EX, EVP_R_BAD_BLOCK_LENGTH); + EVPerror(EVP_R_BAD_BLOCK_LENGTH); goto err; } if (j < len) { @@ -93,8 +93,7 @@ HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md, goto err; } else { if ((size_t)len > sizeof(ctx->key)) { - EVPerr(EVP_F_HMAC_INIT_EX, - EVP_R_BAD_KEY_LENGTH); + EVPerror(EVP_R_BAD_KEY_LENGTH); goto err; } memcpy(ctx->key, key, len); -- cgit v1.2.3-55-g6feb