Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support init params for C_Initialize function #41

Open
microshine opened this issue Feb 20, 2020 · 0 comments
Open

Support init params for C_Initialize function #41

microshine opened this issue Feb 20, 2020 · 0 comments

Comments

@microshine
Copy link
Contributor

Cryptoki params

typedef struct CK_C_INITIALIZE_ARGS {
  CK_CREATEMUTEX CreateMutex;
  CK_DESTROYMUTEX DestroyMutex;
  CK_LOCKMUTEX LockMutex;
  CK_UNLOCKMUTEX UnlockMutex;
  CK_FLAGS flags;
  CK_VOID_PTR pReserved;
} CK_C_INITIALIZE_ARGS;

NSS params

typedef struct CK_NSS_C_INITIALIZE_ARGS {
    CK_CREATEMUTEX CreateMutex;
    CK_DESTROYMUTEX DestroyMutex;
    CK_LOCKMUTEX LockMutex;
    CK_UNLOCKMUTEX UnlockMutex;
    CK_FLAGS flags;
    CK_CHAR_PTR LibraryParameters;
    CK_VOID_PTR pReserved;
} CK_NSS_C_INITIALIZE_ARGS;

It would be nice to use something like NSS CK_CHAR_PTR LibraryParameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant