diff options
Diffstat (limited to 'test/openssl/utils.rb')
-rw-r--r-- | test/openssl/utils.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb index 2edb7b0c99..0e19eec105 100644 --- a/test/openssl/utils.rb +++ b/test/openssl/utils.rb @@ -132,4 +132,13 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S pkvalue = publickey.value OpenSSL::Digest::SHA1.hexdigest(pkvalue).scan(/../).join(":").upcase end + + def silent + begin + back, $VERBOSE = $VERBOSE, nil + yield + ensure + $VERBOSE = back if back + end + end end |