aboutsummaryrefslogtreecommitdiff
path: root/ssl/error.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2014-03-15 16:28:53 -0700
committerSteven Fackler <[email protected]>2014-03-15 16:28:53 -0700
commita881f7d0081b66ed0545231de0ab7a67114893bf (patch)
tree58df3d861f66eab18a77cf4256fa233cd5b1023a /ssl/error.rs
parentRemove unneeded libextra dependency (diff)
downloadrust-openssl-a881f7d0081b66ed0545231de0ab7a67114893bf.tar.xz
rust-openssl-a881f7d0081b66ed0545231de0ab7a67114893bf.zip
De-~[] ssl
Diffstat (limited to 'ssl/error.rs')
-rw-r--r--ssl/error.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ssl/error.rs b/ssl/error.rs
index 296812c3..6a89b678 100644
--- a/ssl/error.rs
+++ b/ssl/error.rs
@@ -1,5 +1,6 @@
use std::libc::c_ulong;
use std::io::IoError;
+use std::vec_ng::Vec;
use ssl::ffi;
@@ -11,7 +12,7 @@ pub enum SslError {
/// The SSL session has been closed by the other end
SslSessionClosed,
/// An error in the OpenSSL library
- OpenSslErrors(~[OpensslError])
+ OpenSslErrors(Vec<OpensslError>)
}
/// An error from the OpenSSL library
@@ -44,7 +45,7 @@ impl SslError {
/// Creates a new `OpenSslErrors` with the current contents of the error
/// stack.
pub fn get() -> SslError {
- let mut errs = ~[];
+ let mut errs = vec!();
loop {
match unsafe { ffi::ERR_get_error() } {
0 => break,