[Pcsclite-cvs-commit] MCardApplet CardEdge.src,1.5,1.6
home_pw-guest@quantz.debian.org
home_pw-guest@quantz.debian.org
Sat, 24 Jan 2004 21:07:35 +0100
Update of /cvsroot/muscleplugins/MCardApplet
In directory quantz:/tmp/cvs-serv12380/MCardApplet
Modified Files:
CardEdge.src
Log Message:
migrate ACL handling from src/cardedge.java to ./cardedge.src build master. completes migration of important functionality added to ./src/* . Coding
style changes and formatting changes have not been applied.
Index: CardEdge.src
===================================================================
RCS file: /cvsroot/muscleplugins/MCardApplet/CardEdge.src,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CardEdge.src 18 Jan 2004 08:44:17 -0000 1.5
+++ CardEdge.src 24 Jan 2004 20:07:33 -0000 1.6
@@ -1498,6 +1498,8 @@
base += size; // Skip Exp Value
avail -= size;
+ // set the ACL value
+ Util.arrayCopy(buffer, (short)5, keyACLs, (short)(key_nb * KEY_ACL_SIZE), (short)KEY_ACL_SIZE);
break;
case KEY_RSA_PRIVATE:
@@ -1526,6 +1528,8 @@
base += size; // Skip Exp Value
avail -= size;
+ // set the ACL value
+ Util.arrayCopy(buffer, (short)5, keyACLs, (short)(key_nb * KEY_ACL_SIZE), (short)KEY_ACL_SIZE);
break;
case KEY_RSA_PRIVATE_CRT:
@@ -1584,6 +1588,8 @@
base += size; // Skip DQ1 Value
avail -= size;
+ // set the ACL value
+ Util.arrayCopy(buffer, (short)5, keyACLs, (short)(key_nb * KEY_ACL_SIZE), (short)KEY_ACL_SIZE);
break;
#else
@@ -1611,6 +1617,7 @@
dsa_prv_key.setX(mem.getBuffer(), base, size);
base += size; // Skip X Value
avail -= size;
+ // need to set the ACL value
break;
case KEY_DSA_PUBLIC:
@@ -1631,6 +1638,7 @@
dsa_pub_key.setY(mem.getBuffer(), base, size);
base += size; // Skip Y Value
avail -= size;
+ // need to set the ACL value
break;
#else
case KEY_DSA_PRIVATE:
@@ -1659,6 +1667,7 @@
base += size; // Skip Key Value
avail -= size;
+ // need to set the ACL value
break;
#endif // if defined(WITH_DES) || defined(WITH_3DES)