kodi
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
NPT_TlsContext Class Reference
Inheritance diagram for NPT_TlsContext:
Inheritance graph
[legend]
Collaboration diagram for NPT_TlsContext:
Collaboration graph
[legend]

Public Types

enum  { OPTION_VERIFY_LATER = 1, OPTION_REQUIRE_CLIENT_CERTIFICATE = 2, OPTION_ADD_DEFAULT_TRUST_ANCHORS = 4, OPTION_NO_SESSION_CACHE = 8 }
 

Public Member Functions

 NPT_TlsContext (NPT_Flags options=0)
 
NPT_Result LoadKey (NPT_TlsKeyFormat key_format, const unsigned char *key_data, NPT_Size key_data_size, const char *password)
 
NPT_Result SelfSignCertificate (const char *common_name, const char *organization, const char *organizational_name)
 
NPT_Result AddTrustAnchor (const unsigned char *ta_data, NPT_Size ta_data_size)
 Add one trust anchor.
 
NPT_Result AddTrustAnchors (const NPT_TlsTrustAnchorData *anchors, NPT_Cardinal anchor_count=0)
 Add one or more trust anchors, from a list. More...
 

Protected Attributes

NPT_TlsContextImpl * m_Impl
 

Friends

class NPT_TlsSession
 
class NPT_TlsClientSession
 
class NPT_TlsServerSession
 

Member Function Documentation

◆ AddTrustAnchors()

NPT_Result NPT_TlsContext::AddTrustAnchors ( const NPT_TlsTrustAnchorData anchors,
NPT_Cardinal  anchor_count = 0 
)

Add one or more trust anchors, from a list.

Parameters
anchorsArray of trust anchor data
anchor_countNumber of anchors in the array, or 0 if the array is terminated by a 'sentinel' (an anchor data with the field cert_data set to NULL and the field cert_size set to 0).

The documentation for this class was generated from the following file: