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

Link libthemis_jni.so dynamically #552

Merged
merged 3 commits into from
Nov 8, 2019
Merged

Commits on Nov 4, 2019

  1. Link libthemis_jni.so dynamically

    Do not embed Themis, Soter, and cryptographic backend (if present)
    into libthemis_jni shared object. Instead, link it dynamically
    against Themis like a proper library.
    
    It has been a nice experiment to provide self-contained library for
    Java. However, we are going to distribute the library as a proper system
    package and for that we will need to have it properly linked against its
    dependencies. Themis Core will be installed by the package manager so
    all dependencies are going to be satisfied.
    ilammy committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    b29348a View commit details
    Browse the repository at this point in the history
  2. Export private functions

    These are currently used by Themin JNI wrapper in order to operate
    secure_session_load() correctly. Strictly speaking, we should not
    be using these functions, but currently there is no way to allocate
    Secure Sesssion instance suitable for secure_session_load() without
    using private header <themis/secure_sesssion_t.h>. These functions
    are exported from the shared library, but we make no commitment to
    keeping them exported. The should be hidden back once
    secure_session_load() gets a better API.
    ilammy committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    1d131f2 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2019

  1. Introduce THEMIS_PRIVATE_API

    On the other hand, why not? It's not that hard to implement and
    this *is* a wart in the API. Let's mark these private functions
    as such so that there is no confusion.
    ilammy committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    ac871a3 View commit details
    Browse the repository at this point in the history