packages/libs/opencdk/patches/200-verify-clearsigned.patch
florian 2a3ec41bb3 [package] opencdk: fix verification of clearsigned documents
This patch fixes a bug in the upstream library that prevents the verification of
 clearsigned documents with \r\n line endings. Obviously, it should go under
feeds/packages/libs/opencdk/patches/

Signed-off-by: Daniel A. Nagy <nagydani@epointsystem.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25437 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-09 20:36:32 +00:00

14 lines
418 B
Diff

--- opencdk-0.6.6/src/stream.c 2007-11-08 19:31:45.000000000 +0100
+++ opencdk-0.6.6-my/src/stream.c 2011-01-17 20:30:19.000000000 +0100
@@ -1384,7 +1384,9 @@
while (!cdk_stream_eof (s) && count > 0)
{
c = cdk_stream_getc (s);
- if (c == EOF || c == '\r' || c == '\n' )
+ if (c == '\r')
+ c = cdk_stream_getc (s);
+ if (c == EOF || c == '\n' )
{
buf[i++] = '\0';
break;