JKRhb / dtls2

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

Since 0.13.3 client cannot connect to server with returned code 2 (SSL3_AL_FATAL) #65

Closed Ifilehk closed 1 year ago

Ifilehk commented 1 year ago

This is related to the code 2 SS3_AL_FAILURE.

I/flutter (15946): void _connectToPeer() { --> before --> _handleError(ret, _connectCompleter.completeError);
I/flutter (15946): start --> void _handleError(int ret, void Function(Exception) errorHandler) {
I/flutter (15946): _handleError(int ret, void Function(Exception) errorHandler) { --> after --> final code = _libSsl.SSL_get_error(_ssl, ret); code=2

I realized that downgrading the server to 0.13.2 works. So there is a bug on the server side in 0.13.3.

In both cases client was on 0.13.3. So client is fine (with my fix proposal)

Ifilehk commented 1 year ago

I can confirm. problem solved.

JKRhb commented 1 year ago

Awesome! :) Just released version 0.13.4 with the fixes, let me know if you notice anything else :)

Ifilehk commented 1 year ago

I will update to 0.13.4 and let you know ...

Ifilehk commented 1 year ago

Hallo Jan. You can close this issue because fixed! Thank you for your support!