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

Ir al código fuente de este archivo.

Clases

struct  ConfigItem_st
struct  ConfigurationStore_st

'defines'

#define ITEM_TYPE_UNKNOWN   0
#define ITEM_TYPE_GLOBAL   1
#define ITEM_TYPE_PRIVATE   2
#define ITEM_STATUS_UNKNOWN   0
#define ITEM_STATUS_OK   1
#define ITEM_STATUS_MODIFIED   2

'typedefs'

typedef struct ConfigItem_st ConfigItem
typedef struct
ConfigurationStore_st 
ConfigurationStore

Funciones

EXP_OPTION int initConfigStore (const char *szConfigFile)
EXP_OPTION void cleanupConfigStore (ConfigurationStore *pConfStore)
EXP_OPTION int addConfigItem (ConfigurationStore *pConfStore, const char *key, const char *value, int type, int status)
EXP_OPTION int ConfigItem_delete (const char *key)
EXP_OPTION int createOrReplacePrivateConfigItem (ConfigurationStore *pConfStore, const char *key, const char *value)
EXP_OPTION const char * ConfigItem_lookup (const char *key)
EXP_OPTION const char * ConfigItem_lookup_fromStore (ConfigurationStore *pConfStore, const char *key)
int ConfigItem_findByPrefix (ConfigurationStore *pConfStore, const char *prefix)
EXP_OPTION int ConfigItem_lookup_int (const char *key, int defValue)
EXP_OPTION int ConfigItem_lookup_bool (const char *key, int defValue)
EXP_OPTION int readConfigFile (const char *fileName, int type)
EXP_OPTION int writeConfigFile (const char *fileName, int type)
EXP_OPTION int writePrivateConfigFile ()
EXP_OPTION void setPrivateConfigFile (const char *fileName)
EXP_OPTION int findCAForCertificate (X509 **ppCA, const X509 *pCert)
EXP_OPTION int findCAForCN (X509 **ppCA, const char *szCN)
EXP_OPTION int findCAChainForCN (X509 **ppChain, int *nMaxChain, const char *szCN)
EXP_OPTION int findResponder (X509 **ppResp, const char *szCN, const char *szHash, char *szCertSerial)
EXP_OPTION int findResponderByCNAndHashAndIndex (X509 **ppResp, const char *szCN, const char *hash, int nIdx)
EXP_OPTION int findResponderCA (char *caCN, int len, const char *szCN, const char *hash)
EXP_OPTION int notarizeSignature (SignedDoc *pSigDoc, SignatureInfo *pSigInfo)
EXP_OPTION int notarizeSignatureWithIp (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, unsigned long ip)
EXP_OPTION int signDocument (SignedDoc *pSigDoc, SignatureInfo **ppSigInfo, const char *pin, const char *manifest, const char *city, const char *state, const char *zip, const char *country)
int verifyNotary (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, NotaryInfo *pNotInfo)
EXP_OPTION int verifySignatureAndNotary (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, const char *szFileName)
int findCN (char *src, char *dest)
EXP_OPTION int ddocVerifyCertByOCSP (X509 *pCert, OCSP_RESPONSE **ppResp)
EXP_OPTION int ddocVerifyCertByOCSPWithIp (X509 *pCert, OCSP_RESPONSE **ppResp, unsigned long ip)
EXP_OPTION int ddocReadFile (const char *szFileName, DigiDocMemBuf *pData)

Documentación de los 'defines'

#define ITEM_STATUS_MODIFIED   2
#define ITEM_STATUS_OK   1
#define ITEM_STATUS_UNKNOWN   0
#define ITEM_TYPE_GLOBAL   1
#define ITEM_TYPE_PRIVATE   2
#define ITEM_TYPE_UNKNOWN   0

Documentación de los 'typedefs'

typedef struct ConfigItem_st ConfigItem

Documentación de las funciones

EXP_OPTION int addConfigItem ( ConfigurationStore pConfStore,
const char *  key,
const char *  value,
int  type,
int  status 
)
EXP_OPTION void cleanupConfigStore ( ConfigurationStore pConfStore)
EXP_OPTION int ConfigItem_delete ( const char *  key)
int ConfigItem_findByPrefix ( ConfigurationStore pConfStore,
const char *  prefix 
)
EXP_OPTION const char* ConfigItem_lookup ( const char *  key)
EXP_OPTION int ConfigItem_lookup_bool ( const char *  key,
int  defValue 
)
EXP_OPTION const char* ConfigItem_lookup_fromStore ( ConfigurationStore pConfStore,
const char *  key 
)
EXP_OPTION int ConfigItem_lookup_int ( const char *  key,
int  defValue 
)
EXP_OPTION int createOrReplacePrivateConfigItem ( ConfigurationStore pConfStore,
const char *  key,
const char *  value 
)
EXP_OPTION int ddocReadFile ( const char *  szFileName,
DigiDocMemBuf pData 
)
EXP_OPTION int ddocVerifyCertByOCSP ( X509 pCert,
OCSP_RESPONSE **  ppResp 
)
EXP_OPTION int ddocVerifyCertByOCSPWithIp ( X509 pCert,
OCSP_RESPONSE **  ppResp,
unsigned long  ip 
)
EXP_OPTION int findCAChainForCN ( X509 **  ppChain,
int nMaxChain,
const char *  szCN 
)
EXP_OPTION int findCAForCertificate ( X509 **  ppCA,
const X509 pCert 
)
EXP_OPTION int findCAForCN ( X509 **  ppCA,
const char *  szCN 
)
int findCN ( char *  src,
char *  dest 
)
EXP_OPTION int findResponder ( X509 **  ppResp,
const char *  szCN,
const char *  szHash,
char *  szCertSerial 
)
EXP_OPTION int findResponderByCNAndHashAndIndex ( X509 **  ppResp,
const char *  szCN,
const char *  hash,
int  nIdx 
)
EXP_OPTION int findResponderCA ( char *  caCN,
int  len,
const char *  szCN,
const char *  hash 
)
EXP_OPTION int initConfigStore ( const char *  szConfigFile)
EXP_OPTION int notarizeSignature ( SignedDoc pSigDoc,
SignatureInfo pSigInfo 
)
EXP_OPTION int notarizeSignatureWithIp ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
unsigned long  ip 
)
EXP_OPTION int readConfigFile ( const char *  fileName,
int  type 
)
EXP_OPTION void setPrivateConfigFile ( const char *  fileName)
EXP_OPTION int signDocument ( SignedDoc pSigDoc,
SignatureInfo **  ppSigInfo,
const char *  pin,
const char *  manifest,
const char *  city,
const char *  state,
const char *  zip,
const char *  country 
)
int verifyNotary ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
NotaryInfo pNotInfo 
)
EXP_OPTION int verifySignatureAndNotary ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
const char *  szFileName 
)
EXP_OPTION int writeConfigFile ( const char *  fileName,
int  type 
)
EXP_OPTION int writePrivateConfigFile ( )
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'