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

Ir al código fuente de este archivo.

Clases

struct  IncludeInfo_st
struct  TimestampInfo_st
struct  TimestampInfoList_st

'defines'

#define TS_TYPE_ALL_DATA_OBJECTS   "AllDataObjectsTimeStamp"
#define TS_TYPE_INDIVIDUAL_DATA_OBJECTS   "IndividualDataObjectsTimeStamp"
#define TS_TYPE_SIGNATURE   "SignatureTimeStamp"
#define TS_TYPE_SIG_AND_REFS   "SigAndRefsTimeStamp"
#define TS_TYPE_REFS_ONLY   "RefsOnlyTimeStamp"
#define TS_TYPE_ARCHIVE   "ArchiveTimeStamp"
#define ID_TS_TYPE_ALL_DATA_OBJECTS   1
#define ID_TS_TYPE_INDIVIDUAL_DATA_OBJECTS   2
#define ID_TS_TYPE_SIGNATURE   3
#define ID_TS_TYPE_SIG_AND_REFS   4
#define ID_TS_TYPE_REFS_ONLY   5
#define ID_TS_TYPE_ARCHIVE   6

'typedefs'

typedef struct IncludeInfo_st IncludeInfo
typedef struct TimestampInfo_st TimestampInfo
typedef struct TimestampInfoList_st TimestampInfoList

Funciones

