Joao Pedro a écrit :

Ouch, my bad. I've just re-read the JC API and, indeed, the JVM should throw an APDUException.ILLEGAL_USE exception - the weird part is that I've been using the Muscle applet with the extended APDU patch for a couple of months now, with absolutely no issues. I use it to login on OS X, sign emails, use ssh, etc., on a daily basis...

It can work or not, it always safer to use setIncomingAndReceive first.

SUN states that (for getIncomingLength):
"This method can be invoked whenever inbound data processing
methods can be invoked ..."

meaning when NO (inbound) method is already invoked but simply
can be invoked.

and then:
"throws APDUException.ILLEGAL_USE if setIncomingAndReceive() not called"

these 2 points are not consistent, badly some platforms conform to
the 2nd point.

Nevertheless, I've attached a small patch that should fix this. [...]
If there's still any issue, please let me know!

Does it mean, you're THE person responsible of the Muscle applet
I was looking for since years ??
If at least you have svn access to the full source, I may be
interested in a full review and partial rewriting of it, there
is a lot of fragments that can be manage faster; some years
(about 2) ago I started a rewrite but left it aside since
I haven't find any no-regression test suite. If you can help,
or manage, a code validation, I can perform a rewriting.

Best,
Sylvain.


_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to