Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7450

file_example_key_management_plugin and example_key_management_plugin don't work with yassl

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.3
    • 10.1.4
    • Encryption
    • None

    Description

      For some strange reason, when compiling with OpenSSL, more internal encryption functions are exported. These plugins use them directly. So, when compiled with YaSSL these symbols aren't available and plugins don't load.

      We need to
      1. consistently export or hide (preferrably) these symbols both with OpenSSL and YaSSL
      2. export the encryption as a service for key management plugins to use or change plugins not to use it.

      When fixed a workaround from plugins' CMakelIsts.txt files should be removed

      Attachments

        Issue Links

          Activity

            I've fixed symbol visibility, but plugins still fail. jplindst, could you please take a look at that?

            serg Sergei Golubchik added a comment - I've fixed symbol visibility, but plugins still fail. jplindst , could you please take a look at that?

            After

            commit 5e6905bb7f1c80e5cc368bb917f6e15afc73a269
            Author: Jan Lindström <jan.lindstrom@mariadb.com>
            Date:   Tue Mar 17 10:59:25 2015 +0200
             
                Replace static usage of AES_CTR with current encryption algorithm.

            Tests seem to work on openSSL with ctr, cbc and ecb modes and on yassl with cbc and ecb modes. Removed static ctr method usage from example_key_management_plugin.

            I do not follow point 2. What should be done for that ?

            jplindst Jan Lindström (Inactive) added a comment - After commit 5e6905bb7f1c80e5cc368bb917f6e15afc73a269 Author: Jan Lindström <jan.lindstrom@mariadb.com> Date: Tue Mar 17 10:59:25 2015 +0200   Replace static usage of AES_CTR with current encryption algorithm. Tests seem to work on openSSL with ctr, cbc and ecb modes and on yassl with cbc and ecb modes. Removed static ctr method usage from example_key_management_plugin. I do not follow point 2. What should be done for that ?

            Never mind, I'll do it later, it's only a cleanup.
            This bug is only about "file_example_key_management_plugin and example_key_management_plugin don't work with yassl", so as long as they do it can be closed.

            serg Sergei Golubchik added a comment - Never mind, I'll do it later, it's only a cleanup. This bug is only about "file_example_key_management_plugin and example_key_management_plugin don't work with yassl", so as long as they do it can be closed.

            People

              jplindst Jan Lindström (Inactive)
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.