1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-09-11 08:30:59 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Sergei Golubchik
f6e99af056 Revert "self-signed certificate verification", it's 3.4 feature
This reverts 395641549ac7..536d9e2b9e5b, in particular:

8dffd56936 MDEV-31857 enable MYSQL_OPT_SSL_VERIFY_SERVER_CERT by default
a99570c118 MDEV-31855 SSL cert validation protocol extension
9aa15e72a7 TLS fingerprint

and related commits
2024-02-19 11:16:26 +01:00
Georg Richter
9aa15e72a7 TLS fingerprint
Beside SHA1 fingerprint hash, Connector/C now also supports
SHA224 (OpenSSL and GnuTLS only), SHA256, SHA384 and SHA512
fingerprint hashes.
2024-02-04 22:17:22 +01:00
Vladislav Vaintroub
463a50e973 Merge remote-tracking branch 'origin/3.1' into 3.3
# Conflicts:
#	include/ma_crypt.h
#	libmariadb/mariadb_lib.c
2023-09-21 23:45:35 +02:00
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
a3c9f6545d Merge pull request #180 from grooverdan/3.2-strict-openssl-type
openssl: be strict on MA_HASH_CTX type
2021-09-12 13:57:51 +02:00
Daniel Black
03b25fb087 crypt: WIN32 -> HAVE_WINCRYPT
Apply HAVE_WINCRYPT as the defination for using the wincrypt/bcrypt
APIs for the authentication plugins caching_sha256_password,
ed25519 and sha256_password in the same way as the HAVE_OPENSSL and
HAVE_GNUTLS are applied.
2021-08-13 11:38:28 +10:00
Daniel Black
9b33c72c7e openssl: be strict on MA_HASH_CTX type 2021-08-13 11:03:42 +10:00
Vladislav Vaintroub
2d5a51143d Windows - fix typo, that makes clang-cl compilation fail.
It is _WIN32 that is always defined on Windows, not anything else.
2021-05-08 20:23:50 +02:00
Georg Richter
820faff627 codespell fixes, removed MSDOS preprocessor macros 2020-11-26 09:07:17 +01:00
Georg Richter
11a2d035dd CONC-431: Use windows crypto libraries on Windows platforms
By default Windows builds now use the native system crypto libraries used
by ed25519, caching_sha2_password and sha256_password authentication plugins.
Even if configuration option WITH_SSL=OFF was specified (or no TLS library was found) authentication plugins using crypto will be available.
2019-08-01 14:02:04 +02:00
Georg Richter
005195f9cb CONC-312: Implementation for caching_sha2_password plugin 2018-12-01 08:56:24 +01:00