Functions relating to HTTPS Content Verification.
More...
#include "mh5base.h"
#include "mh5root.h"
Go to the source code of this file.
|
enum | MHEG5ContentVerification_t {
CONTENT_NOT_VERIFIED_NEW,
CONTENT_NOT_VERIFIED_SAME,
CONTENT_VERIFIED_UNSIGNED,
CONTENT_VERIFIED_SIGNED,
CONTENT_VERIFICATION_PENDING
} |
|
Functions relating to HTTPS Content Verification.
- Date
- 22/02/2010
- Author
- Omri Barel
Definition in file mh5hash.h.
MHEG5ContentVerification_t MHEG5IsContentVerified |
( |
U8BIT * |
url, |
|
|
U8BIT * |
content, |
|
|
U32BIT |
length |
|
) |
| |
- Parameters
-
url | URL of the content to be verified |
content | Pointer to the content to be verified |
length | Size of content in bytes |
- Returns
- CONTENT_NOT_VERIFIED if content could not be verified CONTENT_VERIFIED if the content was verified, CONTENT_VERIFICATION_PENDING if the verification process could not be completed, pending a file-load
- Parameters
-
url | URL of the content to be verified |
content | Pointer to the content to be verified |
length | Size of content in bytes |
- Returns
- CONTENT_NOT_VERIFIED_NEW if content could not be verified CONTENT_VERIFIED if the content was verified, CONTENT_VERIFICATION_PENDING if the verification process could not be completed, pending a file-load
Definition at line 184 of file mh5hash.c.
void MHEG5ResetHashFile |
( |
U8BIT * |
url | ) |
|
Reset the state and clear cache of the hashfile associated with a content file.
- Parameters
-
- Returns
Definition at line 874 of file mh5hash.c.
void MHEG5ResetVerification |
( |
void |
| ) |
|
Reset the entire state of the verification mechanism.
- Returns
- nothing
Reset the entire state of the verification mechanism.
- Returns
- nothing
Definition at line 138 of file mh5hash.c.
void MHEG5SetVerificationCallback |
( |
void(*)(void) |
callback | ) |
|
Register a callback to be fired when the state of the verification subsystem changes.
- Parameters
-
callback | Pointer to the callback function to be used. |
- Returns
- Nothing
Register a callback to be fired when the state of the verification subsystem changes.
- Parameters
-
callback | Pointer to the callback function to be used. |
- Returns
Definition at line 128 of file mh5hash.c.