Skip to content

Add CertOpenStore to c.s.j.p.win32.Crypt32#1418

Closed
shalupov wants to merge 4 commits intojava-native-access:masterfrom
shalupov:cert-open-store
Closed

Add CertOpenStore to c.s.j.p.win32.Crypt32#1418
shalupov wants to merge 4 commits intojava-native-access:masterfrom
shalupov:cert-open-store

Conversation

@shalupov
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread contrib/platform/src/com/sun/jna/platform/win32/Crypt32.java Outdated
Comment thread contrib/platform/test/com/sun/jna/platform/win32/Crypt32Test.java Outdated
Comment thread contrib/platform/test/com/sun/jna/platform/win32/Crypt32Test.java Outdated
Comment thread contrib/platform/test/com/sun/jna/platform/win32/Crypt32Test.java

Crypt32 INSTANCE = Native.load("Crypt32", Crypt32.class, W32APIOptions.DEFAULT_OPTIONS);

// Store providers for CertOpenStore
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go into WinCrypt.java as definition comes from WinCrypt.h. The two encoding definitions are already there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new constants should still be moved to WinCrypt.java. As CertStoreProviderName is not from a header it is debatable, but I would also move it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I did not add a javadoc to each of them, from MSDN page it looks like a lot of text with references and we probably don't want to have it all copied to WinCrypt

Comment thread contrib/platform/test/com/sun/jna/platform/win32/Crypt32Test.java Outdated
@matthiasblaesing
Copy link
Copy Markdown
Member

Merged via af8458b. Thank you.

@shalupov shalupov deleted the cert-open-store branch April 23, 2022 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants