Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions bindings/ffi_bindings.ml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ end = struct
;;
end

module Bignum = Voidp (struct
let name = "Bignum"
end)
module Bignum = struct
open Ctypes
type stub
type t = stub structure ptr
let t_raw : stub structure typ = structure "bignum_st"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, openssl/types.h has this line:

typedef struct bignum_st BIGNUM;

let t = ptr t_raw
let t_opt = ptr_opt t_raw
end

module Ssl = Voidp (struct
let name = "Ssl"
Expand Down