View Source tls_certificate_check_shared_state (tls_certificate_check v1.17.1)

Link to this section Summary

Link to this section Types

Specs

authorities_source() :: hardcoded | otp | {override, term()}.

Specs

state() :: #state{}.

Link to this section Functions

Link to this function

authoritative_certificate_values()

View Source

Specs

authoritative_certificate_values() -> [public_key:der_encoded(), ...] | no_return().

Specs

child_spec() -> supervisor:child_spec().
Link to this function

code_change(OldVsn, State, Extra)

View Source

Specs

code_change(term(), state() | term(), term()) ->
               {ok, state()} | {error, {cannot_convert_state, term()}}.
Link to this function

find_trusted_authority(EncodedCertificates)

View Source

Specs

find_trusted_authority([public_key:der_encoded()]) ->
                          {trusted_ca, public_key:der_encoded()} | unknown_ca | no_return().
Link to this function

handle_call(Request, From, State)

View Source

Specs

handle_call(term(), {pid(), reference()}, state()) ->
               {reply, ok, state()} |
               {reply, {error, term()}, state()} |
               {stop, {unexpected_call, #{request := _, from := {pid(), reference()}}}, state()}.
Link to this function

handle_cast(Request, State)

View Source

Specs

handle_cast(term(), state()) ->
               {noreply, state()} |
               {stop, normal, state()} |
               {stop, {unexpected_cast, term()}, state()}.
Link to this function

handle_info(Info, State)

View Source

Specs

handle_info(term(), state()) -> {stop, {unexpected_info, term()}, state()}.

Specs

init(_) -> no_return().
Link to this function

maybe_update_shared_state(UnprocessedAuthorities)

View Source

Specs

maybe_update_shared_state(binary() | [public_key:der_encoded()]) -> ok | {error, term()}.
Link to this function

maybe_update_shared_state(Source, UnprocessedAuthorities)

View Source

Specs

maybe_update_shared_state(authorities_source(), binary() | [public_key:der_encoded()]) ->
                             ok | {error, term()} | noproc.

Specs

proc_lib_init() -> no_return().

Specs

start_link() -> {ok, pid()} | {error, term()}.
Link to this function

terminate(Reason, State)

View Source

Specs

terminate(term(), state()) -> ok.