-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support loading identities from key/cert files
- Loading branch information
Showing
14 changed files
with
576 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//! CryptoAPI private keys. | ||
use advapi32; | ||
use winapi; | ||
|
||
/// A handle to a key. | ||
pub struct CryptKey(winapi::HCRYPTKEY); | ||
|
||
impl Drop for CryptKey { | ||
fn drop(&mut self) { | ||
unsafe { | ||
advapi32::CryptDestroyKey(self.0); | ||
} | ||
} | ||
} | ||
|
||
inner!(CryptKey, winapi::HCRYPTKEY); |
Oops, something went wrong.