MHEG5  15.3.0
source/core/src/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"

Defines

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

Detailed Description

Functions relating to TLS certificate store.

Date:
22/02/2010
Author:
Omri Barel

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
void MHEG5ClearTlsCertStore ( void  )

Clear the TLS certificate store.

Parameters:
callbackCallback function to be called when pending requests are resolved
Returns:
Nothing
MHEG5TlsCertRequestStatus MHEG5GetNextTlsCertificate ( void  )

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

Returns:
Request status
U32BIT MHEG5GetTlsCertStoreCount ( void  )

Return number of TLS certificates in the TLS certificate store.

Returns:
Number of certificates in the TLS certificate store
void MHEG5InvalidateTlsCertStore ( void  )

Invalidate the TLS certificate store.

Returns:
Nothing
 All Data Structures Files Functions Variables Typedefs Defines