Skip to content

Commit

Permalink
Fix compiler warning when using GnuTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Mar 11, 2019
1 parent 2d5021d commit 1285dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/auth/caching_sha2_pw.c
Expand Up @@ -194,6 +194,7 @@ static LPBYTE ma_load_pem(const char *buffer, DWORD *buffer_len)
}
#endif

#ifndef HAVE_GNUTLS
static char *load_pub_key_file(const char *filename, int *pub_key_size)
{
FILE *fp= NULL;
Expand Down Expand Up @@ -230,7 +231,7 @@ static char *load_pub_key_file(const char *filename, int *pub_key_size)
}
return buffer;
}

#endif

static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
{
Expand Down

0 comments on commit 1285dc7

Please sign in to comment.