aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_uri.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-03-04 01:20:43 +0000
committerLRN <lrn1986@gmail.com>2013-03-04 01:20:43 +0000
commit93beeb2fafd68d5173587ad13f7538c4de2d000a (patch)
tree271d68c21e135891f153e5387d6d7567ef3d8f03 /src/fs/fs_uri.c
parentdb04faeea043375d1b64d8b7ec59cb9b6c49a6e3 (diff)
downloadgnunet-93beeb2fafd68d5173587ad13f7538c4de2d000a.tar.gz
gnunet-93beeb2fafd68d5173587ad13f7538c4de2d000a.zip
Add error messages to GNUNET_FS_uri_sks_create
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r--src/fs/fs_uri.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c
index d929eec64..fc388e57b 100644
--- a/src/fs/fs_uri.c
+++ b/src/fs/fs_uri.c
@@ -946,6 +946,16 @@ GNUNET_FS_uri_sks_create (struct GNUNET_FS_Namespace *ns, const char *id,
946 struct GNUNET_FS_Uri *ns_uri; 946 struct GNUNET_FS_Uri *ns_uri;
947 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk; 947 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pk;
948 948
949 if (NULL == id)
950 {
951 *emsg = GNUNET_strdup (_("identifier is NULL!"));
952 return NULL;
953 }
954 else if ('\0' == id[0])
955 {
956 *emsg = GNUNET_strdup (_("identifier has zero length!"));
957 return NULL;
958 }
949 ns_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri)); 959 ns_uri = GNUNET_malloc (sizeof (struct GNUNET_FS_Uri));
950 ns_uri->type = GNUNET_FS_URI_SKS; 960 ns_uri->type = GNUNET_FS_URI_SKS;
951 GNUNET_FS_namespace_get_public_key_hash (ns, &ns_uri->data.sks.ns); 961 GNUNET_FS_namespace_get_public_key_hash (ns, &ns_uri->data.sks.ns);