I compared this patch with the original C patch.  There was a check in C that does not exist in your Java patch:

1019
    if(data.size() != 3){
1020
    	lifecycle = 0xf0;
1021
    	RA::Error(LL_PER_PDU, "RA_Processor::GetLifecycle", "apdu response is the wrong size, the size is: %x", data.size());
1022
    	goto loser;
1023
    }

Why does it not apply in Java?

Thanks,
Christina

On 11/15/2016 06:20 PM, John Magne wrote:

Ticket: TPS throws "err=6" when attempting to format and e : https://fedorahosted.org/pki/ticket/2544

Fix tested on standard card, it does what it is supposed to do. It checks first to make sure the lifecycle
state needs to be changed before attempting to do so. This will prevent any cards that return an error when
one tries to over write the value with the same value it had before.



_______________________________________________
Pki-devel mailing list
Pki-devel@redhat.com
https://www.redhat.com/mailman/listinfo/pki-devel