<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;"><span id="OLK_SRC_BODY_SECTION"><blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;"><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><font color="#000000" class="">Shawn, how do I check and/or affect the policies on a given keychain wrt. enforcing PIN re-entering upon every operation (or ideally, every signing operation)?</font></div></div></blockquote></div><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><br class=""></div><div class="">Ultimately, this is enforced by the corresponding Tokend, but by specification should come from the applet on the card. &nbsp;This has long been a problem with applets used on US Government cards not properly providing policies like this, so Apple had to take an approach of defaulting to allowing &#8220;Cached PIN&#8221; if not defined. &nbsp;</div></div></div></div></div></blockquote></span><div><br></div><span id="OLK_SRC_BODY_SECTION"><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Shawn, could you please clarify for me what &#8220;Cached PIN&#8221; means in the context?</div></div></div></span><div><br></div><span id="OLK_SRC_BODY_SECTION"><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""> Does it mean that the Keychain API assumes that once it passed the PIN to the tokend, either tokend keeps (&#8220;caches&#8221;) the PIN for a while, or the token itself stays &#8220;unlocked&#8221; for a while upon receiving the correct PIN?</div></div></div></span><div><br></div><div>Who decides how long that &#8220;for a while&#8221; lasts?&nbsp;</div><div><br></div><div>Is there a mechanism by which tokend can inform Keychain API that the &#8220;cached for a while&#8221; is over and PIN must be re-entered? How does tokend know whether the token expects a new PIN, or is happy with being unlocked &#8220;a while ago&#8221;?</div><div><br></div><div>Thanks!</div><div><br></div></body></html>