* eet: Fix initialization for system that don't support SECMEN.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Jul 2009 09:53:44 +0000 (09:53 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 23 Jul 2009 09:53:44 +0000 (09:53 +0000)
Note that I don't like this solution, but I didn't see any better one.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eet@41481 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eet_lib.c

index 1fefbe1..a6b5d99 100644 (file)
@@ -746,7 +746,7 @@ eet_init(void)
           allocated is currently 16384 bytes; you may thus use a value of 1 to
           request that default size. */
        if (gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0))
-         return --eet_initcount;
+         fprintf(stderr, "BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, Cryptographic operation are at risk !");
      }
    if (gnutls_global_init())
      return --eet_initcount;