I don't see where someone can query the expiration date of the CAC, it would be nice to be able to do that without downloading the DoD CRLs and searching for the Issuer and Serial Number of the CAC.
I have an expired CAC and C_Login() still lets me login.
Also, If I fail to login more than 3 times with an improper PIN, it will still let me login with the correct PIN. Most security practices require the CAC to be invalidated after 3 failed attempts. Is there a way to read and write the number of failed attempts to the CAC. So if I fail 3 times on my Linux machine, I can't just login to my Windows machine anymore either.