11 #ifndef _SMING_CORE_NETWORK_SSL_SSL_FINGERPRINTS_H_ 12 #define _SMING_CORE_NETWORK_SSL_SSL_FINGERPRINTS_H_ 19 enum SslFingerprintType {
61 bool setSha1(
const uint8_t* cert,
unsigned length)
63 return setValue(certSha1, SHA1_SIZE, cert, length);
67 bool setSha1_P(
const uint8_t* cert,
unsigned length)
69 return setValue(certSha1, SHA1_SIZE, cert, length);
77 bool setSha256(
const uint8_t* cert,
unsigned length)
79 return setValue(pkSha256, SHA256_SIZE, cert, length);
85 return setValue(pkSha256, SHA256_SIZE, cert, length);
102 bool setValue(
const uint8_t*& value,
unsigned requiredLength,
const uint8_t* newValue,
unsigned newLength);
105 #endif // _SMING_CORE_NETWORK_SSL_SSL_FINGERPRINTS_H_ SslFingerprints & operator=(SslFingerprints &source)
Moves values out of source.
bool setSha1_P(const uint8_t *cert, unsigned length)
Make copy of SHA1 certificate from data stored in flash.
Definition: SslFingerprints.h:67
bool setSha256(const uint8_t *cert, unsigned length)
Set the SHA256 fingerprint.
Definition: SslFingerprints.h:77
bool setSha1(const uint8_t *cert, unsigned length)
Set the SHA1 fingerprint.
Definition: SslFingerprints.h:61
bool setSha256_P(const uint8_t *cert, unsigned length)
Make copy of SHA256 certificate from data stored in flash.
Definition: SslFingerprints.h:83
const uint8_t * certSha1
certificate SHA1 fingerprint
Definition: SslFingerprints.h:46
const uint8_t * pkSha256
public key SHA256 fingerprint
Definition: SslFingerprints.h:47
Contains SSL fingerprint data.
Definition: SslFingerprints.h:45