library intialization error
Hassan Mostafa
hassan.mostafa87 at gmail.com
Wed Jun 12 10:08:01 CEST 2019
Hi,
I am a new to libgcrypt. i had an error when I tried just to initialize the
library. I followed the manual for initialization but when try to check
it's success it give me general error. the code as following
# include <gcrypt.h>
# include <stdio.h>
# include <string.h>
# include <stdlib.h>
# include <gpg-error.h>
# define AM_PATH_LIBGCRYPT
int main ()
{
/* Version check */
if (!gcry_check_version(GCRYPT_VERSION))
{
fputs ("libgcrypt version mismatch\n", stderr);
exit(2);
}
/* intialization success check */
gcry_error_t e1 = gcry_control (GCRYCTL_ANY_INITIALIZATION_P);
fputs (gcry_strerror(e1), stderr);
puts ("\n");
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190612/2967e4fb/attachment.html>
More information about the Gnupg-users
mailing list