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, File) -> term()

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

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

cache_pem_file(Ref::reference(), File::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()

select_cert_by_issuer(Cache, Issuer) -> 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

add_crls(X1, Path, CRLs) -> term()

remove_crls(X1, Path) -> term()