libdigidocpp
X509CertStore.cpp File Reference
#include "X509CertStore_p.h"
#include "DirectoryX509CertStore.h"
#include "../../Conf.h"
#include "../../log.h"
Include dependency graph for X509CertStore.cpp:

Go to the source code of this file.

Functions

 STACK_OF (X509)*digidoc = NULL

Function Documentation

STACK_OF ( X509  ) = NULL

Return STACK_OF(X509) containing all certs loaded from directory

Returns
STACK_OF(X509) all certs in store. throws IOException

Searches certificates by object type and returns a stack. NB! The returned certificate must be freed with OpenSSL function X509_free(X509* cert).

Parameters
subjectcertificate object.
subjectcertificate name.
Returns
returns copy of found certificates
Exceptions
IOExceptionexception is thrown if copying certificate failed.

Definition at line 119 of file X509CertStore.cpp.

Referenced by digidoc::SignatureTM::notarize(), digidoc::SignatureTM::validateOffline(), and digidoc::SignatureBES::validateOnline().

Here is the caller graph for this function: