[go: up one dir, main page]

schannel 0.1.11

Schannel bindings for rust, allowing SSL/TLS (e.g. https) without openssl
Documentation
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);