Interface for certificate fingerprint verification.
More...
#include <ksCertUtils.h>
|
virtual bool | setup (WiFiClientSecure *client, const std::string &fingerprint) |
| Performs certificate fingerprint setup (platform dependent).
|
|
virtual bool | verify (WiFiClientSecure *client) const |
| Performs certificate fingerprint validation (platform dependent).
|
|
|
bool | fingerprintToBytes (const std::string &fingerprint, uint8_t *bytes, uint8_t bytesLen) const |
| Converts fingerprint string into array of bytes.
|
|
Interface for certificate fingerprint verification.
Implements platform-dependent certificate fingerprint verification. Used to validate certificate fingerprints without the requirement of certificate-chain verification.
◆ fingerprintToBytes()
bool ksf::ksCertFingerprint::fingerprintToBytes |
( |
const std::string & | fingerprint, |
|
|
uint8_t * | bytes, |
|
|
uint8_t | bytesLen ) const |
|
protected |
Converts fingerprint string into array of bytes.
- Parameters
-
fingerprint | Fingerprint string |
bytes | Output buffer pointer |
bytesLen | Output buffer size |
- Returns
- True if fingerprint seems to be OK, otherwise false.
◆ setup()
virtual bool ksf::ksCertFingerprint::setup |
( |
WiFiClientSecure * | client, |
|
|
const std::string & | fingerprint ) |
|
virtual |
Performs certificate fingerprint setup (platform dependent).
- Parameters
-
client | Pointer of WiFiClientSecure |
fingerprint | Fingerprint string |
- Returns
- True if setup has been successfull, otherwise false.
◆ verify()
virtual bool ksf::ksCertFingerprint::verify |
( |
WiFiClientSecure * | client | ) |
const |
|
virtual |
Performs certificate fingerprint validation (platform dependent).
- Parameters
-
client | Pointer of WiFiClientSecure |
- Returns
- True on verification pass, otherwise false.
The documentation for this class was generated from the following files: