diff options
Diffstat (limited to 'libmariadb/include/ma_tls.h')
-rw-r--r-- | libmariadb/include/ma_tls.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmariadb/include/ma_tls.h b/libmariadb/include/ma_tls.h index ec8bc239..6601f896 100644 --- a/libmariadb/include/ma_tls.h +++ b/libmariadb/include/ma_tls.h @@ -1,6 +1,8 @@ #ifndef _ma_tls_h_ #define _ma_tls_h_ +#include <ma_hash.h> + enum enum_pvio_tls_type { SSL_TYPE_DEFAULT=0, #ifdef _WIN32 @@ -25,6 +27,7 @@ typedef struct st_ma_pvio_tls { void *data; MARIADB_PVIO *pvio; void *ssl; + MARIADB_X509_INFO cert_info; } MARIADB_TLS; /* Function prototypes */ @@ -128,12 +131,14 @@ const char *ma_tls_get_cipher(MARIADB_TLS *ssl); returns SHA1 finger print of server certificate Parameter: MARIADB_TLS MariaDB SSL container + hash_type hash_type as defined in ma_hash.h fp buffer for fingerprint fp_len buffer length + Returns: actual size of finger print */ -unsigned int ma_tls_get_finger_print(MARIADB_TLS *ctls, char *fp, unsigned int fp_len); +unsigned int ma_tls_get_finger_print(MARIADB_TLS *ctls, uint hash_type, char *fp, unsigned int fp_len); /* ma_tls_get_protocol_version returns protocol version number in use |