From 6e8d98da5daaf5b97dfa0459c1f842a2ac92e684 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 15 Jul 2024 18:50:42 +0000 Subject: [PATCH] Switch the EVP_PKEY_*attr* API to LCRYPTO_UNUSED() This would have prevented the PKCS12 oopsie. --- lib/libcrypto/hidden/openssl/x509.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/libcrypto/hidden/openssl/x509.h b/lib/libcrypto/hidden/openssl/x509.h index d80a3b2576c..29abbc5c0ef 100644 --- a/lib/libcrypto/hidden/openssl/x509.h +++ b/lib/libcrypto/hidden/openssl/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.7 2024/07/08 17:01:54 beck Exp $ */ +/* $OpenBSD: x509.h,v 1.8 2024/07/15 18:50:42 tb Exp $ */ /* * Copyright (c) 2022 Bob Beck * @@ -442,15 +442,15 @@ LCRYPTO_USED(X509_ocspid_print); LCRYPTO_USED(X509_CRL_print); LCRYPTO_USED(X509_REQ_print_ex); LCRYPTO_USED(X509_REQ_print); -LCRYPTO_USED(EVP_PKEY_get_attr_count); -LCRYPTO_USED(EVP_PKEY_get_attr_by_NID); -LCRYPTO_USED(EVP_PKEY_get_attr_by_OBJ); -LCRYPTO_USED(EVP_PKEY_get_attr); -LCRYPTO_USED(EVP_PKEY_delete_attr); -LCRYPTO_USED(EVP_PKEY_add1_attr); -LCRYPTO_USED(EVP_PKEY_add1_attr_by_OBJ); -LCRYPTO_USED(EVP_PKEY_add1_attr_by_NID); -LCRYPTO_USED(EVP_PKEY_add1_attr_by_txt); +LCRYPTO_UNUSED(EVP_PKEY_get_attr_count); +LCRYPTO_UNUSED(EVP_PKEY_get_attr_by_NID); +LCRYPTO_UNUSED(EVP_PKEY_get_attr_by_OBJ); +LCRYPTO_UNUSED(EVP_PKEY_get_attr); +LCRYPTO_UNUSED(EVP_PKEY_delete_attr); +LCRYPTO_UNUSED(EVP_PKEY_add1_attr); +LCRYPTO_UNUSED(EVP_PKEY_add1_attr_by_OBJ); +LCRYPTO_UNUSED(EVP_PKEY_add1_attr_by_NID); +LCRYPTO_UNUSED(EVP_PKEY_add1_attr_by_txt); LCRYPTO_USED(PKCS8_PRIV_KEY_INFO_new); LCRYPTO_USED(PKCS8_PRIV_KEY_INFO_free); LCRYPTO_USED(d2i_PKCS8_PRIV_KEY_INFO); -- 2.20.1