[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
//! CNG private keys.
use winapi::um::ncrypt;

/// A CNG handle to a key.
pub struct NcryptKey(ncrypt::NCRYPT_KEY_HANDLE);

impl Drop for NcryptKey {
    fn drop(&mut self) {
        unsafe {
            ncrypt::NCryptFreeObject(self.0);
        }
    }
}

inner!(NcryptKey, ncrypt::NCRYPT_KEY_HANDLE);