Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
94841ba6
Commit
94841ba6
authored
Apr 29, 2022
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hashicorp plugin: typo fixed
parent
8ae5408c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
plugin/hashicorp_key_management/hashicorp_key_management_plugin.cc
...shicorp_key_management/hashicorp_key_management_plugin.cc
+10
-10
No files found.
plugin/hashicorp_key_management/hashicorp_key_management_plugin.cc
View file @
94841ba6
...
...
@@ -39,7 +39,7 @@
#define HASHICORP_HAVE_EXCEPTIONS 0
#endif
#define HASICORP_DEBUG_LOGGING 0
#define HAS
H
ICORP_DEBUG_LOGGING 0
#define PLUGIN_ERROR_HEADER "hashicorp: "
...
...
@@ -191,7 +191,7 @@ void HCData::cache_add (const KEY_INFO& info, bool update_version)
ver_info
.
timestamp
=
info
.
timestamp
;
}
key_info_cache
[
KEY_ID_AND_VERSION
(
key_id
,
key_version
)]
=
info
;
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"cache_add: key_id = %u, key_version = %u, "
"timestamp = %u, update_version = %u, new version = %u"
,
...
...
@@ -234,7 +234,7 @@ unsigned int
mtx
.
unlock
();
return
ENCRYPTION_KEY_VERSION_INVALID
;
}
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"cache_get: key_id = %u, key_version = %u, "
"last version = %u, version timestamp = %u, "
...
...
@@ -270,7 +270,7 @@ unsigned int
return
ENCRYPTION_KEY_VERSION_INVALID
;
}
mtx
.
unlock
();
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"cache_get: key_id = %u, key_version = %u, "
"effective version = %u, key data timestamp = %u, "
...
...
@@ -354,7 +354,7 @@ unsigned int HCData::cache_check_version (unsigned int key_id)
#endif
{
mtx
.
unlock
();
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"cache_check_version: key_id = %u (not in the cache)"
,
ME_ERROR_LOG_ONLY
|
ME_NOTE
,
...
...
@@ -364,7 +364,7 @@ unsigned int HCData::cache_check_version (unsigned int key_id)
}
mtx
.
unlock
();
clock_t
current_time
=
clock
();
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"cache_check_version: key_id = %u, "
"last version = %u, version timestamp = %u, "
...
...
@@ -788,7 +788,7 @@ static int get_key_data (const char *js, int js_len,
unsigned
int
HCData
::
get_latest_version
(
unsigned
int
key_id
)
{
unsigned
int
version
;
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"get_latest_version: key_id = %u"
,
ME_ERROR_LOG_ONLY
|
ME_NOTE
,
key_id
);
...
...
@@ -867,7 +867,7 @@ unsigned int HCData::get_key_from_vault (unsigned int key_id,
unsigned
char
*
dstbuf
,
unsigned
int
*
buflen
)
{
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"get_latest_version: key_id = %u, key_version = %u"
,
ME_ERROR_LOG_ONLY
|
ME_NOTE
,
key_id
,
key_version
);
...
...
@@ -1085,7 +1085,7 @@ int HCData::init ()
}
}
}
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"plugin_init: token = %s, token_len = %d"
,
ME_ERROR_LOG_ONLY
|
ME_NOTE
,
token
,
(
int
)
token_len
);
...
...
@@ -1279,7 +1279,7 @@ int HCData::init ()
memcpy
(
mount_url
+
prefix_len
,
"sys/mounts/"
,
11
);
memcpy
(
mount_url
+
prefix_len
+
11
,
vault_url_data
+
prefix_len
,
suffix_len
);
memcpy
(
mount_url
+
prefix_len
+
11
+
suffix_len
,
"/tune"
,
6
);
#if HASICORP_DEBUG_LOGGING
#if HAS
H
ICORP_DEBUG_LOGGING
my_printf_error
(
ER_UNKNOWN_ERROR
,
PLUGIN_ERROR_HEADER
"storage mount url: [%s]"
,
ME_ERROR_LOG_ONLY
|
ME_NOTE
,
mount_url
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment