sociomantic-tsunami / libdrizzle-redux

The next generation of Libdrizzle with a simplified API and support for more features of the protocol
Other
13 stars 12 forks source link

Extend SSL client API #325

Open andreas-bok-sociomantic opened 5 years ago

andreas-bok-sociomantic commented 5 years ago

Add client API functions to get the cipher name and protocol version of the established connection

bokchan commented 5 years ago

Added description to release notes

Rebased on latest v6.x.x

Previous head was 8ceaab7, new HEAD at 59a4a9d.

Diff between heads are: ```diff relnotes/.keep | 0 relnotes/ssl.feature.md | 14 ++++++++++++++ src/ssl.cc | 12 ------------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/relnotes/.keep b/relnotes/.keep new file mode 100644 index 0000000..e69de29 diff --git a/relnotes/ssl.feature.md b/relnotes/ssl.feature.md new file mode 100644 index 0000000..2e63e61 --- /dev/null +++ b/relnotes/ssl.feature.md @@ -0,0 +1,14 @@ +### Extend SSL client API + +Add client API functions to get the cipher name and protocol version of the established connection + +`include/libdrizzle-redux/ssl.h` + +- `drizzle_return_t drizzle_ssl_get_cipher_name(const drizzle_st * con, const char **cipher_name)` + + +- `drizzle_return_t drizzle_ssl_cipher_get_version(const drizzle_st *con, const char **cipher_version)` + + + + diff --git a/src/ssl.cc b/src/ssl.cc index 78ba89a..f5ee44e 100644 --- a/src/ssl.cc +++ b/src/ssl.cc @@ -154,16 +154,4 @@ drizzle_return_t drizzle_ssl_cipher_get_version(drizzle_st *con, drizzle_return_t drizzle_set_ssl(drizzle_st*, const char*, const char*, const char*, const char*, const char*) -drizzle_return_t drizzle_ssl_get_cipher_name(drizzle_st * con, - const char **cipher_name) -{ - return DRIZZLE_RETURN_INVALID_ARGUMENT; -} - -drizzle_return_t drizzle_ssl_cipher_get_version(drizzle_st *con, - const char **cipher_version) -{ - return DRIZZLE_RETURN_INVALID_ARGUMENT; -} - #endif ```