[Pcsclite-cvs-commit] MCardApplet CardEdge.src,1.7,1.8
home_pw-guest@quantz.debian.org
home_pw-guest@quantz.debian.org
Mon, 26 Jan 2004 03:13:31 +0100
Update of /cvsroot/muscleplugins/MCardApplet
In directory quantz:/tmp/cvs-serv8740
Modified Files:
CardEdge.src
Log Message:
change EOL to UNIX convention thoughout.
Index: CardEdge.src
===================================================================
RCS file: /cvsroot/muscleplugins/MCardApplet/CardEdge.src,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CardEdge.src 24 Jan 2004 20:30:48 -0000 1.7
+++ CardEdge.src 26 Jan 2004 02:13:28 -0000 1.8
@@ -1,2717 +1,2717 @@
-/*
- * Copyright (c) 2001
- * BSD ?
- */
-
-//
-// $Workfile: CardEdge.java $
-// $Revision$
-// $Date$
-// $Author$
-// $Archive: CardEdge $
[...5403 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