Eneboo - Documentación para desarrolladores
'defines' | Funciones
Referencia del Archivo src/libdigidoc/DigiDocGen.c
#include <libdigidoc/DigiDocDefs.h>
#include <libdigidoc/DigiDocLib.h>
#include <libdigidoc/DigiDocDebug.h>
#include <libdigidoc/DigiDocConfig.h>
#include <libdigidoc/DigiDocConvert.h>
#include <libdigidoc/DigiDocCert.h>
#include <libdigidoc/DigiDocSAXParser.h>
#include <libdigidoc/DigiDocDfExtract.h>
#include <libdigidoc/DigiDocGen.h>
#include <libdigidoc/DigiDocError.h>
#include <string.h>
#include <time.h>
#include <libxml/globals.h>
#include <libxml/xmlerror.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/tree.h>
#include <libxml/debugXML.h>
#include <libxml/xmlmemory.h>
#include <libxml/c14n.h>
#include <fcntl.h>

'defines'

#define DD_TEMP_FILE_MAX   200

Funciones

int ddocGen_startElemBegin (DigiDocMemBuf *pBuf, const char *elemName)
int ddocGen_startElemEnd (DigiDocMemBuf *pBuf)
int ddocGen_startElem (DigiDocMemBuf *pBuf, const char *elemName)
int ddocGen_endElem (DigiDocMemBuf *pBuf, const char *elemName)
int ddocGen_addAtribute (DigiDocMemBuf *pBuf, const char *name, const char *value)
EXP_OPTION int convertStringToTimestamp (const SignedDoc *pSigDoc, const char *szTimestamp, Timestamp *pTimestamp)
EXP_OPTION int convertTimestampToString (const SignedDoc *pSigDoc, const Timestamp *pTimestamp, char *szTimestamp, int len)
EXP_OPTION int Timestamp_new (Timestamp **ppTimestamp, int year, int month, int day, int hour, int minute, int second, int timezone)
EXP_OPTION void Timestamp_free (Timestamp *pTimestamp)
EXP_OPTION time_t convertStringToTimeT (const SignedDoc *pSigDoc, const char *szTimestamp)
int createTimestamp (const SignedDoc *pSigDoc, char *buf, int len)
char * canonicalizeXML (char *source, int len)
int escapeXMLSymbols (const char *src, int srclen, char **dest)
char * createXMLSignedProperties (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, int bWithEscapes)
EXP_OPTION char * createXMLSignedInfo (const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo)
int calculateOcspBasicResponseDigest (OCSP_BASICRESP *pBsResp, byte *digBuf, int *digLen)
int addNotaryInfoXML (DigiDocMemBuf *pMBufXML, const SignedDoc *pSigDoc, const SignatureInfo *pSigInfo, const NotaryInfo *pNotInfo)
void swapBytes (byte *src, int len)
int addSignatureInfoXML (DigiDocMemBuf *pMBufXML, SignedDoc *pSigDoc, SignatureInfo *pSigInfo)
int ddocCanonicalizePCDATA (char *src)
int generateDataFileXML (SignedDoc *pSigDoc, DataFile *pDataFile, const char *szDataFile, FILE *hFile, DigiDocMemBuf *pMBufXML)
int createSignedXMLDoc (SignedDoc *pSigDoc, const char *szOldFile, const char *szSigDocFile, DigiDocMemBuf *pMBufXML)
EXP_OPTION int createSignedDoc (SignedDoc *pSigDoc, const char *szOldFile, const char *szOutputFile)
EXP_OPTION int createSignedDocInMemory (SignedDoc *pSigDoc, const char *szOldFile, DigiDocMemBuf *pMBuf)
EXP_OPTION int removeIncompleteSignatures (SignedDoc *pSigDoc)
EXP_OPTION int hasIncompleteSignatures (SignedDoc *pSigDoc)

Documentación de los 'defines'

#define DD_TEMP_FILE_MAX   200

Documentación de las funciones

int addNotaryInfoXML ( DigiDocMemBuf pMBufXML,
const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
const NotaryInfo pNotInfo 
)
int addSignatureInfoXML ( DigiDocMemBuf pMBufXML,
SignedDoc pSigDoc,
SignatureInfo pSigInfo 
)
int calculateOcspBasicResponseDigest ( OCSP_BASICRESP pBsResp,
byte digBuf,
int digLen 
)
char* canonicalizeXML ( char *  source,
int  len 
)
EXP_OPTION int convertStringToTimestamp ( const SignedDoc pSigDoc,
const char *  szTimestamp,
Timestamp pTimestamp 
)
EXP_OPTION time_t convertStringToTimeT ( const SignedDoc pSigDoc,
const char *  szTimestamp 
)
EXP_OPTION int convertTimestampToString ( const SignedDoc pSigDoc,
const Timestamp pTimestamp,
char *  szTimestamp,
int  len 
)
EXP_OPTION int createSignedDoc ( SignedDoc pSigDoc,
const char *  szOldFile,
const char *  szOutputFile 
)
EXP_OPTION int createSignedDocInMemory ( SignedDoc pSigDoc,
const char *  szOldFile,
DigiDocMemBuf pMBuf 
)
int createSignedXMLDoc ( SignedDoc pSigDoc,
const char *  szOldFile,
const char *  szSigDocFile,
DigiDocMemBuf pMBufXML 
)
int createTimestamp ( const SignedDoc pSigDoc,
char *  buf,
int  len 
)
EXP_OPTION char* createXMLSignedInfo ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo 
)
char* createXMLSignedProperties ( const SignedDoc pSigDoc,
const SignatureInfo pSigInfo,
int  bWithEscapes 
)
int ddocCanonicalizePCDATA ( char *  src)
int ddocGen_addAtribute ( DigiDocMemBuf pBuf,
const char *  name,
const char *  value 
)
int ddocGen_endElem ( DigiDocMemBuf pBuf,
const char *  elemName 
)
int ddocGen_startElem ( DigiDocMemBuf pBuf,
const char *  elemName 
)
int ddocGen_startElemBegin ( DigiDocMemBuf pBuf,
const char *  elemName 
)
int ddocGen_startElemEnd ( DigiDocMemBuf pBuf)
int escapeXMLSymbols ( const char *  src,
int  srclen,
char **  dest 
)
int generateDataFileXML ( SignedDoc pSigDoc,
DataFile pDataFile,
const char *  szDataFile,
FILE *  hFile,
DigiDocMemBuf pMBufXML 
)
EXP_OPTION int hasIncompleteSignatures ( SignedDoc pSigDoc)
EXP_OPTION int removeIncompleteSignatures ( SignedDoc pSigDoc)
void swapBytes ( byte src,
int  len 
)
EXP_OPTION void Timestamp_free ( Timestamp pTimestamp)
EXP_OPTION int Timestamp_new ( Timestamp **  ppTimestamp,
int  year,
int  month,
int  day,
int  hour,
int  minute,
int  second,
int  timezone 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'