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; }
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users