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

Add deprecated feature #74

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MarnixKuijs
Copy link

@MarnixKuijs MarnixKuijs commented Feb 8, 2021

Certain parts of wincrypt have been deprecated. This flag allows opt-in of the deprecated wincrypt api, instead of it being the default. NCrypt is now preferred which is a CNG api.

Fixes #63

}
}
}

/// The private key associated with a certificate context.
pub enum PrivateKey {
/// A CryptoAPI provider.
#[cfg(feature = "allow-deprecated")]
Copy link
Owner

Choose a reason for hiding this comment

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

Doing it this way leads to a breaking change.
I'm fine with changing the default to CRYPT_ACQUIRE_PREFER_NCRYPT_KEY_FLAG, as that should not break anything.
We can mark it #[deprecated] but I don't think there's any advantage to hiding it behind a feature?

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.

Question: wincrypt APIs are now deprecated, any new crates using CNG?
2 participants