Fix type of ptr field.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 9 Aug 2016 19:53:37 +0000 (20:53 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 13 Aug 2016 13:11:04 +0000 (14:11 +0100)
Since "ptr" is used to handle arbitrary other types it should be
void *.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/include/internal/evp_int.h

index 2e4ca02eab922408aae1f790c6f6e5aa50f5eba0..d7346f5b526a8c5a7d0cb80f691c7d0cd684b028 100644 (file)
@@ -356,7 +356,7 @@ struct evp_pkey_st {
     const EVP_PKEY_ASN1_METHOD *ameth;
     ENGINE *engine;
     union {
-        char *ptr;
+        void *ptr;
 # ifndef OPENSSL_NO_RSA
         struct rsa_st *rsa;     /* RSA */
 # endif