if (p11_kit_uri_format(pin_uri, P11_KIT_URI_FOR_TOKEN, &uri))
return NULL;
-
+
while (*cache) {
if (!strcmp(uri, (*cache)->token)) {
free(uri);
}
break;
}
+ cache = &(*cache)->next;
}
if (!*cache) {
*cache = calloc(1, sizeof(struct pin_cache));
message[sizeof(message)-1] = 0;
snprintf(message, sizeof(message) - 1, _("PIN required for %s"), pin_description);
f.message = message;
-
- /*
+
+ /*
* In p11-kit <= 0.12, these flags are *odd*.
* RETRY is 0xa, FINAL_TRY is 0x14 and MANY_TRIES is 0x28.
* So don't treat it like a sane bitmask. Fixed in
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Fix endless loop in PIN cache handling with multiple PKCS#11 tokens.</li>
<li>Fix PKCS#11 URI handling to preserve all attributes.</li>
<li>Don't forget key password on GUI reconnect.</li>
<li>Fix GnuTLS v3 build on OpenBSD.</li>