![]() |
MHEG5
22.11.0
|
Functions relating to HTTPS Content Verification. More...
#include <stdlib.h>#include <string.h>#include <stdio.h>#include <openssl/evp.h>#include <openssl/opensslv.h>#include "mh5hash.h"#include "mh5base.h"#include "mh5memory.h"#include "mh5fileorm.h"#include "mh5sig.h"#include "stb_os.h"Classes | |
| struct | sHashDigest |
| struct | sHashfileData |
Macros | |
| #define | GET_16BITS_FROM_ARRAY(X, Y) ((X[Y] << 8) | X[Y + 1]) |
Typedefs | |
| typedef struct sHashDigest | HashDigest |
| typedef struct sHashfileData | HashfileData |
Functions | |
| void | MHEG5SetVerificationCallback (void(*callback)(void)) |
| Register a callback to be fired when the state of the verification file changes. More... | |
| void | MHEG5ResetVerification (void) |
| Reset the state of the verification subsystem. More... | |
| MHEG5ContentVerification_t | MHEG5IsContentVerified (U8BIT *url, U8BIT *content, U32BIT length) |
| void | MHEG5ResetHashFile (U8BIT *url) |
| Reset the state and clear cache of the hashfile associated with a content file. More... | |
Functions relating to HTTPS Content Verification.
| MHEG5ContentVerification_t MHEG5IsContentVerified | ( | U8BIT * | url, |
| U8BIT * | content, | ||
| U32BIT | length | ||
| ) |
| url | URL of the content to be verified |
| content | Pointer to the content to be verified |
| length | Size of content in bytes |
| void MHEG5ResetHashFile | ( | U8BIT * | url | ) |
Reset the state and clear cache of the hashfile associated with a content file.
| url | URL of content file |
| void MHEG5ResetVerification | ( | void | ) |
Reset the state of the verification subsystem.
Reset the entire state of the verification mechanism.
| void MHEG5SetVerificationCallback | ( | void(*)(void) | callback | ) |
Register a callback to be fired when the state of the verification file changes.
Register a callback to be fired when the state of the verification subsystem changes.
| callback | Pointer to the callback function to be used. |
1.8.11