Eneboo - Documentación para desarrolladores
Funciones
Referencia del Archivo src/libdigidoc/DigiDocOCSP.c
#include <libdigidoc/DigiDocOCSP.h>
#include <libdigidoc/DigiDocError.h>
#include <libdigidoc/DigiDocDebug.h>
#include <libdigidoc/DigiDocConvert.h>
#include <libdigidoc/DigiDocLib.h>
#include <libdigidoc/DigiDocCert.h>
#include <libdigidoc/DigiDocVerify.h>
#include <openssl/sha.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/ocsp.h>
#include <openssl/pkcs12.h>
#include <openssl/rand.h>

Funciones

EXP_OPTION int ddocDecodeOCSPResponseData (OCSP_RESPONSE **ppResp, const byte *data, int len)
EXP_OPTION int ddocDecodeOCSPResponsePEMData (OCSP_RESPONSE **ppResp, const byte *data, int len)
int ReadOCSPResponse (OCSP_RESPONSE **newOCSP_RESPONSE, const char *szFileName)
int WriteOCSPResponse (const char *szFileName, const OCSP_RESPONSE *resp)
int ReadOCSPRequest (OCSP_REQUEST **newOCSP_REQUEST, const char *szFileName)
int WriteOCSPRequest (const char *szFileName, const OCSP_REQUEST *req)
int handleOCSPCertStatus (int status)
int calcNotaryDigest (SignedDoc *pSigDoc, NotaryInfo *pNotary)
int initializeNotaryInfoWithOCSP (SignedDoc *pSigDoc, NotaryInfo *pNotary, OCSP_RESPONSE *resp, X509 *notCert, int initDigest)
int ddocOcspReadOcspResp (OCSP_RESPONSE **ppResp, DigiDocMemBuf *pMBufInData)
int ddocOcspWriteOcspResp (OCSP_RESPONSE *pResp, DigiDocMemBuf *pMBufOutData)
EXP_OPTION int getOcspPEM (OCSP_RESPONSE *pResp, int bHeaders, char **buf)
EXP_OPTION int ddocGetOcspBase64 (NotaryInfo *pNotary, int bHeaders, DigiDocMemBuf *pMBufOutData)
unsigned char * decodeHex (unsigned char *str)
unsigned char * get_authority_key (STACK_OF(X509_EXTENSION)*exts)
OCSP_CERTIDcreateOCSPCertid (X509 *cert, X509 *pCACert)
int MY_OCSP_request_add1_nonce (OCSP_REQUEST *req, unsigned char *val, int len)
int MY_OCSP_basic_add1_nonce (OCSP_BASICRESP *resp, unsigned char *val, int len)
int createOCSPRequest (SignedDoc *pSigDoc, OCSP_REQUEST **req, X509 *cert, X509 *pCACert, byte *nonce, int nlen)
OCSP_RESPONSEOCSP_sendreq_bio_withParams (BIO *b, char *path, OCSP_REQUEST *req, unsigned long ip_addr)
int sendOCSPRequest (OCSP_RESPONSE **resp, OCSP_REQUEST *req, char *url, char *proxyHost, char *proxyPort, unsigned long ip_addr)
EXP_OPTION int writeOCSPRequest (SignedDoc *pSigDoc, const char *signerCertFile, const char *issuertCertFile, byte *nonce, int nlen, const char *szOutputFile)
EXP_OPTION int signOCSPRequestPKCS12 (OCSP_REQUEST *req, const char *filename, const char *passwd)
EXP_OPTION int signOCSPRequest (OCSP_REQUEST *req, const char *certFile, const char *keyfile, const char *passwd)
EXP_OPTION int getConfirmation (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, const X509 **caCerts, const X509 *pNotCert, char *pkcs12FileName, char *pkcs12Password, char *notaryURL, char *proxyHost, char *proxyPort)
EXP_OPTION int getConfirmationWithIp (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, const X509 **caCerts, const X509 *pNotCert, char *pkcs12FileName, char *pkcs12Password, char *notaryURL, char *proxyHost, char *proxyPort, unsigned long ip)
int EXP_OPTION finalizeAndVerifyNotary (SignedDoc *pSigDoc, SignatureInfo *pSigInfo, NotaryInfo *pNotInf, const X509 **caCerts, const X509 *pNotCert)
int verifyOCSPResponse (OCSP_RESPONSE *pResp, const X509 **caCerts, const char *CApath, const X509 *notCert)
int checkNonceAndCertbyOCSP (OCSP_RESPONSE *resp, X509 *cert, byte *nonce1, int nonceLen)

Documentación de las funciones

int calcNotaryDigest ( SignedDoc pSigDoc,
NotaryInfo pNotary 
)
int checkNonceAndCertbyOCSP ( OCSP_RESPONSE resp,
X509 cert,
byte nonce1,
int  nonceLen 
)
OCSP_CERTID* createOCSPCertid ( X509 cert,
X509 pCACert 
)
int createOCSPRequest ( SignedDoc pSigDoc,
OCSP_REQUEST **  req,
X509 cert,
X509 pCACert,
byte nonce,
int  nlen 
)
EXP_OPTION int ddocDecodeOCSPResponseData ( OCSP_RESPONSE **  ppResp,
const byte data,
int  len 
)
EXP_OPTION int ddocDecodeOCSPResponsePEMData ( OCSP_RESPONSE **  ppResp,
const byte data,
int  len 
)
EXP_OPTION int ddocGetOcspBase64 ( NotaryInfo pNotary,
int  bHeaders,
DigiDocMemBuf pMBufOutData 
)
int ddocOcspReadOcspResp ( OCSP_RESPONSE **  ppResp,
DigiDocMemBuf pMBufInData 
)
int ddocOcspWriteOcspResp ( OCSP_RESPONSE pResp,
DigiDocMemBuf pMBufOutData 
)
unsigned char* decodeHex ( unsigned char *  str)
int EXP_OPTION finalizeAndVerifyNotary ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
NotaryInfo pNotInf,
const X509 **  caCerts,
const X509 pNotCert 
)
unsigned char* get_authority_key ( STACK_OF(X509_EXTENSION)*  exts)
EXP_OPTION int getConfirmation ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
const X509 **  caCerts,
const X509 pNotCert,
char *  pkcs12FileName,
char *  pkcs12Password,
char *  notaryURL,
char *  proxyHost,
char *  proxyPort 
)
EXP_OPTION int getConfirmationWithIp ( SignedDoc pSigDoc,
SignatureInfo pSigInfo,
const X509 **  caCerts,
const X509 pNotCert,
char *  pkcs12FileName,
char *  pkcs12Password,
char *  notaryURL,
char *  proxyHost,
char *  proxyPort,
unsigned long  ip 
)
EXP_OPTION int getOcspPEM ( OCSP_RESPONSE pResp,
int  bHeaders,
char **  buf 
)
int handleOCSPCertStatus ( int  status)
int initializeNotaryInfoWithOCSP ( SignedDoc pSigDoc,
NotaryInfo pNotary,
OCSP_RESPONSE resp,
X509 notCert,
int  initDigest 
)
int MY_OCSP_basic_add1_nonce ( OCSP_BASICRESP resp,
unsigned char *  val,
int  len 
)
int MY_OCSP_request_add1_nonce ( OCSP_REQUEST req,
unsigned char *  val,
int  len 
)
OCSP_RESPONSE* OCSP_sendreq_bio_withParams ( BIO b,
char *  path,
OCSP_REQUEST req,
unsigned long  ip_addr 
)
int ReadOCSPRequest ( OCSP_REQUEST **  newOCSP_REQUEST,
const char *  szFileName 
)
int ReadOCSPResponse ( OCSP_RESPONSE **  newOCSP_RESPONSE,
const char *  szFileName 
)
int sendOCSPRequest ( OCSP_RESPONSE **  resp,
OCSP_REQUEST req,
char *  url,
char *  proxyHost,
char *  proxyPort,
unsigned long  ip_addr 
)
EXP_OPTION int signOCSPRequest ( OCSP_REQUEST req,
const char *  certFile,
const char *  keyfile,
const char *  passwd 
)
EXP_OPTION int signOCSPRequestPKCS12 ( OCSP_REQUEST req,
const char *  filename,
const char *  passwd 
)
int verifyOCSPResponse ( OCSP_RESPONSE pResp,
const X509 **  caCerts,
const char *  CApath,
const X509 notCert 
)
int WriteOCSPRequest ( const char *  szFileName,
const OCSP_REQUEST req 
)
EXP_OPTION int writeOCSPRequest ( SignedDoc pSigDoc,
const char *  signerCertFile,
const char *  issuertCertFile,
byte nonce,
int  nlen,
const char *  szOutputFile 
)
int WriteOCSPResponse ( const char *  szFileName,
const OCSP_RESPONSE resp 
)
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'