Source file initialize.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
open! Core
open Import
let initialized = Set_once.create ()
let add_all_algorithms () =
Bindings.add_all_ciphers ();
Bindings.add_all_digests ()
;;
let initialize () =
match Set_once.get initialized with
| Some () -> ()
| None ->
Set_once.set_exn initialized [%here] ();
Bindings.ssl_load_error_strings ();
Bindings.err_load_crypto_strings ();
Bindings.openssl_config None;
Bindings.Engine.load_builtin_engines ();
Bindings.Engine.register_all_complete ();
ignore (Bindings.init () : Unsigned.ulong);
add_all_algorithms ()
;;