]> git.proxmox.com Git - cargo.git/blob - vendor/schannel-0.1.9/src/crypt_key.rs
New upstream version 0.24.0
[cargo.git] / vendor / schannel-0.1.9 / src / crypt_key.rs
1 //! CryptoAPI private keys.
2 use advapi32;
3 use winapi;
4
5 /// A handle to a key.
6 pub struct CryptKey(winapi::HCRYPTKEY);
7
8 impl Drop for CryptKey {
9 fn drop(&mut self) {
10 unsafe {
11 advapi32::CryptDestroyKey(self.0);
12 }
13 }
14 }
15
16 inner!(CryptKey, winapi::HCRYPTKEY);