Made foreign bit field unsigned in evp.h
authorRandall S. Becker <rsbecker@nexbridge.com>
Tue, 6 Jul 2021 17:42:22 +0000 (12:42 -0500)
committerPauli <pauli@openssl.org>
Thu, 8 Jul 2021 04:11:10 +0000 (14:11 +1000)
Fixes #16010

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16011)

include/crypto/evp.h

index 16e55cd9a24060d7a22d338729a12a17a5b159cb..3707977d9d290e3d0605f4e78e0520fc65c72207 100644 (file)
@@ -686,7 +686,7 @@ struct evp_pkey_st {
 #ifndef FIPS_MODULE
     STACK_OF(X509_ATTRIBUTE) *attributes; /* [ 0 ] */
     int save_parameters;
-    int foreign:1; /* the low-level key is using an engine or an app-method */
+    unsigned int foreign:1; /* the low-level key is using an engine or an app-method */
     CRYPTO_EX_DATA ex_data;
 #endif