Package: coolkey
Version: 1.1.0-8.1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

In Ubuntu, the attached patch was applied to achieve the following:

  * Apply patch from Vladimir Kravets to resolve Coolkey
    not working with ActiveKey Sim. (LP: #786682)


Thanks for considering the patch.


-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-5-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru coolkey-1.1.0/debian/patches/0001-Fix-working-with-empty-certificates-in-not-zero-slot.patch coolkey-1.1.0/debian/patches/0001-Fix-working-with-empty-certificates-in-not-zero-slot.patch
--- coolkey-1.1.0/debian/patches/0001-Fix-working-with-empty-certificates-in-not-zero-slot.patch	1969-12-31 19:00:00.000000000 -0500
+++ coolkey-1.1.0/debian/patches/0001-Fix-working-with-empty-certificates-in-not-zero-slot.patch	2011-07-20 13:24:10.000000000 -0400
@@ -0,0 +1,25 @@
+From f184e5a538caa9412fa3b0e99afe92473fbd6739 Mon Sep 17 00:00:00 2001
+From: Vladimir Kravets <vova.krav...@gmail.com>
+Date: Mon, 23 May 2011 17:17:43 +0300
+Subject: [PATCH] Fix working with empty certificates in not zero slots.
+
+---
+ coolkey-1.1.0/src/coolkey/slot.cpp |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/coolkey-1.1.0/src/coolkey/slot.cpp b/coolkey-1.1.0/src/coolkey/slot.cpp
+index 4c734b7..4c10e8a 100644
+--- a/src/coolkey/slot.cpp
++++ b/src/coolkey/slot.cpp
+@@ -2193,7 +2193,7 @@ Slot::readCACCertificateFirst(CKYBuffer *cert, CKYSize *nextSize,
+ 	    handleConnectionError();
+ 	}
+         
+-        if(CKYBuffer_Size(cert) == 0) {
++        if(throwException && CKYBuffer_Size(cert) == 0) {
+             handleConnectionError();
+         }
+ 	return status;
+-- 
+1.7.4.1
+
diff -Nru coolkey-1.1.0/debian/patches/series coolkey-1.1.0/debian/patches/series
--- coolkey-1.1.0/debian/patches/series	2011-06-11 09:27:53.000000000 -0400
+++ coolkey-1.1.0/debian/patches/series	2011-07-20 13:22:16.000000000 -0400
@@ -8,3 +8,4 @@
 coolkey-cac.patch
 coolkey-cac-1.patch
 debian-changes-1.1.0-8.1
+0001-Fix-working-with-empty-certificates-in-not-zero-slot.patch

Reply via email to