PKCS#11 fails for tokens with CKF_USER_PIN_INITIALIZED but not CKF_LOGIN_REQUIRED
In openconnect/openconnect#123 (closed) a user reports that their PKCS#11 token doesn't work with OpenConnect.
I have fixed the OpenSSL build by logging in even if CKF_LOGIN_REQUIRED
isn't set (a bug in the provider, arguably, but that's about par for the course with vendor-provided crap), if CKF_USER_PIN_INITIALIZED
is set.
I've added a test case, but disabled it for the GnuTLS build for now as I think it needs to be fixed in GnuTLS (although if a workaround in OpenConnect is possible that would be very useful to have).