8000 Add setSSLVersion call to SSL object by earlephilhower · Pull Request #7920 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Add setSSLVersion call to SSL object #7920

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into tlslimit
  • Loading branch information
earlephilhower authored Mar 15, 2021
commit 436e1ccea3aa36eb097770f9de3e7da38688eda0
13 changes: 13 additions & 0 deletions libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ class WiFiClientSecureCtx : public WiFiClient {
// BR_TLS10...BR_TLS12
bool setSSLVersion(uint32_t min = BR_TLS10, uint32_t max = BR_TLS12);

// peek buffer API is present
virtual bool hasPeekBufferAPI () const override { return true; }

// return number of byte accessible by peekBuffer()
virtual size_t peekAvailable () override { return WiFiClientSecureCtx::available(); }

// return a pointer to available data buffer (size = peekAvailable())
// semantic forbids any kind of read() before calling peekConsume()
virtual const char* peekBuffer () override;

// consume bytes after use (see peekBuffer)
virtual void peekConsume (size_t consume) override;

protected:
bool _connectSSL(const char *hostName); // Do initial SSL handshake

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0