Eneboo - Documentación para desarrolladores
Clases | 'typedefs' | Funciones
Referencia del Archivo src/libdigidoc/DigiDocCert.h
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <libdigidoc/DigiDocDefs.h>
#include <libdigidoc/DigiDocLib.h>

Ir al código fuente de este archivo.

Clases

struct  PolicyIdentifier_st

'typedefs'

typedef struct PolicyIdentifier_st PolicyIdentifier

Funciones

EXP_OPTION int ReadPrivateKey (EVP_PKEY **privKey, const char *keyfile, const char *passwd, int format)
EXP_OPTION int WritePrivateKey (EVP_PKEY *privKey, const char *keyfile, const char *passwd, int format)
EXP_OPTION int ReadPublicKey (EVP_PKEY **pkey, const char *certfile)
EXP_OPTION int GetPublicKey (EVP_PKEY **pubKey, const X509 *x509)
EXP_OPTION int ddocWriteKeyAndCertPem (EVP_PKEY *privKey, X509 *pCert, const char *keyfile, const char *passwd)
EXP_OPTION int ReadCertificate (X509 **x509, const char *certfile)
EXP_OPTION int ReadCertSerialNumber (char *szSerial, int nMaxLen, X509 *x509)
EXP_OPTION int ReadCertificateByPKCS12 (X509 **x509, const char *pkcs12file, const char *passwd, EVP_PKEY **pkey)
EXP_OPTION int ddocDecodeX509Data (X509 **ppX509, const byte *certData, int certLen)
EXP_OPTION int ddocDecodeX509PEMData (X509 **ppX509, const char *certData, int certLen)
EXP_OPTION int getCertPEM (X509 *cert, int bHeaders, char **buf)
EXP_OPTION int GetCertSerialNumber (char *szSerial, int nMaxLen, const char *szCertfile)
EXP_OPTION int getCertNotBefore (const SignedDoc *pSigDoc, X509 *cert, char *timestamp, int len)
EXP_OPTION time_t getCertNotBeforeTimeT (X509 *pCert)
EXP_OPTION time_t getCertNotAfterTimeT (X509 *pCert)
EXP_OPTION int getCertNotAfter (const SignedDoc *pSigDoc, X509 *cert, char *timestamp, int len)
EXP_OPTION int saveCert (X509 *cert, const char *szFileName, int nFormat)
EXP_OPTION void * decodeCert (const char *pemData)
EXP_OPTION void encodeCert (const X509 *x509, char *encodedCert, int *encodedCertLen)
EXP_OPTION int readCertPolicies (X509 *pX509, PolicyIdentifier **pPolicies, int *nPols)
EXP_OPTION void PolicyIdentifiers_free (PolicyIdentifier *pPolicies, int nPols)
EXP_OPTION int isCompanyCPSPolicy (PolicyIdentifier *pPolicy)
EXP_OPTION int isCertValid (X509 *cert, time_t tDate)
EXP_OPTION int isCertSignedBy (X509 *cert, const char *cafile)
int writeCertToXMLFile (BIO *bout, X509 *cert)
EXP_OPTION int verifyCertificateByOCSP (X509 *pCert, const X509 **caCerts, const X509 *notaryCert, char *notaryURL, char *proxyHost, char *proxyPort, const char *pkcs12file, const char *pkcs12paswd, OCSP_RESPONSE **ppResp)
EXP_OPTION int verifyCertificateByOCSPWithIp (X509 *pCert, const X509 **caCerts, const X509 *notaryCert, char *notaryURL, char *proxyHost, char *proxyPort, const char *pkcs12file, const char *pkcs12paswd, OCSP_RESPONSE **ppResp, unsigned long ip)
int ddocCertGetDigest (X509 *pCert, DigiDocMemBuf *pMemBuf)
int ddocCertGetPubkeyDigest (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetIssuerDN (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectDN (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetDNFromName (X509_NAME *pName, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectCN (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetIssuerCN (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectFirstName (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectLastName (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectPerCode (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectCountryName (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectOrganization (X509 *pCert, DigiDocMemBuf *pMemBuf)
EXP_OPTION int ddocCertGetSubjectOrganizationUnit (X509 *pCert, DigiDocMemBuf *pMemBuf)

Documentación de los 'typedefs'


Documentación de las funciones

int ddocCertGetDigest ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetDNFromName ( X509_NAME pName,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetIssuerCN ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetIssuerDN ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
int ddocCertGetPubkeyDigest ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectCN ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectCountryName ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectDN ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectFirstName ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectLastName ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectOrganization ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectOrganizationUnit ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocCertGetSubjectPerCode ( X509 pCert,
DigiDocMemBuf pMemBuf 
)
EXP_OPTION int ddocDecodeX509Data ( X509 **  ppX509,
const byte certData,
int  certLen 
)
EXP_OPTION int ddocDecodeX509PEMData ( X509 **  ppX509,
const char *  certData,
int  certLen 
)
EXP_OPTION int ddocWriteKeyAndCertPem ( EVP_PKEY privKey,
X509 pCert,
const char *  keyfile,
const char *  passwd 
)
EXP_OPTION void* decodeCert ( const char *  pemData)
EXP_OPTION void encodeCert ( const X509 x509,
char *  encodedCert,
int encodedCertLen 
)
EXP_OPTION int getCertNotAfter ( const SignedDoc pSigDoc,
X509 cert,
char *  timestamp,
int  len 
)
EXP_OPTION time_t getCertNotAfterTimeT ( X509 pCert)
EXP_OPTION int getCertNotBefore ( const SignedDoc pSigDoc,
X509 cert,
char *  timestamp,
int  len 
)
EXP_OPTION time_t getCertNotBeforeTimeT ( X509 pCert)
EXP_OPTION int getCertPEM ( X509 cert,
int  bHeaders,
char **  buf 
)
EXP_OPTION int GetCertSerialNumber ( char *  szSerial,
int  nMaxLen,
const char *  szCertfile 
)
EXP_OPTION int GetPublicKey ( EVP_PKEY **  pubKey,
const X509 x509 
)
EXP_OPTION int isCertSignedBy ( X509 cert,
const char *  cafile 
)
EXP_OPTION int isCertValid ( X509 cert,
time_t  tDate 
)
EXP_OPTION int isCompanyCPSPolicy ( PolicyIdentifier pPolicy)
EXP_OPTION void PolicyIdentifiers_free ( PolicyIdentifier pPolicies,
int  nPols 
)
EXP_OPTION int ReadCertificate ( X509 **  x509,
const char *  certfile 
)
EXP_OPTION int ReadCertificateByPKCS12 ( X509 **  x509,
const char *  pkcs12file,
const char *  passwd,
EVP_PKEY **  pkey 
)
EXP_OPTION int readCertPolicies ( X509 pX509,
PolicyIdentifier **  pPolicies,
int nPols 
)
EXP_OPTION int ReadCertSerialNumber ( char *  szSerial,
int  nMaxLen,
X509 x509 
)
EXP_OPTION int ReadPrivateKey ( EVP_PKEY **  privKey,
const char *  keyfile,
const char *  passwd,
int  format 
)
EXP_OPTION int ReadPublicKey ( EVP_PKEY **  pkey,
const char *  certfile 
)
EXP_OPTION int saveCert ( X509 cert,
const char *  szFileName,
int  nFormat 
)
EXP_OPTION int verifyCertificateByOCSP ( X509 pCert,
const X509 **  caCerts,
const X509 notaryCert,
char *  notaryURL,
char *  proxyHost,
char *  proxyPort,
const char *  pkcs12file,
const char *  pkcs12paswd,
OCSP_RESPONSE **  ppResp 
)
EXP_OPTION int verifyCertificateByOCSPWithIp ( X509 pCert,
const X509 **  caCerts,
const X509 notaryCert,
char *  notaryURL,
char *  proxyHost,
char *  proxyPort,
const char *  pkcs12file,
const char *  pkcs12paswd,
OCSP_RESPONSE **  ppResp,
unsigned long  ip 
)
int writeCertToXMLFile ( BIO bout,
X509 cert 
)
EXP_OPTION int WritePrivateKey ( EVP_PKEY privKey,
const char *  keyfile,
const char *  passwd,
int  format 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'