Skip to content

Is force_login supposed to force the user to re-enter their PIN? #643

@totszwai

Description

@totszwai

The line described in here:
https://github.com/OpenSC/libp11/blame/8e391f4f961be30581aaac02049cd38edab82881/src/util_uri.c#L493C13-L493C24

If force_login is true, it doesn't actually do anything... we currently have our own patch to do this:

+	// The force_login flag wasn't .. actually .. forcing a relogin?
+	// Maybe I'm misinterpreting what it was supposed to do?
+	if (ctx->force_login && slot_logged_in(ctx, slot))
+        	pkcs11_logout(slot);

Could you clarify what's the actual meaning of force_login? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions