Codebase list erlang-p1-tls / f0e19f7
Merge tag 'upstream/1.0.4' Upstream version 1.0.4 Philipp Huebner 7 years ago
5 changed file(s) with 28 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
0 # Version 1.0.4
1
2 * Better compliance with R17 and R18 (Paweł Chmielowski)
3
04 # Version 1.0.3
15
26 * Do not call internal erlang erl_exit function (Christophe Romain)
5454
5555 /* Wrappers around driver_alloc() that check */
5656 /* for OOM. */
57 void erl_exit(int n, char* v, ...) { abort(); }
57
58 #ifdef HAS_ERTS_EXIT
59 void erts_exit(int n, char* v, ...);
60 #define erl_exit erts_exit
61 #else
62 void erl_exit(int n, char* v, ...);
63 #endif
64
5865 void *ftls_alloc(ErlDrvSizeT size);
5966 void *ftls_realloc(void *ptr, ErlDrvSizeT size);
6067 ErlDrvBinary *ftls_alloc_binary(ErlDrvSizeT size);
4545 ModCfg = fun(Cfg, Keys, Op, Default) -> ModCfg0(ModCfg0, Cfg, Keys, Op, Default) end.
4646 ModCfgS = fun(Cfg, Keys, Val) -> ModCfg0(ModCfg0, Cfg, Keys, fun(_V) -> Val end, "") end.
4747
48 Cfg0 = ModCfg(CONFIG, [port_env, "CFLAGS"], fun(V) -> V ++ " " ++ CfgCFlags end, "$CFLAGS"),
48
49 ExitFlag = case erlang:system_info(version) >= "7.3" of true -> "-DHAS_ERTS_EXIT"; _ -> "" end.
50
51 Cfg0 = ModCfg(CONFIG, [port_env, "CFLAGS"], fun(V) -> V ++ " " ++ ExitFlag ++ " " ++ CfgCFlags end, "$CFLAGS"),
4952 Cfg00 = ModCfg(Cfg0, [port_env, "LDFLAGS"], fun(V) -> V ++ " " ++ CfgLDFlags end, "$LDFLAGS"),
5053 Cfg1 = case CfgWithGCov of
5154 "true" ->
2222
2323 {application, fast_tls,
2424 [{description, "TLS / SSL OpenSSL-based native driver for Erlang / Elixir"},
25 {vsn, "1.0.3"},
25 {vsn, "1.0.4"},
2626 {modules, []},
2727 {registered, []},
2828 {applications, [kernel, stdlib]},
3737 %% Internal exports, call-back functions.
3838 -export([init/1, handle_call/3, handle_cast/2,
3939 handle_info/2, code_change/3, terminate/2]).
40
41 -ifdef(TEST).
42 -include_lib("eunit/include/eunit.hrl").
43 -endif.
4044
4145 -define(SET_CERTIFICATE_FILE_ACCEPT, 1).
4246
420424 [erl_ddll:format_error(ErrorDesc)]),
421425 Err
422426 end.
427
428 -ifdef(TEST).
429
430 load_nif_test() ->
431 ?assertEqual(ok, load_driver()).
432
433 -endif.