Skip to content

No encryption enable, though libcrypto is present #1778

@nohkumado

Description

@nohkumado

Checklist

  • I could not find a solution in the documentation, the existing issues or discussions.
  • I already asked for help in the chat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions