summaryrefslogtreecommitdiff
path: root/openssl/src/sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/sign.rs')
-rw-r--r--openssl/src/sign.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/openssl/src/sign.rs b/openssl/src/sign.rs
index 633d77ac..5bc863af 100644
--- a/openssl/src/sign.rs
+++ b/openssl/src/sign.rs
@@ -279,8 +279,12 @@ impl<'a> Signer<'a> {
/// OpenSSL documentation at [`EVP_DigestSignFinal`].
///
/// [`EVP_DigestSignFinal`]: https://www.openssl.org/docs/man1.1.0/crypto/EVP_DigestSignFinal.html
- #[cfg(not(ossl111))]
pub fn len(&self) -> Result<usize, ErrorStack> {
+ self.len_intern()
+ }
+
+ #[cfg(not(ossl111))]
+ fn len_intern(&self) -> Result<usize, ErrorStack> {
unsafe {
let mut len = 0;
cvt(ffi::EVP_DigestSignFinal(
@@ -293,7 +297,7 @@ impl<'a> Signer<'a> {
}
#[cfg(ossl111)]
- pub fn len(&self) -> Result<usize, ErrorStack> {
+ fn len_intern(&self) -> Result<usize, ErrorStack> {
unsafe {
let mut len = 0;
cvt(ffi::EVP_DigestSign(