diff options
author | tb <> | 2022-11-18 14:45:10 +0000 |
---|---|---|
committer | tb <> | 2022-11-18 14:45:10 +0000 |
commit | 54b961b017cbfded9bc4892699ccbc35bebf5c6f (patch) | |
tree | 48e2b4585e54a8205c6dbeb0131ead3e7cfc4d15 /src/lib/libcrypto/evp/evp_locl.h | |
parent | 5673137f00930926e8191aab226a21afaea9ad31 (diff) | |
download | openbsd-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/evp_locl.h')
-rw-r--r-- | src/lib/libcrypto/evp/evp_locl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_locl.h b/src/lib/libcrypto/evp/evp_locl.h index 37fc55eb9c..2bfcc6448e 100644 --- a/src/lib/libcrypto/evp/evp_locl.h +++ b/src/lib/libcrypto/evp/evp_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_locl.h,v 1.30 2022/11/10 16:37:52 jsing Exp $ */ | 1 | /* $OpenBSD: evp_locl.h,v 1.31 2022/11/18 14:45:10 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 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -93,7 +93,7 @@ struct evp_pkey_st { | |||
93 | const EVP_PKEY_ASN1_METHOD *ameth; | 93 | const EVP_PKEY_ASN1_METHOD *ameth; |
94 | ENGINE *engine; | 94 | ENGINE *engine; |
95 | union { | 95 | union { |
96 | char *ptr; | 96 | void *ptr; |
97 | #ifndef OPENSSL_NO_RSA | 97 | #ifndef OPENSSL_NO_RSA |
98 | struct rsa_st *rsa; /* RSA */ | 98 | struct rsa_st *rsa; /* RSA */ |
99 | #endif | 99 | #endif |