| 109 | } |
| 110 | |
| 111 | int finalize_encryption_plugin(void *plugin_) |
| 112 | { |
| 113 | st_plugin_int *plugin= static_cast<st_plugin_int *>(plugin_); |
| 114 | int deinit_status= 0; |
| 115 | bool used= plugin_ref_to_int(encryption_manager) == plugin; |
| 116 | |
| 117 | if (used) |
| 118 | { |
| 119 | encryption_handler.encryption_key_get_func= no_get_key; |
| 120 | encryption_handler.encryption_key_get_latest_version_func= no_key; |
| 121 | encryption_handler.encryption_ctx_size_func= zero_size; |
| 122 | } |
| 123 | |
| 124 | if (plugin && plugin->plugin->deinit) |
| 125 | deinit_status= plugin->plugin->deinit(NULL); |
| 126 | |
| 127 | if (used) |
| 128 | { |
| 129 | plugin_unlock(NULL, encryption_manager); |
| 130 | encryption_manager= 0; |
| 131 | } |
| 132 | return deinit_status; |
| 133 | } |
| 134 | |
| 135 | /****************************************************************** |
| 136 | Encryption Scheme service |
no test coverage detected