Class to manage an SSL key certificate with optional password.
More...
#include <SslKeyCertPair.h>
|
|
bool | isValid () |
| |
| bool | assign (const uint8_t *newKey, unsigned newKeyLength, const uint8_t *newCertificate, unsigned newCertificateLength, const char *newKeyPassword=nullptr) |
| | Create certificate using provided values. More...
|
| |
| bool | assign (const SslKeyCertPair &keyCert) |
| | Assign another certificate to this structure. More...
|
| |
|
void | free () |
| |
|
const uint8_t * | getKey () |
| |
|
unsigned | getKeyLength () |
| |
|
const char * | getKeyPassword () |
| |
|
const uint8_t * | getCertificate () |
| |
|
unsigned | getCertificateLength () |
| |
Class to manage an SSL key certificate with optional password.
| bool SslKeyCertPair::assign |
( |
const uint8_t * |
newKey, |
|
|
unsigned |
newKeyLength, |
|
|
const uint8_t * |
newCertificate, |
|
|
unsigned |
newCertificateLength, |
|
|
const char * |
newKeyPassword = nullptr |
|
) |
| |
|
inline |
Create certificate using provided values.
- Parameters
-
| newKey | |
| newKeyLength | |
| newCertificate | |
| newCertificateLength | |
| newKeyPassword | |
- Return values
-
| bool | false on memory allocation failure |
- Note
- We take a new copy of the certificate
Assign another certificate to this structure.
- Parameters
-
- Return values
-
| bool | false on memory allocation failure |
- Note
- We take a new copy of the certificate