|
|
|
@ -5,12 +5,14 @@ void mycryptwrapper_init(){
|
|
|
|
|
/* Version check should be the very first call because it
|
|
|
|
|
makes sure that important subsystems are initialized.
|
|
|
|
|
#define NEED_LIBGCRYPT_VERSION to the minimum required version. */
|
|
|
|
|
if (!gcry_check_version (NEED_LIBGCRYPT_VERSION))
|
|
|
|
|
if (!gcry_check_version (GCRYPT_VERSION))
|
|
|
|
|
{
|
|
|
|
|
fprintf (stderr, "libgcrypt is too old (need %s, have %s)\n",
|
|
|
|
|
NEED_LIBGCRYPT_VERSION, gcry_check_version (NULL));
|
|
|
|
|
GCRYPT_VERSION, gcry_check_version (NULL));
|
|
|
|
|
exit (2);
|
|
|
|
|
}
|
|
|
|
|
// printf("gcrypt version = %s\n",GCRYPT_VERSION);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Disable secure memory. */
|
|
|
|
|
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
|
|
|
|
|