asserts
[oweals/gnunet.git] / src / util / crypto_rsa.c
index f3bb04cd25c7cbd1ff9a1f4f925274588499ee83..2c4daee1870bd690b5a5ceb3a7b8b716d36f7cad 100644 (file)
@@ -578,8 +578,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename)
                                   GNUNET_DISK_OPEN_CREATE |
                                   GNUNET_DISK_OPEN_FAILIFEXISTS,
                                   GNUNET_DISK_PERM_USER_READ |
-                                  GNUNET_DISK_PERM_USER_WRITE |
-                                  GNUNET_DISK_PERM_GROUP_READ);
+                                  GNUNET_DISK_PERM_USER_WRITE);
       if (NULL == fd)
         {
           if (errno == EEXIST)
@@ -587,7 +586,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename)
              if (GNUNET_YES != GNUNET_DISK_file_test (filename))
                {
                  /* must exist but not be accessible, fail for good! */
-                 if (0 != ACCESS (filenae, R_OK))                  
+                 if (0 != ACCESS (filename, R_OK))                 
                    GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR,
                                              "access", filename);
                  else
@@ -660,7 +659,7 @@ GNUNET_CRYPTO_rsa_key_create_from_file (const char *filename)
                                  sizeof (struct RsaPrivateKeyBinaryEncoded),
                                  GNUNET_NO))
         {
-          if (0 == ++cnt % 10)
+          if (0 == ++cnt % 60)
             {
               ec = errno;
               GNUNET_log (GNUNET_ERROR_TYPE_ERROR,