Unifdef PBE_PRF_TEST
authortb <tb@openbsd.org>
Tue, 26 Mar 2024 06:58:21 +0000 (06:58 +0000)
committertb <tb@openbsd.org>
Tue, 26 Mar 2024 06:58:21 +0000 (06:58 +0000)
This gets use of the last mention of EVP_CTRL_PBE_PRF_NID outside of evp.h

ok jsing

lib/libcrypto/evp/e_rc2.c

index 0a19551..25caef6 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: e_rc2.c,v 1.27 2024/01/07 15:42:57 tb Exp $ */
+/* $OpenBSD: e_rc2.c,v 1.28 2024/03/26 06:58:21 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -397,12 +397,6 @@ rc2_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr)
                }
                return 0;
 
-#ifdef PBE_PRF_TEST
-       case EVP_CTRL_PBE_PRF_NID:
-               *(int *)ptr = NID_hmacWithMD5;
-               return 1;
-#endif
-
        default:
                return -1;
        }