diff options
| author | Steven Fackler <[email protected]> | 2016-11-04 12:15:05 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-11-04 12:15:05 -0700 |
| commit | 25443d7b486576b846ed90125e3e56e16c9bc734 (patch) | |
| tree | c75f6e45109ed2de87755de2a15e9e09bd452a17 /openssl/src | |
| parent | Remove an enum (diff) | |
| download | rust-openssl-25443d7b486576b846ed90125e3e56e16c9bc734.tar.xz rust-openssl-25443d7b486576b846ed90125e3e56e16c9bc734.zip | |
Make utility functions private
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/lib.rs b/openssl/src/lib.rs index 03f702b5..785ffb39 100644 --- a/openssl/src/lib.rs +++ b/openssl/src/lib.rs @@ -85,7 +85,7 @@ pub mod stack; #[cfg(any(ossl102, ossl110))] mod verify; -pub fn cvt_p<T>(r: *mut T) -> Result<*mut T, ErrorStack> { +fn cvt_p<T>(r: *mut T) -> Result<*mut T, ErrorStack> { if r.is_null() { Err(ErrorStack::get()) } else { @@ -93,7 +93,7 @@ pub fn cvt_p<T>(r: *mut T) -> Result<*mut T, ErrorStack> { } } -pub fn cvt(r: c_int) -> Result<c_int, ErrorStack> { +fn cvt(r: c_int) -> Result<c_int, ErrorStack> { if r <= 0 { Err(ErrorStack::get()) } else { @@ -101,6 +101,6 @@ pub fn cvt(r: c_int) -> Result<c_int, ErrorStack> { } } -pub fn cvt_n(r: c_int) -> Result<c_int, ErrorStack> { +fn cvt_n(r: c_int) -> Result<c_int, ErrorStack> { if r < 0 { Err(ErrorStack::get()) } else { Ok(r) } } |