ssl_pkix_db

Types


certdb_ref() = reference()

db_handle() = term()

der_cert() = binary()

issuer() = tuple()

serialnumber() = integer()

Functions


create() -> [db_handle(), ...]

remove(Dbs::[db_handle()]) -> ok

lookup_trusted_cert(DbHandle::db_handle(), Ref::certdb_ref(), SerialNumber::serialnumber(), Issuer::issuer()) -> undefined | {ok, {der_cert(), #'OTPCertificate'{}}}

lookup_cached_pem(PemChache, MD5) -> term()

add_trusted_certs(Pid::pid(), File::{timestamp() (see module erlang), string()} | {der, list()}, Db::[db_handle()]) -> {ok, [db_handle()]}

cache_pem_file(X1::{binary(), binary()}, X2::[db_handle()]) -> {ok, term()}

cache_pem_file(Ref::reference(), X2::{binary(), binary()}, X3::[db_handle()]) -> {ok, term()}

remove_trusted_certs(Ref::reference(), CertsDb::db_handle()) -> ok

remove(Key::term(), Db::db_handle()) -> ok

lookup(Key::term(), Db::db_handle()) -> [term()] | undefined

foldl(Fun::(term(), term()) -> term(), Acc0::term(), Cache::db_handle()) -> term()

ref_count(Key::term(), Db::db_handle(), N::integer()) -> integer()

clear(Db::db_handle()) -> ok

db_size(Db::db_handle()) -> integer()

insert(Key::term(), Data::term(), Db::db_handle()) -> ok