aboutsummaryrefslogtreecommitdiff
path: root/security/opensc
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2003-02-25 21:32:40 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2003-02-25 21:32:40 +0000
commit452a58039053161514c1eaab3626b68bcc022cb2 (patch)
tree102c6d2f6b86f67576f6c8e7591564721a87e794 /security/opensc
parent72027223287efa60d0bd5396339ddd1ace4b7f10 (diff)
downloadports-452a58039053161514c1eaab3626b68bcc022cb2.tar.gz
ports-452a58039053161514c1eaab3626b68bcc022cb2.zip
Notes
Diffstat (limited to 'security/opensc')
-rw-r--r--security/opensc/files/patch-src::libopensc::card-gpk.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/security/opensc/files/patch-src::libopensc::card-gpk.c b/security/opensc/files/patch-src::libopensc::card-gpk.c
index 491b707f8d7d..328b0b111e69 100644
--- a/security/opensc/files/patch-src::libopensc::card-gpk.c
+++ b/security/opensc/files/patch-src::libopensc::card-gpk.c
@@ -1,5 +1,5 @@
---- src/libopensc/card-gpk.c.orig Thu May 2 14:54:27 2002
-+++ src/libopensc/card-gpk.c Tue Sep 10 15:18:38 2002
+--- src/libopensc/card-gpk.c.orig Thu May 2 08:54:27 2002
++++ src/libopensc/card-gpk.c Tue Feb 25 15:30:23 2003
@@ -35,6 +35,7 @@
GPK4000_s,
GPK4000_sp,
@@ -16,6 +16,28 @@
{ "\x3B\x27\x00\x80\x65\xA2\x0C\x01\x01\x37", 10, GPK4000_su256 },
{ "\x3B\xA7\x00\x40\x14\x80\x65\xA2\x14\x01\x01\x37", 12, GPK4000_sdo },
{ "\x3B\xA7\x00\x40\x18\x80\x65\xA2\x08\x01\x01\x52", 12, GPK8000_8K },
+@@ -735,8 +737,8 @@
+ apdu->le += 3;
+ if (crycks1)
+ memcpy(crycks1, out, 3);
+- memset(k1, 0, sizeof(k1));
+- memset(k2, 0, sizeof(k2));
++ memset(&k1, 0, sizeof(k1));
++ memset(&k2, 0, sizeof(k2));
+ memset(in, 0, sizeof(in));
+ memset(out, 0, sizeof(out));
+ memset(block, 0, sizeof(block));
+@@ -878,8 +880,8 @@
+ if (memcmp(r_rn, out+4, 4) != 0)
+ r = SC_ERROR_INVALID_ARGUMENTS;
+
+- memset(k1, 0, sizeof(k1));
+- memset(k2, 0, sizeof(k2));
++ memset(&k1, 0, sizeof(k1));
++ memset(&k2, 0, sizeof(k2));
+ memset(out, 0, sizeof(out));
+ return r;
+ }
@@ -1440,6 +1442,7 @@
SC_FUNC_CALLED(card->ctx, 1);