File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
plugin/file_key_management Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 205
205
206
206
max_no_embedded_configs=" $SSL_LIBRARY --with-plugins=max"
207
207
max_no_qc_configs=" $SSL_LIBRARY --with-plugins=max --without-query-cache"
208
- max_configs=" $SSL_LIBRARY --with-plugins=max --with-embedded-server --with-libevent"
208
+ max_configs=" $SSL_LIBRARY --with-plugins=max --with-embedded-server --with-libevent --without-plugin=plugin_file_key_management "
209
209
all_configs=" $SSL_LIBRARY --with-plugins=max --with-embedded-server --with-innodb_plugin --with-libevent"
210
210
211
211
#
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ sub check_compiler
135
135
$cmakeargs = $cmakeargs ." -DWITH_EXTRA_CHARSETS=" .$charsets ;
136
136
next ;
137
137
}
138
- if ($option =~ / without-plugin=/ )
138
+ if ($option =~ / without-plugin=/ || $option =~ / without-plugin- / )
139
139
{
140
140
$cmakeargs = $cmakeargs ." -DWITHOUT_" .uc (substr ($option ,15))." =1" ;
141
141
next ;
Original file line number Diff line number Diff line change 16
16
17
17
#include " parser.h"
18
18
#include < mysql/plugin_encryption.h>
19
+ #include < mysqld_error.h>
19
20
#include < string.h>
20
21
21
22
static char * filename;
@@ -165,6 +166,13 @@ struct st_mariadb_encryption file_key_management_plugin= {
165
166
166
167
static int file_key_management_plugin_init (void *p)
167
168
{
169
+ if (!filename || !filename[0 ])
170
+ {
171
+ my_printf_error (ER_CANT_INITIALIZE_UDF,
172
+ " file_key_management-filename is not set" , MYF (0 ));
173
+ return 1 ;
174
+ }
175
+
168
176
Parser parser (filename, filekey);
169
177
return parser.parse (&keys);
170
178
}
You can’t perform that action at this time.
0 commit comments