Loading crypto/hash.rs +3 −3 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ pub fn evpmd(t: HashType) -> (EVP_MD, uint) { } pub struct Hasher { priv evp: EVP_MD, priv ctx: EVP_MD_CTX, priv len: uint, evp: EVP_MD, ctx: EVP_MD_CTX, len: uint, } impl Hasher { Loading crypto/hmac.rs +2 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ extern { } pub struct HMAC { priv ctx: HMAC_CTX, priv len: uint, ctx: HMAC_CTX, len: uint, } pub fn HMAC(ht: hash::HashType, key: ~[u8]) -> HMAC { Loading crypto/pkey.rs +2 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,8 @@ fn openssl_hash_nid(hash: HashType) -> c_int { } pub struct PKey { priv evp: *EVP_PKEY, priv parts: Parts, evp: *EVP_PKEY, parts: Parts, } /// Represents a public key, optionally with a private key attached. Loading crypto/symm.rs +4 −4 Original line number Diff line number Diff line Loading @@ -73,10 +73,10 @@ fn evpc(t: Type) -> (EVP_CIPHER, uint, uint) { /// Represents a symmetric cipher context. pub struct Crypter { priv evp: EVP_CIPHER, priv ctx: EVP_CIPHER_CTX, priv keylen: uint, priv blocksize: uint evp: EVP_CIPHER, ctx: EVP_CIPHER_CTX, keylen: uint, blocksize: uint } impl Crypter { Loading ssl/mod.rs +9 −9 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ pub type VerifyCallback = fn(preverify_ok: bool, /// An SSL context object pub struct SslContext { priv ctx: *ffi::SSL_CTX ctx: *ffi::SSL_CTX } impl Drop for SslContext { Loading Loading @@ -196,7 +196,7 @@ impl SslContext { } pub struct X509StoreContext { priv ctx: *ffi::X509_STORE_CTX ctx: *ffi::X509_STORE_CTX } impl X509StoreContext { Loading @@ -218,8 +218,8 @@ impl X509StoreContext { /// A public key certificate pub struct X509<'ctx> { priv ctx: &'ctx X509StoreContext, priv x509: *ffi::X509 ctx: &'ctx X509StoreContext, x509: *ffi::X509 } impl<'ctx> X509<'ctx> { Loading @@ -230,8 +230,8 @@ impl<'ctx> X509<'ctx> { } pub struct X509Name<'x> { priv x509: &'x X509<'x>, priv name: *ffi::X509_NAME x509: &'x X509<'x>, name: *ffi::X509_NAME } pub enum X509NameFormat { Loading Loading @@ -459,9 +459,9 @@ impl MemBio { /// A stream wrapper which handles SSL encryption for an underlying stream. pub struct SslStream<S> { priv stream: S, priv ssl: Ssl, priv buf: Vec<u8> stream: S, ssl: Ssl, buf: Vec<u8> } impl<S: Stream> SslStream<S> { Loading Loading
crypto/hash.rs +3 −3 Original line number Diff line number Diff line Loading @@ -49,9 +49,9 @@ pub fn evpmd(t: HashType) -> (EVP_MD, uint) { } pub struct Hasher { priv evp: EVP_MD, priv ctx: EVP_MD_CTX, priv len: uint, evp: EVP_MD, ctx: EVP_MD_CTX, len: uint, } impl Hasher { Loading
crypto/hmac.rs +2 −2 Original line number Diff line number Diff line Loading @@ -37,8 +37,8 @@ extern { } pub struct HMAC { priv ctx: HMAC_CTX, priv len: uint, ctx: HMAC_CTX, len: uint, } pub fn HMAC(ht: hash::HashType, key: ~[u8]) -> HMAC { Loading
crypto/pkey.rs +2 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,8 @@ fn openssl_hash_nid(hash: HashType) -> c_int { } pub struct PKey { priv evp: *EVP_PKEY, priv parts: Parts, evp: *EVP_PKEY, parts: Parts, } /// Represents a public key, optionally with a private key attached. Loading
crypto/symm.rs +4 −4 Original line number Diff line number Diff line Loading @@ -73,10 +73,10 @@ fn evpc(t: Type) -> (EVP_CIPHER, uint, uint) { /// Represents a symmetric cipher context. pub struct Crypter { priv evp: EVP_CIPHER, priv ctx: EVP_CIPHER_CTX, priv keylen: uint, priv blocksize: uint evp: EVP_CIPHER, ctx: EVP_CIPHER_CTX, keylen: uint, blocksize: uint } impl Crypter { Loading
ssl/mod.rs +9 −9 Original line number Diff line number Diff line Loading @@ -139,7 +139,7 @@ pub type VerifyCallback = fn(preverify_ok: bool, /// An SSL context object pub struct SslContext { priv ctx: *ffi::SSL_CTX ctx: *ffi::SSL_CTX } impl Drop for SslContext { Loading Loading @@ -196,7 +196,7 @@ impl SslContext { } pub struct X509StoreContext { priv ctx: *ffi::X509_STORE_CTX ctx: *ffi::X509_STORE_CTX } impl X509StoreContext { Loading @@ -218,8 +218,8 @@ impl X509StoreContext { /// A public key certificate pub struct X509<'ctx> { priv ctx: &'ctx X509StoreContext, priv x509: *ffi::X509 ctx: &'ctx X509StoreContext, x509: *ffi::X509 } impl<'ctx> X509<'ctx> { Loading @@ -230,8 +230,8 @@ impl<'ctx> X509<'ctx> { } pub struct X509Name<'x> { priv x509: &'x X509<'x>, priv name: *ffi::X509_NAME x509: &'x X509<'x>, name: *ffi::X509_NAME } pub enum X509NameFormat { Loading Loading @@ -459,9 +459,9 @@ impl MemBio { /// A stream wrapper which handles SSL encryption for an underlying stream. pub struct SslStream<S> { priv stream: S, priv ssl: Ssl, priv buf: Vec<u8> stream: S, ssl: Ssl, buf: Vec<u8> } impl<S: Stream> SslStream<S> { Loading