blob: e64b5f2b0747903234ee52ac3d1696976ab8b958 [file] [log] [blame]
//! CryptoAPI private keys.
use winapi::um::wincrypt;
/// A handle to a key.
pub struct CryptKey(wincrypt::HCRYPTKEY);
impl Drop for CryptKey {
fn drop(&mut self) {
unsafe {
wincrypt::CryptDestroyKey(self.0);
}
}
}
inner!(CryptKey, wincrypt::HCRYPTKEY);