Sha256: 66f918768ffb424dd8062699dd1b9d618056db2145370832f9e92c53b52a9b77

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

require 'ffi'

module LibOpenSSL
  extend FFI::Library
  ffi_lib ['ssl']

  # Caller must free result with OPENSSL_free aka (usually) LIBC free 
  attach_function :BN_bn2hex,
                  [:pointer],
                  :strptr
  attach_function :BN_hex2bn,
                  [:pointer, :string],
                  :int
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rnp-0.2.0 lib/rnp/lowlevel/libopenssl.rb