aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErick Tryzelaar <[email protected]>2012-06-21 08:30:39 -0700
committerErick Tryzelaar <[email protected]>2012-06-21 08:37:50 -0700
commit5d0f9dee6a1ba0d082bc5aad14e25d4505289c74 (patch)
tree405f4df974e3cd41642a1c9ed940db53840725a1
parentMerge pull request #5 from erickt/master (diff)
downloadrust-openssl-5d0f9dee6a1ba0d082bc5aad14e25d4505289c74.tar.xz
rust-openssl-5d0f9dee6a1ba0d082bc5aad14e25d4505289c74.zip
Bind was removed.
-rw-r--r--pkey.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/pkey.rs b/pkey.rs
index 040e4aa4..5a7f21e3 100644
--- a/pkey.rs
+++ b/pkey.rs
@@ -161,25 +161,17 @@ fn pkey() -> pkey {
}
fn save_pub() -> [u8] {
- // FIXME: https://github.com/graydon/rust/issues/1281
- let f = bind _native::i2d_PublicKey(_, _);
- _tostr(self, f)
+ _tostr(self, _native::i2d_PublicKey)
}
fn load_pub(s: [u8]) {
- // FIXME: https://github.com/graydon/rust/issues/1281
- let f = bind _native::d2i_PublicKey(_, _, _, _);
- _fromstr(self, f, s);
+ _fromstr(self, _native::d2i_PublicKey, s);
self.parts = public;
}
fn save_priv() -> [u8] {
- // FIXME: https://github.com/graydon/rust/issues/1281
- let f = bind _native::i2d_PrivateKey(_, _);
- _tostr(self, f)
+ _tostr(self, _native::i2d_PrivateKey)
}
fn load_priv(s: [u8]) {
- // FIXME: https://github.com/graydon/rust/issues/1281
- let f = bind _native::d2i_PrivateKey(_, _, _, _);
- _fromstr(self, f, s);
+ _fromstr(self, _native::d2i_PrivateKey, s);
self.parts = both;
}
fn size() -> uint {