We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5515d commit 0ca807aCopy full SHA for 0ca807a
libmariadb/ma_tls.c
@@ -224,7 +224,7 @@ static my_bool ma_pvio_tls_compare_fp(MARIADB_TLS *ctls,
224
const char *cert_fp,
225
unsigned int cert_fp_len)
226
{
227
- const char fp[EVP_MAX_MD_SIZE];
+ char fp[EVP_MAX_MD_SIZE];
228
unsigned int fp_len= EVP_MAX_MD_SIZE;
229
unsigned int hash_type;
230
@@ -266,11 +266,11 @@ static my_bool ma_pvio_tls_compare_fp(MARIADB_TLS *ctls,
266
}
267
268
269
- if (!ma_tls_get_finger_print(ctls, hash_type, (char *)fp, fp_len))
+ if (!ma_tls_get_finger_print(ctls, hash_type, fp, fp_len))
270
return 1;
271
272
p= (char *)cert_fp;
273
- c = (char *)fp;
+ c = fp;
274
275
for (p = (char*)cert_fp; p < cert_fp + cert_fp_len; c++, p += 2)
276
0 commit comments