![]() |
MHEG5
22.11.0
|
Functions relating to HTTPS Signature certificates. More...
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <openssl/sha.h>
#include <openssl/rsa.h>
#include <openssl/evp.h>
#include <openssl/x509.h>
#include <openssl/opensslv.h>
#include "mh5profile.h"
#include "mh5sig.h"
#include "mh5memory.h"
#include "mh5fileorm.h"
#include "mh5debug.h"
#include "stb_os.h"
Classes | |
struct | sSigCacheEntry |
struct | sCertLink |
struct | sCertFile |
Macros | |
#define | SIG_CERT_TIMEOUT (3 * 60 * 60 * 1000) |
#define | MAX_SIG_CERT_NAME (22) |
#define | MAX_SIG_SIZE (256) |
#define | ENTRY_STATE_STRING(e) |
#define | SIG_DEBUG_PRINT |
#define | PRINT(x) |
Typedefs | |
typedef struct sSigCacheEntry | SigCacheEntry |
typedef struct sCertLink | CertLink |
typedef struct sCertFile | CertFile |
Enumerations | |
enum | SigEntryState { ENTRY_STATE_START, ENTRY_STATE_VERIFIED, ENTRY_STATE_NOT_VERIFIED, ENTRY_STATE_WAIT_FOR_CERT, ENTRY_STATE_HAS_CERT, ENTRY_STATE_NO_CERT } |
Functions | |
MHEG5SigVerifyStatus_t | MHEG5IsValidSignature (MHEG5String *hash, MHEG5String *signature) |
Check whether the signature is valid. More... | |
void | MHEG5ClearSigCertCache (void) |
Clear the signature certificate cache and all related information. More... | |
void | MHEG5InvalidateSigCertCache (void) |
Invalidate the certificates in the certificate cache. More... | |
void | MHEG5SetSigVerifyCallback (void(*callback)(void)) |
Sets the callback to be called when pending requests are resolved. More... | |
Functions relating to HTTPS Signature certificates.
#define ENTRY_STATE_STRING | ( | e | ) |
void MHEG5ClearSigCertCache | ( | void | ) |
Clear the signature certificate cache and all related information.
void MHEG5InvalidateSigCertCache | ( | void | ) |
Invalidate the certificates in the certificate cache.
MHEG5SigVerifyStatus_t MHEG5IsValidSignature | ( | MHEG5String * | hash, |
MHEG5String * | signature | ||
) |
Check whether the signature is valid.
hash | Hash file contents |
signature | Signature file contents |
void MHEG5SetSigVerifyCallback | ( | void(*)(void) | callback | ) |
Sets the callback to be called when pending requests are resolved.
callback | Callback function to be called when pending requests are resolved |