1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! 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);