MCPcopy Create free account
hub / github.com/MariaDB/server / finalize_encryption_plugin

Function finalize_encryption_plugin

sql/encryption.cc:111–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111int 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

Callers 2

plugin_initFunction · 0.85

Calls 2

plugin_unlockFunction · 0.85
deinitMethod · 0.45

Tested by

no test coverage detected