Bind was removed.

This commit is contained in:
Erick Tryzelaar 2012-06-21 08:30:39 -07:00
parent c0bbc889d1
commit 5d0f9dee6a
1 changed files with 4 additions and 12 deletions

16
pkey.rs
View File

@ -161,25 +161,17 @@ fn pkey() -> pkey {
} }
fn save_pub() -> [u8] { fn save_pub() -> [u8] {
// FIXME: https://github.com/graydon/rust/issues/1281 _tostr(self, _native::i2d_PublicKey)
let f = bind _native::i2d_PublicKey(_, _);
_tostr(self, f)
} }
fn load_pub(s: [u8]) { fn load_pub(s: [u8]) {
// FIXME: https://github.com/graydon/rust/issues/1281 _fromstr(self, _native::d2i_PublicKey, s);
let f = bind _native::d2i_PublicKey(_, _, _, _);
_fromstr(self, f, s);
self.parts = public; self.parts = public;
} }
fn save_priv() -> [u8] { fn save_priv() -> [u8] {
// FIXME: https://github.com/graydon/rust/issues/1281 _tostr(self, _native::i2d_PrivateKey)
let f = bind _native::i2d_PrivateKey(_, _);
_tostr(self, f)
} }
fn load_priv(s: [u8]) { fn load_priv(s: [u8]) {
// FIXME: https://github.com/graydon/rust/issues/1281 _fromstr(self, _native::d2i_PrivateKey, s);
let f = bind _native::d2i_PrivateKey(_, _, _, _);
_fromstr(self, f, s);
self.parts = both; self.parts = both;
} }
fn size() -> uint { fn size() -> uint {