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>
SVN-Revision: 25437
#
-# Copyright (C) 2006, 2007 OpenWrt.org
+# Copyright (C) 2006-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=opencdk
PKG_VERSION:=0.6.6
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/pub/gnutls/opencdk/ \
--- /dev/null
+--- 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;