14#include <WiFiClientSecure.h>
34 bool fingerprintToBytes(
const std::string& fingerprint, uint8_t* bytes, uint8_t bytesLen)
const;
43 virtual bool setup(WiFiClientSecure* client,
const std::string& fingerprint);
50 virtual bool verify(WiFiClientSecure* client)
const;
57 uint8_t fingerprintBytes[32];
69 bool setup(WiFiClientSecure* client,
const std::string& fingerprint)
override;
76 bool verify(WiFiClientSecure* client)
const override;
79 using ksCertFingerprintHolder = ksCertFingerprintESP32;
83 class ksCertFingerprintESP8266 :
public ksCertFingerprint
92 bool setup(WiFiClientSecure* client,
const std::string& fingerprint)
override;
102 bool verify(WiFiClientSecure* client)
const override;
105 using ksCertFingerprintHolder = ksCertFingerprintESP8266;
Interface for certificate fingerprint verification.
Definition ksCertUtils.h:25
bool fingerprintToBytes(const std::string &fingerprint, uint8_t *bytes, uint8_t bytesLen) const
Converts fingerprint string into array of bytes.
Definition ksCertUtils.cpp:33
virtual bool verify(WiFiClientSecure *client) const
Performs certificate fingerprint validation (platform dependent).
virtual bool setup(WiFiClientSecure *client, const std::string &fingerprint)
Performs certificate fingerprint setup (platform dependent).