summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/p_lib.c
diff options
context:
space:
mode:
authortb <>2022-11-18 14:45:10 +0000
committertb <>2022-11-18 14:45:10 +0000
commit54b961b017cbfded9bc4892699ccbc35bebf5c6f (patch)
tree48e2b4585e54a8205c6dbeb0131ead3e7cfc4d15 /src/lib/libcrypto/evp/p_lib.c
parent5673137f00930926e8191aab226a21afaea9ad31 (diff)
downloadopenbsd-54b961b017cbfded9bc4892699ccbc35bebf5c6f.tar.gz
openbsd-54b961b017cbfded9bc4892699ccbc35bebf5c6f.tar.bz2
openbsd-54b961b017cbfded9bc4892699ccbc35bebf5c6f.zip
Change the pkey.ptr from char * to void *
Now that EVP_PKEY is opaque, there is no reason to keep the ptr member of the pkey union as a weird char pointer, a void pointer will do. This avoids a few stupid casts and simplifies an upcoming diff. ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/p_lib.c')
-rw-r--r--src/lib/libcrypto/evp/p_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_lib.c b/src/lib/libcrypto/evp/p_lib.c
index 2e0830b96e..ec3949b4c1 100644
--- a/src/lib/libcrypto/evp/p_lib.c
+++ b/src/lib/libcrypto/evp/p_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p_lib.c,v 1.30 2022/11/10 14:46:44 jsing Exp $ */ 1/* $OpenBSD: p_lib.c,v 1.31 2022/11/18 14:45:10 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -388,7 +388,7 @@ EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv, size_t len,
388 goto err; 388 goto err;
389 } 389 }
390 390
391 ret->pkey.ptr = (char *)cmctx; 391 ret->pkey.ptr = cmctx;
392 392
393 return ret; 393 return ret;
394 394