Fix for some platforms where "char" is unsigned.
authorDr. Stephen Henson <steve@openssl.org>
Fri, 8 Nov 2013 18:59:26 +0000 (18:59 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 9 Nov 2013 15:09:23 +0000 (15:09 +0000)
crypto/ec/ec_pmeth.c

index e477418..81ad4d4 100644 (file)
@@ -76,7 +76,7 @@ typedef struct
        /* Duplicate key if custom cofactor needed */
        EC_KEY *co_key;
        /* Cofactor mode */
-       char cofactor_mode;
+       signed char cofactor_mode;
        /* KDF (if any) to use for ECDH */
        char kdf_type;
        /* Message digest to use for key derivation */