JKRhb / dtls2

A DTLS library for Dart based on OpenSSL.
MIT License
3 stars 0 forks source link

Make it possible to set the OpenSSL security level #100

Closed JKRhb closed 4 months ago

JKRhb commented 4 months ago

This PR adds an additional parameter to the DTLS context classes that makes it possible to override the security level defined by OpenSSL. Lowering the security level allows for using cipher suites that have been deprecated in newer versions of OpenSSL, such as TLS_PSK_WITH_AES_128_CCM_8 which is the mandatory cipher suite for CoAP (see RFC 7252).

The examples are adjusted to make it clear what the new security level parameter is meant to do, while removing this aspect from the example in the README file in order not to overcomplicate things there.

Resolves #98.

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 82.76%. Comparing base (1116e36) to head (bfa0489).

Files Patch % Lines
lib/src/generated/ffi.dart 0.00% 2 Missing :warning:
lib/src/dtls_client.dart 50.00% 1 Missing :warning:
lib/src/dtls_server.dart 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #100 +/- ## ========================================== - Coverage 83.17% 82.76% -0.41% ========================================== Files 11 11 Lines 731 737 +6 ========================================== + Hits 608 610 +2 - Misses 123 127 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.