Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use modern GoThemis 0.12 API #373

Merged
merged 3 commits into from
Apr 9, 2020
Merged

Use modern GoThemis 0.12 API #373

merged 3 commits into from
Apr 9, 2020

Conversation

ilammy
Copy link
Contributor

@ilammy ilammy commented Apr 9, 2020

GoThemis 0.12 has deprecated some API names which broke Go conventions (cossacklabs/themis#424). Update the code to use new names.

Note that Secure Cell API is scheduled for an overhaul in the next version of GoThemis 0.13.

Also, since GoThemis 0.12 it is possible to use properly versioned modules. Update go.mod accordingly.

While I've been auditing uses of gothemis package I have noticed that in one place we have been erroneously using it's errors subpackage instead of the standard one.

GoThemis 0.12 has deprecated some API names which broke Go conventions.
Update the code to use new names.

Note thate Secure Cell API is scheduled for an overhaul in the next
version of GoThemis 0.13.
While I've been auditing uses of "gothemis" package I have noticed that
in one place we have been erroneously using it's "errors" subpackage
instead of the standard one.
Since GoThemis 0.12 it is possible to use properly versioned modules.
Update go.mod accordingly.
@ilammy ilammy requested review from Lagovas and vixentael April 9, 2020 13:40
@ilammy ilammy merged commit 61d0b8a into cossacklabs:master Apr 9, 2020
ilammy added a commit that referenced this pull request Apr 9, 2020
(cherry picked from commit 61d0b8a)

* Use modern GoThemis 0.12 API

GoThemis 0.12 has deprecated some API names which broke Go conventions.
Update the code to use new names.

Note that Secure Cell API is scheduled for an overhaul in the next
version of GoThemis 0.13.

* Fix weird import or "errors"

While I've been auditing uses of "gothemis" package I have noticed that
in one place we have been erroneously using it's "errors" subpackage
instead of the standard one.

* Use versioned "gothemis" module

Starting with GoThemis 0.12 it is possible to use properly versioned modules.
Update go.mod accordingly.
@ilammy ilammy deleted the modernize branch April 10, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants