mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
The Open-V2G library can be made a little more versatile by enabling more feature, such as XMLDSIG support. More importantly, the library currently violates the ISO15118 spec by using a home-grown UCS implementation, where everything is treated as 32-bits, e.g. UTF-32, where ISO15118 uses UTF-8 encoding. As this is incompatible, we are better off switching to ASCII for now, a that at least is backwards compatible. To properly fix this, the library needs toe be fixed to properly by a proper UCS implementation or using a library to this end. Note, that these patches are configuration options changing the defaults, and thus are not up streamed. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
20 lines
788 B
Diff
20 lines
788 B
Diff
diff --git a/testing/openv2g/0001-Enable-XMLDSIG-codec-support.patch b/testing/openv2g/0001-Enable-XMLDSIG-codec-support.patch
|
|
new file mode 100644
|
|
index 0000000000..c320f05aab
|
|
--- /dev/null
|
|
+++ b/testing/openv2g/0001-Enable-XMLDSIG-codec-support.patch
|
|
@@ -0,0 +1,14 @@
|
|
+diff --git a/src/xmldsig/xmldsigEXIDatatypes.h b/Release/src/xmldsig/xmldsigEXIDatatypes.h
|
|
+index 8b06393..ee7ac88 100755
|
|
+--- a/src/xmldsig/xmldsigEXIDatatypes.h
|
|
++++ b/src/xmldsig/xmldsigEXIDatatypes.h
|
|
+@@ -44,8 +44,8 @@ extern "C" {
|
|
+
|
|
+ #define SUPPORT_YES 1
|
|
+ #define SUPPORT_NO 2
|
|
+-#define DEPLOY_XMLDSIG_CODEC SUPPORT_NO
|
|
+-#define DEPLOY_XMLDSIG_CODEC_FRAGMENT SUPPORT_NO
|
|
++#define DEPLOY_XMLDSIG_CODEC SUPPORT_YES
|
|
++#define DEPLOY_XMLDSIG_CODEC_FRAGMENT SUPPORT_YES
|
|
+
|
|
+ #if DEPLOY_XMLDSIG_CODEC == SUPPORT_YES
|