famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
53 stars 30 forks source link

No encryption enable, though libcrypto is present #1778

Open nohkumado opened 4 months ago

nohkumado commented 4 months ago

Checklist

In which Project did the bug appear?

Other

If you selected \"Other\" as Project, please enter in which project the bug occurred.

my own

On which platform did the bug appear?

Android

SDK Version

0.22.7

Describe the problem caused by this bug

Hello, if someone could point me in the direction of the chat, couldn't find any reference to it? platform is linux, and pure dart, not available in the form...

Problem is, that i want to connect through direct messages, and those are encrypted, and the encryption doesn't activate on the client

Steps To Reproduce

From the code i extracted or got pointed to the following starters

final libcrypto =DynamicLibrary.open('libcrypto.so.3');
    print("crypto lib: $libcrypto");
    await olm.init();
    print("inst olm ${olm.get_library_version()}");

    client = Client('IpxBot');

    //client.encryption = Encryption(client: client);
    print("++++++++ encryption enabled: ${client.encryption}");

which gives as output:

crypto lib: DynamicLibrary: handle=0x7b233c0015d0
inst olm [3, 2, 13]
client: Instance of 'Client'
++++++++ encryption enabled: null

so from this i see that libcrypto is ok, olm is ok, but the client still reports no encryption? if i initialise, as in the comment, the client.encryption, the rest gives me an ok, but encyption still doesn't work on the channel, communication to the user is garbled...

so what did i forget or not do?

thanks in advance Bruno

Screenshots or Logs

No response

Security related

No response

krille-chan commented 3 months ago

This is a support question, not a bug. Removing the label and the github project

nohkumado commented 3 months ago

and where do i direct support questions please?