MHEG  17.9.0
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Pages
mh5tls.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2010 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _MH5TLS_H
26 #define _MH5TLS_H
27 
28 
29 /*---includes for this file--------------------------------------------------*/
30 #include "mh5base.h"
31 
32 /*---Constant and macro definitions for public use---------------------------*/
33 
34 /*---Enumerations for public use---------------------------------------------*/
35 
36 /*---Global type defs for public use-----------------------------------------*/
37 typedef enum
38 {
39  MHEG5_TLS_CERT_REQUEST_SUCCESS,
40  MHEG5_TLS_CERT_REQUEST_PENDING,
41  MHEG5_TLS_CERT_REQUEST_FAILURE
42 } MHEG5TlsCertRequestStatus;
43 
44 /*---Global variable declarations for public use-----------------------------*/
45 
46 /*---Global Function prototypes for public use-------------------------------*/
47 
52 void MHEG5ClearTlsCertStore(void);
53 
59 
64 U32BIT MHEG5GetTlsCertStoreCount(void);
65 
71 MHEG5TlsCertRequestStatus MHEG5GetNextTlsCertificate(void);
72 
79 void MHEG5AddTlsCertificateCallback(void (*loadCallback)(void));
80 
81 #endif /*_MH5TLS_H*/
Basis MHEG5 data types.
void MHEG5AddTlsCertificateCallback(void(*loadCallback)(void))
Add a callback function to be called when pending requests are resolved.
Definition: mh5tls.c:189
void MHEG5InvalidateTlsCertStore(void)
Invalidate the TLS certificate store.
Definition: mh5tls.c:95
MHEG5TlsCertRequestStatus MHEG5GetNextTlsCertificate(void)
Issues a request to load the next TLS certificate from the DSM-CC object carousel.
Definition: mh5tls.c:126
void MHEG5ClearTlsCertStore(void)
Clear the TLS certificate store.
Definition: mh5tls.c:86
U32BIT MHEG5GetTlsCertStoreCount(void)
Return number of TLS certificates in the TLS certificate store.
Definition: mh5tls.c:112