summaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-09-20 01:15:53 +0200
committerJulius Bünger <buenger@mytum.de>2018-09-20 01:15:53 +0200
commit67f690896f5bbbcd40efaec79a7c36d2e339990b (patch)
tree3043d6ad4d5a422b17944b199faaf118cc1fdaf1 /src/rps/rps-test_util.c
parent69f439525cabfd0b65d5875e49d306588587cb23 (diff)
Start changing architecture of rps service/client
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index ef39638bf..271c96648 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -379,23 +379,6 @@ auth_key_to_string (struct GNUNET_CRYPTO_AuthKey auth_key)
}
-struct GNUNET_CRYPTO_AuthKey
-string_to_auth_key (const char *str)
-{
- struct GNUNET_CRYPTO_AuthKey auth_key;
-
- if (GNUNET_OK !=
- GNUNET_STRINGS_string_to_data (str,
- strlen (str),
- &auth_key.key,
- sizeof (struct GNUNET_CRYPTO_AuthKey)))
- {
- LOG (GNUNET_ERROR_TYPE_WARNING, "Failed to convert string to data\n");
- }
-
- return auth_key;
-}
-
char *
create_file (const char *name)
@@ -435,6 +418,25 @@ create_file (const char *name)
#endif /* TO_FILE */
+
+struct GNUNET_CRYPTO_AuthKey
+string_to_auth_key (const char *str)
+{
+ struct GNUNET_CRYPTO_AuthKey auth_key;
+
+ if (GNUNET_OK !=
+ GNUNET_STRINGS_string_to_data (str,
+ strlen (str),
+ &auth_key.key,
+ sizeof (struct GNUNET_CRYPTO_AuthKey)))
+ {
+ LOG (GNUNET_ERROR_TYPE_WARNING, "Failed to convert string to data\n");
+ }
+
+ return auth_key;
+}
+
+
/**
* @brief Try to ensure that `/tmp/rps` exists.
*