Skip to content

Add a new constructor that does not call C_Finalize when dropped #208

Open
@Geobert

Description

@Geobert

Hi,

I’m in a mixed env with Rust code used in a C++ program. C++ side initialize the pkcs11 lib so Rust side can’t.
If Rust side calls C_Finalize, I get a random crash, which, I think, is because of a double free?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions