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 e477418559bb5d32764cf84eabd42ccdd6c64f96..81ad4d499a1276651d4d66e8e4cced8d84d98b3f 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 */