-
Notifications
You must be signed in to change notification settings - Fork 51
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
open_local_machine & open_current_user cannot be specified as read-only #61
Comments
We can't change the We could deprecate them and provide something like |
Yes, to avoid elevating privileges on Windows. Providing direct access to the API might be a good option to allow more of the parameters to be specified. Or if you made the CertStore constructor public, then it would be easier to override for special cases. Thanks, |
Providing direct access to the API also is suboptimal, if it should ever change. |
If you made the following:
That would provide the flexibility that I seek. |
Until the next person needs a different flag. |
That works for me. Sorry, I said CurrentSystem, I meant LocalMachine obviously. I updated my prior comment. |
I'll think about in the next few days and probably would like to
@sfackler pinging, in case you have any reservations/preferences on these matters |
dwFlags should include CERT_STORE_READONLY_FLAG.
If the intent for those API is to allow write access, then there should be new APIs that allow at least a bool, if not additional flags.
Unfortunately, I couldn't easily override the fn because CertStore constructor is private.
The text was updated successfully, but these errors were encountered: