mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
exporse OcspEntry in asn.h
This commit is contained in:
@ -1781,28 +1781,11 @@ struct WOLFSSL_CIPHER {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef struct OcspEntry OcspEntry;
|
|
||||||
|
|
||||||
#ifdef NO_SHA
|
|
||||||
#define OCSP_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
|
|
||||||
#else
|
|
||||||
#define OCSP_DIGEST_SIZE WC_SHA_DIGEST_SIZE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NO_ASN
|
#ifdef NO_ASN
|
||||||
/* no_asn won't have */
|
/* no_asn won't have */
|
||||||
typedef struct CertStatus CertStatus;
|
typedef struct CertStatus CertStatus;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct OcspEntry {
|
|
||||||
OcspEntry* next; /* next entry */
|
|
||||||
byte issuerHash[OCSP_DIGEST_SIZE]; /* issuer hash */
|
|
||||||
byte issuerKeyHash[OCSP_DIGEST_SIZE]; /* issuer public key hash */
|
|
||||||
CertStatus* status; /* OCSP response list */
|
|
||||||
int totalStatus; /* number on list */
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef HAVE_OCSP
|
#ifndef HAVE_OCSP
|
||||||
typedef struct WOLFSSL_OCSP WOLFSSL_OCSP;
|
typedef struct WOLFSSL_OCSP WOLFSSL_OCSP;
|
||||||
#endif
|
#endif
|
||||||
|
@ -1185,6 +1185,22 @@ struct OcspRequest {
|
|||||||
void* ssl;
|
void* ssl;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef struct OcspEntry OcspEntry;
|
||||||
|
|
||||||
|
#ifdef NO_SHA
|
||||||
|
#define OCSP_DIGEST_SIZE WC_SHA256_DIGEST_SIZE
|
||||||
|
#else
|
||||||
|
#define OCSP_DIGEST_SIZE WC_SHA_DIGEST_SIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct OcspEntry
|
||||||
|
{
|
||||||
|
OcspEntry *next; /* next entry */
|
||||||
|
byte issuerHash[OCSP_DIGEST_SIZE]; /* issuer hash */
|
||||||
|
byte issuerKeyHash[OCSP_DIGEST_SIZE]; /* issuer public key hash */
|
||||||
|
CertStatus *status; /* OCSP response list */
|
||||||
|
int totalStatus; /* number on list */
|
||||||
|
};
|
||||||
|
|
||||||
WOLFSSL_LOCAL void InitOcspResponse(OcspResponse*, CertStatus*, byte*, word32);
|
WOLFSSL_LOCAL void InitOcspResponse(OcspResponse*, CertStatus*, byte*, word32);
|
||||||
WOLFSSL_LOCAL int OcspResponseDecode(OcspResponse*, void*, void* heap, int);
|
WOLFSSL_LOCAL int OcspResponseDecode(OcspResponse*, void*, void* heap, int);
|
||||||
|
Reference in New Issue
Block a user