EXP_OPTION int ddocIncludeInfo_new (TimestampInfo *pTimestampInfo, IncludeInfo **ppIncludeInfo, const char *szURI)
EXP_OPTION int ddocIncludeInfo_free (IncludeInfo *pIncludeInfo)
EXP_OPTION const char * ddocIncludeInfo_GetURI (const IncludeInfo *pIncludeInfo)
EXP_OPTION int ddocIncludeInfo_SetURI (IncludeInfo *pIncludeInfo, const char *value)
EXP_OPTION int ddocTimestampInfo_new (TimestampInfoList *pTimestampInfoList, TimestampInfo **ppTimestampInfo, const char *szId, const char *szType)
EXP_OPTION int ddocTimestampInfo_free (TimestampInfo *pTimestampInfo)
EXP_OPTION const char * ddocTimestampInfo_GetId (const TimestampInfo *pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_SetId (TimestampInfo *pTimestampInfo, const char *value)
EXP_OPTION const char * ddocTimestampInfo_GetType (const TimestampInfo *pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_SetType (TimestampInfo *pTimestampInfo, const char *value)
EXP_OPTION const DigiDocMemBufddocTimestampInfo_GetTS (const TimestampInfo *pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_SetTS (TimestampInfo *pTimestampInfo, const char *value, long len)
EXP_OPTION const DigiDocMemBufddocTimestampInfo_GetRealDigest (const TimestampInfo *pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_SetRealDigest (TimestampInfo *pTimestampInfo, const char *value, long len)
EXP_OPTION int ddocTimestampInfo_GetIncludeInfosCount (const TimestampInfo *pTimestampInfo)
EXP_OPTION IncludeInfoddocTimestampInfo_GetIncludeInfo (const TimestampInfo *pTimestampInfo, int nIdx)
EXP_OPTION IncludeInfoddocTimestampInfo_GetLastIncludeInfo (const TimestampInfo *pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_DeleteIncludeInfo (TimestampInfo *pTimestampInfo, int nIdx)
EXP_OPTION int ddocTimestampInfo_AddIncludeInfo (TimestampInfo *pTimestampInfo, const char *szURI)
int ddocTimestampInfo_toXML (const TimestampInfo *pTimestampInfo, DigiDocMemBuf *pBuf)
EXP_OPTION int ddocTimestampInfoList_new (TimestampInfoList **ppTimestampInfoList)
EXP_OPTION int ddocTimestampInfoList_free (TimestampInfoList *pTimestampInfoList)
EXP_OPTION int ddocTimestampInfoList_GetTimestampInfosCount (const TimestampInfoList *pTimestampInfoList)
EXP_OPTION TimestampInfoddocTimestampInfoList_GetTimestampInfo (const TimestampInfoList *pTimestampInfoList, int nIdx)
EXP_OPTION int ddocTimestampInfoList_DeleteTimestampInfo (TimestampInfoList *pTimestampInfoList, int nIdx)
EXP_OPTION TimestampInfoddocTimestampInfoList_GetTimestampInfoOfType (const TimestampInfoList *pTimestampInfoList, const char *szType)
EXP_OPTION TimestampInfoddocTimestampInfoList_GetOrCreateTimestampInfoOfType (TimestampInfoList *pTimestampInfoList, const char *szId, const char *szType)
int ddocTsCreateTsReqBin (DigiDocMemBuf *pMBufReq, DigiDocMemBuf *pMBufDigest, const char *policy, int bNonce, int bCert)
EXP_OPTION int ddocSendTSRequest (DigiDocMemBuf *pMBufDigest, TS_RESP **ppResp, const char *policy, int bNonce, int bCert, const char *url, const char *proxyHost, const char *proxyPort)
int ddocTsReadTsReq (TS_REQ **ppReq, DigiDocMemBuf *pMBufInData)
int ddocTsWriteTsReq (TS_REQ *pReq, DigiDocMemBuf *pMBufOutData)
EXP_OPTION int ddocTsReadTsResp (TS_RESP **ppResp, DigiDocMemBuf *pMBufInData)
int ddocTsWriteTsResp (TS_RESP *pResp, DigiDocMemBuf *pMBufOutData)
int ddocTSResp_GetPolicyId (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
int ddocTSResp_GetStatus (TS_RESP *pResp, int *pStatus)
EXP_OPTION int ddocTSResp_GetSerial (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
int ddocTSResp_GetNonce (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
EXP_OPTION int ddocTSResp_GetTime (TS_RESP *pResp, time_t *pTime)
EXP_OPTION int ddocTSResp_GetTsaName (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
EXP_OPTION int ddocTSResp_GetMsgImprint (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
EXP_OPTION int ddocTSResp_GetMsgImprint_Algoritm (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
int ddocVerifyTSResponse (TS_RESP *pResp, const DigiDocMemBuf *pMBufDigest, X509 **pCACerts, char *szCAPath)
EXP_OPTION int ddocTsResp_GetSignerCertSerial (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
int ddocTsResp_GetSignerCertIssuer (TS_RESP *pResp, DigiDocMemBuf *pMBuf)
EXP_OPTION int ddocTsResp_GetSignerCert (TS_RESP *pResp, X509 **ppCert)
int ddocVerifyTimestampInfo (TimestampInfo *pTS, X509 **pCACerts, char *szCAPath, time_t *pTime, X509 **ppTsaCert)

Documentación de los 'defines'

#define ID_TS_TYPE_ALL_DATA_OBJECTS   1
#define ID_TS_TYPE_ARCHIVE   6
#define ID_TS_TYPE_INDIVIDUAL_DATA_OBJECTS   2
#define ID_TS_TYPE_REFS_ONLY   5
#define ID_TS_TYPE_SIG_AND_REFS   4
#define ID_TS_TYPE_SIGNATURE   3
#define TS_TYPE_ALL_DATA_OBJECTS   "AllDataObjectsTimeStamp"
#define TS_TYPE_ARCHIVE   "ArchiveTimeStamp"
#define TS_TYPE_INDIVIDUAL_DATA_OBJECTS   "IndividualDataObjectsTimeStamp"
#define TS_TYPE_REFS_ONLY   "RefsOnlyTimeStamp"
#define TS_TYPE_SIG_AND_REFS   "SigAndRefsTimeStamp"
#define TS_TYPE_SIGNATURE   "SignatureTimeStamp"

Documentación de los 'typedefs'

typedef struct IncludeInfo_st IncludeInfo

Documentación de las funciones

EXP_OPTION int ddocIncludeInfo_free ( IncludeInfo pIncludeInfo)
EXP_OPTION const char* ddocIncludeInfo_GetURI ( const IncludeInfo pIncludeInfo)
EXP_OPTION int ddocIncludeInfo_new ( TimestampInfo pTimestampInfo,
IncludeInfo **  ppIncludeInfo,
const char *  szURI 
)
EXP_OPTION int ddocIncludeInfo_SetURI ( IncludeInfo pIncludeInfo,
const char *  value 
)
EXP_OPTION int ddocSendTSRequest ( DigiDocMemBuf pMBufDigest,
TS_RESP **  ppResp,
const char *  policy,
int  bNonce,
int  bCert,
const char *  url,
const char *  proxyHost,
const char *  proxyPort 
)
EXP_OPTION int ddocTimestampInfo_AddIncludeInfo ( TimestampInfo pTimestampInfo,
const char *  szURI 
)
EXP_OPTION int ddocTimestampInfo_DeleteIncludeInfo ( TimestampInfo pTimestampInfo,
int  nIdx 
)
EXP_OPTION int ddocTimestampInfo_free ( TimestampInfo pTimestampInfo)
EXP_OPTION const char* ddocTimestampInfo_GetId ( const TimestampInfo pTimestampInfo)
EXP_OPTION IncludeInfo* ddocTimestampInfo_GetIncludeInfo ( const TimestampInfo pTimestampInfo,
int  nIdx 
)
EXP_OPTION int ddocTimestampInfo_GetIncludeInfosCount ( const TimestampInfo pTimestampInfo)
EXP_OPTION IncludeInfo* ddocTimestampInfo_GetLastIncludeInfo ( const TimestampInfo pTimestampInfo)
EXP_OPTION const DigiDocMemBuf* ddocTimestampInfo_GetRealDigest ( const TimestampInfo pTimestampInfo)
EXP_OPTION const DigiDocMemBuf* ddocTimestampInfo_GetTS ( const TimestampInfo pTimestampInfo)
EXP_OPTION const char* ddocTimestampInfo_GetType ( const TimestampInfo pTimestampInfo)
EXP_OPTION int ddocTimestampInfo_new ( TimestampInfoList pTimestampInfoList,
TimestampInfo **  ppTimestampInfo,
const char *  szId,
const char *  szType 
)
EXP_OPTION int ddocTimestampInfo_SetId ( TimestampInfo pTimestampInfo,
const char *  value 
)
EXP_OPTION int ddocTimestampInfo_SetRealDigest ( TimestampInfo pTimestampInfo,
const char *  value,
long  len 
)
EXP_OPTION int ddocTimestampInfo_SetTS ( TimestampInfo pTimestampInfo,
const char *  value,
long  len 
)
EXP_OPTION int ddocTimestampInfo_SetType ( TimestampInfo pTimestampInfo,
const char *  value 
)
int ddocTimestampInfo_toXML ( const TimestampInfo pTimestampInfo,
DigiDocMemBuf pBuf 
)
EXP_OPTION int ddocTimestampInfoList_DeleteTimestampInfo ( TimestampInfoList pTimestampInfoList,
int  nIdx 
)
EXP_OPTION int ddocTimestampInfoList_free ( TimestampInfoList pTimestampInfoList)
EXP_OPTION TimestampInfo* ddocTimestampInfoList_GetOrCreateTimestampInfoOfType ( TimestampInfoList pTimestampInfoList,
const char *  szId,
const char *  szType 
)
EXP_OPTION TimestampInfo* ddocTimestampInfoList_GetTimestampInfo ( const TimestampInfoList pTimestampInfoList,
int  nIdx 
)
EXP_OPTION TimestampInfo* ddocTimestampInfoList_GetTimestampInfoOfType ( const TimestampInfoList pTimestampInfoList,
const char *  szType 
)
EXP_OPTION int ddocTimestampInfoList_GetTimestampInfosCount ( const TimestampInfoList pTimestampInfoList)
EXP_OPTION int ddocTimestampInfoList_new ( TimestampInfoList **  ppTimestampInfoList)
int ddocTsCreateTsReqBin ( DigiDocMemBuf pMBufReq,
DigiDocMemBuf pMBufDigest,
const char *  policy,
int  bNonce,
int  bCert 
)
int ddocTsReadTsReq ( TS_REQ **  ppReq,
DigiDocMemBuf pMBufInData 
)
EXP_OPTION int ddocTsReadTsResp ( TS_RESP **  ppResp,
DigiDocMemBuf pMBufInData 
)
EXP_OPTION int ddocTSResp_GetMsgImprint ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
EXP_OPTION int ddocTSResp_GetMsgImprint_Algoritm ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
int ddocTSResp_GetNonce ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
int ddocTSResp_GetPolicyId ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
EXP_OPTION int ddocTSResp_GetSerial ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
EXP_OPTION int ddocTsResp_GetSignerCert ( TS_RESP *  pResp,
X509 **  ppCert 
)
int ddocTsResp_GetSignerCertIssuer ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
EXP_OPTION int ddocTsResp_GetSignerCertSerial ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
int ddocTSResp_GetStatus ( TS_RESP *  pResp,
int pStatus 
)
EXP_OPTION int ddocTSResp_GetTime ( TS_RESP *  pResp,
time_t *  pTime 
)
EXP_OPTION int ddocTSResp_GetTsaName ( TS_RESP *  pResp,
DigiDocMemBuf pMBuf 
)
int ddocTsWriteTsReq ( TS_REQ *  pReq,
DigiDocMemBuf pMBufOutData 
)
int ddocTsWriteTsResp ( TS_RESP *  pResp,
DigiDocMemBuf pMBufOutData 
)
int ddocVerifyTimestampInfo ( TimestampInfo pTS,
X509 **  pCACerts,
char *  szCAPath,
time_t *  pTime,
X509 **  ppTsaCert 
)
int ddocVerifyTSResponse ( TS_RESP *  pResp,
const DigiDocMemBuf pMBufDigest,
X509 **  pCACerts,
char *  szCAPath 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'