summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-06-20 14:12:51 +0000
committertb <>2023-06-20 14:12:51 +0000
commit7ea401adb2804ed6d2775743d6b107919b67360c (patch)
treea57e9ee6ffc56d6dfaa3bb6bca0adce912b5507d
parent8ee8908c1e8d7f63191d0d1be9b8dd96f87bbe29 (diff)
downloadopenbsd-7ea401adb2804ed6d2775743d6b107919b67360c.tar.gz
openbsd-7ea401adb2804ed6d2775743d6b107919b67360c.tar.bz2
openbsd-7ea401adb2804ed6d2775743d6b107919b67360c.zip
Rename int_ctx_new() into evp_pkey_ctx_new()
int_ctx_new() is a bad, generic, nondescriptive name. requested by jsing
-rw-r--r--src/lib/libcrypto/evp/pmeth_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c
index 1eb73f57bd..d9001ea8fd 100644
--- a/src/lib/libcrypto/evp/pmeth_lib.c
+++ b/src/lib/libcrypto/evp/pmeth_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pmeth_lib.c,v 1.29 2023/06/20 14:10:05 tb Exp $ */ 1/* $OpenBSD: pmeth_lib.c,v 1.30 2023/06/20 14:12:51 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -151,7 +151,7 @@ EVP_PKEY_meth_find(int type)
151} 151}
152 152
153static EVP_PKEY_CTX * 153static EVP_PKEY_CTX *
154int_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) 154evp_pkey_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id)
155{ 155{
156 EVP_PKEY_CTX *pkey_ctx = NULL; 156 EVP_PKEY_CTX *pkey_ctx = NULL;
157 const EVP_PKEY_METHOD *pmeth; 157 const EVP_PKEY_METHOD *pmeth;
@@ -259,13 +259,13 @@ EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth)
259EVP_PKEY_CTX * 259EVP_PKEY_CTX *
260EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) 260EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e)
261{ 261{
262 return int_ctx_new(pkey, e, -1); 262 return evp_pkey_ctx_new(pkey, e, -1);
263} 263}
264 264
265EVP_PKEY_CTX * 265EVP_PKEY_CTX *
266EVP_PKEY_CTX_new_id(int id, ENGINE *e) 266EVP_PKEY_CTX_new_id(int id, ENGINE *e)
267{ 267{
268 return int_ctx_new(NULL, e, id); 268 return evp_pkey_ctx_new(NULL, e, id);
269} 269}
270 270
271EVP_PKEY_CTX * 271EVP_PKEY_CTX *