[Pcsclite-cvs-commit] MCardApplet CardEdge.src,1.6,1.7
home_pw-guest@quantz.debian.org
home_pw-guest@quantz.debian.org
Sat, 24 Jan 2004 21:30:50 +0100
Update of /cvsroot/muscleplugins/MCardApplet
In directory quantz:/tmp/cvs-serv18733/MCardApplet
Modified Files:
CardEdge.src
Log Message:
1. CPP build options
2. add rsa for ext auth
Index: CardEdge.src
===================================================================
RCS file: /cvsroot/muscleplugins/MCardApplet/CardEdge.src,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CardEdge.src 24 Jan 2004 20:07:33 -0000 1.6
+++ CardEdge.src 24 Jan 2004 20:30:48 -0000 1.7
@@ -1,2614 +1,2717 @@
-/*
- * Copyright (c) 2001
- * BSD ?
- */
-
-//
-// $Workfile: CardEdge.java $
-// $Revision$
-// $Date$
-// $Author$
-// $Archive: CardEdge $
[...5300 lines suppressed...]
+ Util.setShort(buffer, pos, mem.freemem()); // Free mem L.S.
+ pos += (short) 2;
+ byte cnt = (byte) 0;
+ for (short i = 0; i < pins.length; i++)
+ if (pins[i] != null)
+ cnt++;
+ buffer[pos++] = cnt; // Number of used PINs
+ cnt = (byte) 0;
+#ifdef USE_CRYPTO
+ for (short i = 0; i < keys.length; i++)
+ if (keys[i] != null)
+ cnt++;
+#endif
+ buffer[pos++] = cnt; // Number of used Keys
+ Util.setShort(buffer, pos, logged_ids); // Logged ids
+ pos += (short) 2;
+ apdu.setOutgoingAndSend((short) 0, pos);
+ }
+
+} // end of class JAVA_APPLET