MHEG5  18.9.0
MHEG5 Documentation
Macros | Enumerations | Functions
mh5tls.c File Reference

Functions relating to TLS certificate store. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "mh5profile.h"
#include "mh5tls.h"
#include "mh5memory.h"
#include "http_interface.h"
#include "mh5fileorm.h"
#include "stb_os.h"

Go to the source code of this file.

Macros

#define TLS_CERT_TIMEOUT   (24 * 60 * 60 * 1000)
 
#define MAX_TLS_CERT_NAME   (22)
 
#define MAX_CALLBACKS   (5)
 
#define PRINT(x)
 

Enumerations

enum  TlsCertRefreshState { TLS_CERT_STATE_SYNC, TLS_CERT_STATE_ASYNC, TLS_CERT_STATE_VALID, TLS_CERT_STATE_INVALID }
 

Functions

void MHEG5ClearTlsCertStore (void)
 Clear the TLS certificate store. More...
 
void MHEG5InvalidateTlsCertStore (void)
 Invalidate the TLS certificate store. More...
 
U32BIT MHEG5GetTlsCertStoreCount (void)
 Return number of TLS certificates in the TLS certificate store. More...
 
MHEG5TlsCertRequestStatus MHEG5GetNextTlsCertificate (void)
 Issues a request to load the next TLS certificate from the DSM-CC object carousel. More...
 
void MHEG5AddTlsCertificateCallback (void(*loadCallback)(void))
 Add a callback function to be called when pending requests are resolved. More...
 

Detailed Description

Functions relating to TLS certificate store.

Date
22/02/2010
Author
Omri Barel

Definition in file mh5tls.c.

Macro Definition Documentation

#define MAX_CALLBACKS   (5)

Definition at line 40 of file mh5tls.c.

#define MAX_TLS_CERT_NAME   (22)

Definition at line 39 of file mh5tls.c.

#define PRINT (   x)

Definition at line 47 of file mh5tls.c.

#define TLS_CERT_TIMEOUT   (24 * 60 * 60 * 1000)

Definition at line 38 of file mh5tls.c.

Enumeration Type Documentation

Enumerator
TLS_CERT_STATE_SYNC 
TLS_CERT_STATE_ASYNC 
TLS_CERT_STATE_VALID 
TLS_CERT_STATE_INVALID 

Definition at line 53 of file mh5tls.c.

Function Documentation

void MHEG5AddTlsCertificateCallback ( void(*)(void)  loadCallback)

Add a callback function to be called when pending requests are resolved.

Parameters
loadCallbackCallback function to be called when pending requests are resolved
Returns
Nothing

Definition at line 189 of file mh5tls.c.

void MHEG5ClearTlsCertStore ( void  )

Clear the TLS certificate store.

Parameters
callbackCallback function to be called when pending requests are resolved
Returns
Nothing

Definition at line 86 of file mh5tls.c.

MHEG5TlsCertRequestStatus MHEG5GetNextTlsCertificate ( void  )

Issues a request to load the next TLS certificate from the DSM-CC object carousel.

Returns
Request status

Definition at line 126 of file mh5tls.c.

U32BIT MHEG5GetTlsCertStoreCount ( void  )

Return number of TLS certificates in the TLS certificate store.

Returns
Number of certificates in the TLS certificate store

Definition at line 112 of file mh5tls.c.

void MHEG5InvalidateTlsCertStore ( void  )

Invalidate the TLS certificate store.

Returns
Nothing

Definition at line 95 of file mh5tls.c.