aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-19 19:18:17 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-19 19:18:17 +0000
commit165d153298d75b64a6a426b534a435945690b436 (patch)
tree3c95f417ebda73a68b347ec5c8aa3e18d2262593 /src/util/common_logging.c
parent6afb005da9165db3cd814864956f08e23828de63 (diff)
downloadgnunet-165d153298d75b64a6a426b534a435945690b436.tar.gz
gnunet-165d153298d75b64a6a426b534a435945690b436.zip
-remove ShortHashCode from API, deprecate SList
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 8f1c8e876..5929fc94a 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -1038,43 +1038,6 @@ GNUNET_error_type_to_string (enum GNUNET_ErrorType kind)
1038 1038
1039 1039
1040/** 1040/**
1041 * Convert a short hash to a string (for printing debug messages).
1042 * This is one of the very few calls in the entire API that is
1043 * NOT reentrant!
1044 *
1045 * @param hc the short hash code
1046 * @return string form; will be overwritten by next call to GNUNET_h2s.
1047 */
1048const char *
1049GNUNET_short_h2s (const struct GNUNET_CRYPTO_ShortHashCode * hc)
1050{
1051 static struct GNUNET_CRYPTO_ShortHashAsciiEncoded ret;
1052
1053 GNUNET_CRYPTO_short_hash_to_enc (hc, &ret);
1054 ret.short_encoding[8] = '\0';
1055 return (const char *) ret.short_encoding;
1056}
1057
1058
1059/**
1060 * Convert a short hash to a string (for printing debug messages).
1061 * This is one of the very few calls in the entire API that is
1062 * NOT reentrant!
1063 *
1064 * @param hc the short hash code
1065 * @return string form; will be overwritten by next call to GNUNET_h2s_full.
1066 */
1067const char *
1068GNUNET_short_h2s_full (const struct GNUNET_CRYPTO_ShortHashCode * hc)
1069{
1070 static struct GNUNET_CRYPTO_ShortHashAsciiEncoded ret;
1071
1072 GNUNET_CRYPTO_short_hash_to_enc (hc, &ret);
1073 ret.short_encoding[sizeof (ret) - 1] = '\0';
1074 return (const char *) ret.short_encoding;
1075}
1076
1077/**
1078 * Convert a hash to a string (for printing debug messages). 1041 * Convert a hash to a string (for printing debug messages).
1079 * This is one of the very few calls in the entire API that is 1042 * This is one of the very few calls in the entire API that is
1080 * NOT reentrant! 1043 * NOT reentrant!