matrix-org / olm

An implementation of the Double Ratchet cryptographic ratchet in C++/C
https://gitlab.matrix.org/matrix-org/olm
63 stars 9 forks source link

Expose APIs for getting pickle versions #72

Open pksadiq opened 2 years ago

pksadiq commented 2 years ago

The tests in my application fails with latest libolm as libolm updated account pickle version, I was comparing input and output pickle text, but it's failing since https://gitlab.matrix.org/matrix-org/olm/-/commit/b989db011738897e20d143417b08435b9b6955a3.

I'm not sure if the way to test these is to compare the pickle strings, but for the case, it would be nice of libolm provided APIs to get the current used pickle version for account/session (or other objects that are picklable), so that users can compare the versions and act appropriately.

fyi, I'm using libolm C API.

thanks