diff --git a/classksf_1_1ks_cert_fingerprint.html b/classksf_1_1ks_cert_fingerprint.html index 4329583..b5488f0 100644 --- a/classksf_1_1ks_cert_fingerprint.html +++ b/classksf_1_1ks_cert_fingerprint.html @@ -239,8 +239,8 @@

ksCertUtils.h -
  • src/ksf/ksCertUtils.cpp
  • +
  • src/ksf/misc/ksCertUtils.h
  • +
  • src/ksf/misc/ksCertUtils.cpp
  • diff --git a/dir_097997aff5cb8562b1e47177b57422b2.html b/dir_097997aff5cb8562b1e47177b57422b2.html index 6474d60..db38099 100644 --- a/dir_097997aff5cb8562b1e47177b57422b2.html +++ b/dir_097997aff5cb8562b1e47177b57422b2.html @@ -94,6 +94,8 @@ + +

    Files

     ksCertUtils.h
     
     ksWSServer.h
     
    diff --git a/dir_f2e6775e4d3b3dda20dfc966304f1958.html b/dir_f2e6775e4d3b3dda20dfc966304f1958.html index 65feb97..35dd23a 100644 --- a/dir_f2e6775e4d3b3dda20dfc966304f1958.html +++ b/dir_f2e6775e4d3b3dda20dfc966304f1958.html @@ -109,8 +109,6 @@    ksAppRotator.h   - ksCertUtils.h ksComponent.h    ksConfig.h diff --git a/doxygen_crawl.html b/doxygen_crawl.html index ee57bb7..926962d 100644 --- a/doxygen_crawl.html +++ b/doxygen_crawl.html @@ -22,12 +22,12 @@ - + diff --git a/files.html b/files.html index 562b475..70677bb 100644 --- a/files.html +++ b/files.html @@ -106,17 +106,17 @@  ksEventHandle.h  ksEventInterface.h   misc - ksWSServer.h -  res - otaWebpage.h - ksApplication.h - ksAppRotator.h - ksCertUtils.h - ksComponent.h - ksConfig.h - ksConstants.h - ksRtti.h - ksSimpleTimer.h + ksCertUtils.h + ksWSServer.h +  res + otaWebpage.h + ksApplication.h + ksAppRotator.h + ksComponent.h + ksConfig.h + ksConstants.h + ksRtti.h + ksSimpleTimer.h  ksIotFrameworkLib.h diff --git a/ks_cert_utils_8h_source.html b/ks_cert_utils_8h_source.html index da55af2..21e6058 100644 --- a/ks_cert_utils_8h_source.html +++ b/ks_cert_utils_8h_source.html @@ -5,7 +5,7 @@ -Doxygen with github: src/ksf/ksCertUtils.h Source File +Doxygen with github: src/ksf/misc/ksCertUtils.h Source File @@ -83,7 +83,7 @@
    @@ -102,54 +102,53 @@
    9
    10#pragma once
    11
    -
    12#include <WiFiClientSecure.h>
    -
    13
    -
    14#include <string>
    -
    15#include <stdint.h>
    -
    16
    -
    17namespace ksf
    -
    18{
    -
    - -
    26 {
    -
    27 protected:
    -
    35 bool fingerprintToBytes(const std::string& fingerprint, uint8_t* bytes, uint8_t bytesLen) const;
    -
    36
    -
    37 public:
    -
    44 virtual bool setup(WiFiClientSecure* client, const std::string& fingerprint);
    -
    45
    -
    51 virtual bool verify(WiFiClientSecure* client) const;
    -
    52 };
    +
    12#include <string>
    +
    13#include <stdint.h>
    +
    14#include <WiFiClientSecure.h>
    +
    15
    +
    16namespace ksf
    +
    17{
    +
    + +
    25 {
    +
    26 protected:
    +
    34 bool fingerprintToBytes(const std::string& fingerprint, uint8_t* bytes, uint8_t bytesLen) const;
    +
    35
    +
    36 public:
    +
    43 virtual bool setup(WiFiClientSecure* client, const std::string& fingerprint);
    +
    44
    +
    50 virtual bool verify(WiFiClientSecure* client) const;
    +
    51 };
    -
    53
    -
    54#ifdef ESP32
    -
    55 class ksCertFingerprintESP32 : public ksCertFingerprint
    -
    56 {
    -
    57 private:
    -
    58 uint8_t fingerprintBytes[32];
    -
    59
    -
    60 public:
    -
    70 bool setup(WiFiClientSecure* client, const std::string& fingerprint) override;
    -
    71
    -
    77 bool verify(WiFiClientSecure* client) const override;
    -
    78 };
    -
    79
    -
    80 using ksCertFingerprintHolder = ksCertFingerprintESP32;
    -
    81#endif
    -
    82
    -
    83#ifdef ESP8266
    -
    84 class ksCertFingerprintESP8266 : public ksCertFingerprint
    -
    85 {
    -
    86 public:
    -
    93 bool setup(WiFiClientSecure* client, const std::string& fingerprint) override;
    -
    94
    -
    103 bool verify(WiFiClientSecure* client) const override;
    -
    104 };
    -
    105
    -
    106 using ksCertFingerprintHolder = ksCertFingerprintESP8266;
    -
    107#endif
    -
    108}
    -
    Interface for certificate fingerprint verification.
    Definition ksCertUtils.h:26
    +
    52
    +
    53#ifdef ESP32
    +
    54 class ksCertFingerprintESP32 : public ksCertFingerprint
    +
    55 {
    +
    56 private:
    +
    57 uint8_t fingerprintBytes[32];
    +
    58
    +
    59 public:
    +
    69 bool setup(WiFiClientSecure* client, const std::string& fingerprint) override;
    +
    70
    +
    76 bool verify(WiFiClientSecure* client) const override;
    +
    77 };
    +
    78
    +
    79 using ksCertFingerprintHolder = ksCertFingerprintESP32;
    +
    80#endif
    +
    81
    +
    82#ifdef ESP8266
    +
    83 class ksCertFingerprintESP8266 : public ksCertFingerprint
    +
    84 {
    +
    85 public:
    +
    92 bool setup(WiFiClientSecure* client, const std::string& fingerprint) override;
    +
    93
    +
    102 bool verify(WiFiClientSecure* client) const override;
    +
    103 };
    +
    104
    +
    105 using ksCertFingerprintHolder = ksCertFingerprintESP8266;
    +
    106#endif
    +
    107}
    +
    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).