summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-02-25 10:42:51 +0100
committerChristian Heimes <cheimes@redhat.com>2016-02-26 17:40:10 +0100
commit07b8415312a7f37c566506ec516c4c74404402eb (patch)
tree19aef238c362f32906725936086dab84a1aaa73d
parenta35bd50af7ad1cfce41b9d7940ba8c0974d52115 (diff)
downloadpki-07b8415312a7f37c566506ec516c4c74404402eb.tar.gz
pki-07b8415312a7f37c566506ec516c4c74404402eb.tar.xz
pki-07b8415312a7f37c566506ec516c4c74404402eb.zip
Fix compile issue in RA_Token.cpp
GCC 6 is more strict than GCC 5 and earlier. It refuses to initialize a char[] with 'int' initializers because char is signed while the its are values from 0 to 255. RA_Token.cpp:989:7: error: narrowing conversion of ‘194’ from ‘int’ to ‘char’ inside { } https://fedorahosted.org/pki/attachment/ticket/2221
-rw-r--r--base/tps-client/tools/raclient/RA_Token.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/tps-client/tools/raclient/RA_Token.cpp b/base/tps-client/tools/raclient/RA_Token.cpp
index dd5170c4c..ec8307366 100644
--- a/base/tps-client/tools/raclient/RA_Token.cpp
+++ b/base/tps-client/tools/raclient/RA_Token.cpp
@@ -977,7 +977,7 @@ Sign (SECOidTag sigAlg, SECKEYPrivateKey * privKey, Buffer & blob)
}
/*fake proof for ECC until it works*/
- char fake_proof [] = {
+ unsigned char fake_proof [] = {
0x30 ,0x44 ,0x02 ,0x20 ,0x00,
0xd6 ,0xc2 ,0x08 ,0x34 ,0x79 ,0x28 ,0x2e ,0x5f ,0x70 ,0xe5,
0x38 ,0x1d ,0x84 ,0xa9 ,0x40 ,0x05 ,0x65 ,0x67 ,0x0f ,0x65,