digikam
NPT_TlsContext Class Reference
#include <NptTls.h>
Inheritance diagram for NPT_TlsContext:

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_TlsContext () override | |
NPT_Result | AddTrustAnchor (const unsigned char *ta_data, NPT_Size ta_data_size) |
NPT_Result | AddTrustAnchors (const NPT_TlsTrustAnchorData *anchors, NPT_Cardinal anchor_count=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) |
![]() | |
virtual | ~Singleton () |
Protected Attributes | |
NPT_TlsContextImpl * | m_Impl |
Detailed Description
Member Enumeration Documentation
anonymous enum |
Constructor & Destructor Documentation
NPT_TlsContext::NPT_TlsContext | ( | NPT_Flags | options = 0 | ) |
|
override |
Member Function Documentation
NPT_Result NPT_TlsContext::AddTrustAnchor | ( | const unsigned char * | ta_data, |
NPT_Size | ta_data_size | ||
) |
Add one trust anchor.
NPT_Result NPT_TlsContext::AddTrustAnchors | ( | const NPT_TlsTrustAnchorData * | anchors, |
NPT_Cardinal | anchor_count = 0 |
||
) |
Add one or more trust anchors, from a list.
- Parameters
-
anchors Array of trust anchor data anchor_count Number 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).
NPT_Result NPT_TlsContext::LoadKey | ( | NPT_TlsKeyFormat | key_format, |
const unsigned char * | key_data, | ||
NPT_Size | key_data_size, | ||
const char * | password | ||
) |
NPT_Result NPT_TlsContext::SelfSignCertificate | ( | const char * | common_name, |
const char * | organization, | ||
const char * | organizational_name | ||
) |
Member Data Documentation
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 03:10:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 03:10:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.