Two signed char fixes.
- Matthew Martin
diff --git patches/patch-device_crypto_crypto-base64_cpp
patches/patch-device_crypto_crypto-base64_cpp
index 081341a572d..68abdfc8951 100644
--- patches/patch-device_crypto_crypto-base64_cpp
+++ patches/patch-device_crypto_crypto-base64_cpp
@@ -1,8 +1,27 @@
let it build with base gcc
$OpenBSD: patch-device_crypto_crypto-base64_cpp,v 1.1.1.1 2008/09/20 20:26:05
steven Exp $
---- device/crypto/crypto-base64.cpp.orig Sun Sep 7 23:03:17 2008
-+++ device/crypto/crypto-base64.cpp Sun Sep 7 23:03:17 2008
+Index: device/crypto/crypto-base64.cpp
+--- device/crypto/crypto-base64.cpp.orig
++++ device/crypto/crypto-base64.cpp
+@@ -36,7 +36,7 @@
+
+ // See RFC3548 for details of Base64 Encode / Decode standards
+
+-static const char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1,
-1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
44, 45, 46, 47, 48, 49, 50, 51};
++static const signed char base64string[] = {62, -1, -1, -1, 63, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, -1, -1, -1, 0, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1,
-1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
+
+
+ // Base64 character check
+@@ -57,7 +57,7 @@ const char *Device::base64Decode(const char *encodedSt
+ // Variables...
+ string encoded(encodedString);
+ int offset = 0;
+- char inter1, inter2, inter3, inter4 = 0;
++ signed char inter1, inter2, inter3, inter4 = 0;
+ base64TempString.assign("");
+
+ // Strip unwanted characters from the end of the string
@@ -110,9 +110,9 @@ const char *Device::base64Decode(const char *encodedSt
offset++;