summaryrefslogtreecommitdiff
path: root/src/lib/emile/emile_cipher_gnutls.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-03-17 08:50:44 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:20 +0100
commit065f87bd15c46828c06e0ef1073fddc55ec08db6 (patch)
tree0515d9bb848e8c681fe617b28b42c6b7b23bafa6 /src/lib/emile/emile_cipher_gnutls.c
parent6e59828f74290432166de13731728d547619ac19 (diff)
downloadefl-065f87bd15c46828c06e0ef1073fddc55ec08db6.tar.gz
emile: cleanup comments and internal functions name.
Diffstat (limited to 'src/lib/emile/emile_cipher_gnutls.c')
-rw-r--r--src/lib/emile/emile_cipher_gnutls.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/lib/emile/emile_cipher_gnutls.c b/src/lib/emile/emile_cipher_gnutls.c
index 5cf85e4cc5..eda1d54b09 100644
--- a/src/lib/emile/emile_cipher_gnutls.c
+++ b/src/lib/emile/emile_cipher_gnutls.c
@@ -1,6 +1,6 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
-#endif /* ifdef HAVE_CONFIG_H */
+#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
@@ -113,16 +113,17 @@ _emile_cipher_init(void)
/* Disable warning messages about problems with the secure memory subsystem.
This command should be run right after gcry_check_version. */
if (gcry_control(GCRYCTL_DISABLE_SECMEM_WARN))
- return EINA_FALSE; /* This command is used to allocate a pool of secure memory and thus
- enabling the use of secure memory. It also drops all extra privileges the
- process has (i.e. if it is run as setuid (root)). If the argument nbytes
- is 0, secure memory will be disabled. The minimum amount of secure memory
- allocated is currently 16384 bytes; you may thus use a value of 1 to
- request that default size. */
-
+ return EINA_FALSE;
+
+ /* This command is used to allocate a pool of secure memory and thus
+ enabling the use of secure memory. It also drops all extra privileges the
+ process has (i.e. if it is run as setuid (root)). If the argument nbytes
+ is 0, secure memory will be disabled. The minimum amount of secure memory
+ 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))
- WRN(
- "BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, Cryptographic operation are at risk !");
+ WRN("BIG FAT WARNING: I AM UNABLE TO REQUEST SECMEM, "
+ "Cryptographic operation are at risk !");
}
if (gnutls_global_init())