diff --git a/.github/workflows/check-arduino.yml b/.github/workflows/check-arduino.yml index adb330f..e818685 100644 --- a/.github/workflows/check-arduino.yml +++ b/.github/workflows/check-arduino.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Arduino Lint - uses: arduino/arduino-lint-action@v1 + uses: arduino/arduino-lint-action@v2 with: compliance: specification library-manager: update diff --git a/library.properties b/library.properties index f2b94b6..f39e1b4 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ArduinoBearSSL -version=1.7.4 +version=1.7.5 author=Arduino maintainer=Arduino sentence=Port of BearSSL to Arduino. diff --git a/src/BearSSLClient.cpp b/src/BearSSLClient.cpp index 0e5b31a..3653d90 100644 --- a/src/BearSSLClient.cpp +++ b/src/BearSSLClient.cpp @@ -203,10 +203,11 @@ void BearSSLClient::flush() void BearSSLClient::stop() { if (_client->connected()) { +#if !defined(ARDUINO_BEARSSL_DISABLE_TLS_CLOSE) if ((br_ssl_engine_current_state(&_sc.eng) & BR_SSL_CLOSED) == 0) { br_sslio_close(&_ioc); } - +#endif _client->stop(); } }