Contains SSL fingerprint data.
More...
#include <SslFingerprints.h>
Contains SSL fingerprint data.
- Note
- Lifetime as follows:
- Constructed by application, using appropriate setXXX method;
- Passed into HttpRequest by application, using pinCertificate method - request is then queued;
- Passed into HttpClientConnection (TcpClient descendant) by HttpClient, using pinCertificate method
- When certificate validated, memory is released
Moves values out of source.
Make copy of values from source.
bool SslFingerprints::setSha1 |
( |
const uint8_t * |
cert, |
|
|
unsigned |
length |
|
) |
| |
|
inline |
Set the SHA1 fingerprint.
- Parameters
-
cert | data to copy |
length | for checking |
- Return values
-
bool | false on length check or allocation failure |
bool SslFingerprints::setSha1_P |
( |
const uint8_t * |
cert, |
|
|
unsigned |
length |
|
) |
| |
|
inline |
Make copy of SHA1 certificate from data stored in flash.
bool SslFingerprints::setSha256 |
( |
const uint8_t * |
cert, |
|
|
unsigned |
length |
|
) |
| |
|
inline |
Set the SHA256 fingerprint.
- Parameters
-
cert | data to copy |
length | for checking |
- Return values
-
bool | false on length check or allocation failure |
bool SslFingerprints::setSha256_P |
( |
const uint8_t * |
cert, |
|
|
unsigned |
length |
|
) |
| |
|
inline |
Make copy of SHA256 certificate from data stored in flash.
const uint8_t* SslFingerprints::certSha1 = nullptr |
certificate SHA1 fingerprint
const uint8_t* SslFingerprints::pkSha256 = nullptr |
public key SHA256 fingerprint