Method: Windows::CNG#close
- Defined in:
- lib/windows/cng.rb
#close ⇒ Object
Closes the windows-cng object. This is not explicitly required, since it will automatically be called once your object goes out of scope, but it is good form.
152 153 154 155 156 157 158 |
# File 'lib/windows/cng.rb', line 152 def close status = BCryptCloseAlgorithmProvider(@handle, 0) if status != 0 raise SystemCallError.new('BCryptCloseAlgorithmProvider', status) end end |