summaryrefslogtreecommitdiffstats
path: root/third_party/rust/nss_sys/src/bindings/keyhi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/nss_sys/src/bindings/keyhi.rs')
-rw-r--r--third_party/rust/nss_sys/src/bindings/keyhi.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/rust/nss_sys/src/bindings/keyhi.rs b/third_party/rust/nss_sys/src/bindings/keyhi.rs
new file mode 100644
index 0000000000..4078928f6b
--- /dev/null
+++ b/third_party/rust/nss_sys/src/bindings/keyhi.rs
@@ -0,0 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+use crate::*;
+
+extern "C" {
+ pub fn SECKEY_CopyPublicKey(pubKey: *const SECKEYPublicKey) -> *mut SECKEYPublicKey;
+ pub fn SECKEY_ConvertToPublicKey(privateKey: *mut SECKEYPrivateKey) -> *mut SECKEYPublicKey;
+ pub fn SECKEY_DestroyPrivateKey(key: *mut SECKEYPrivateKey);
+ pub fn SECKEY_DestroyPublicKey(key: *mut SECKEYPublicKey);
+}