1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Vladislav Vaintroub
1b3cf6b441 CONC-669 Cache bcrypt algorithm providers in win_crypt.c
CryptOpenAlgorithmProvider() documentation states:
"We recommend that you cache any algorithm provider handles that you will
use more than once, rather than opening and closing the algorithm providers
over and over."

This patch implements algorithm handle caching,
and also simplifies how hashes are handled in win_crypt.c

- MA_HASH_CTX* is now just BCrypt hash handle.
- We no longer allocate or free memory any memory outselves.

There are small change in the ma_hash API:
ma_hash_new() lost the second parameter, only used on Windows previously
2023-09-21 18:06:01 +02:00
Georg Richter
4e3905c20a Fix for bcrypt hash functions:
Using a global crypt provider is not thread safe, so we need to load
provider via BCryptOpenProvider in ma_hash_new().
2023-08-23 16:18:50 +02:00
Vladislav Vaintroub
ce011210d1 small cleanups
remove MSVC specific #pragma comment(lib)
TARGET_LINK_LIBRARIES is good enough
2020-05-27 20:32:56 +02:00
Sergei Golubchik
b6c3895eec Merge tag 'v3.0.8-release' into 3.1 2019-02-04 16:05:19 +01:00
Vladislav Vaintroub
5baea22478 Fix warnings on Windows 2018-12-07 17:39:34 +01:00
Georg Richter
a4b107030d Added missing sha512 provider 2018-12-06 11:35:19 +01:00
Georg Richter
b87845b18d CONC-366: Implementation of ed25519 authentication plugin 2018-12-02 16:58:30 +01:00
Georg Richter
005195f9cb CONC-312: Implementation for caching_sha2_password plugin 2018-12-01 08:56:24 +01:00