Merge pull request #780 from wjt/initialize-libgcry

gnutls_auth: initialize libgcrypt
This commit is contained in:
Takeshi Nakatani 2018-06-24 12:48:08 +09:00 committed by GitHub
commit 3e4002df0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,11 @@ bool s3fs_init_global_ssl(void)
if(GNUTLS_E_SUCCESS != gnutls_global_init()){
return false;
}
#ifndef USE_GNUTLS_NETTLE
if(NULL == gcry_check_version(NULL)){
return false;
}
#endif // USE_GNUTLS_NETTLE
return true;
}