aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-service-namestore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-service-namestore.c')
-rw-r--r--src/namestore/gnunet-service-namestore.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index 619119725..3e29ba389 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -1254,7 +1254,7 @@ handle_record_remove_it (void *cls,
1254 if (0 == rd_count) 1254 if (0 == rd_count)
1255 { 1255 {
1256 /* Could not find record to remove */ 1256 /* Could not find record to remove */
1257 rrc->op_res = 1; 1257 rrc->op_res = RECORD_REMOVE_RESULT_NO_RECORDS;
1258 return; 1258 return;
1259 } 1259 }
1260 1260
@@ -1281,7 +1281,7 @@ handle_record_remove_it (void *cls,
1281 if (GNUNET_SYSERR == found) 1281 if (GNUNET_SYSERR == found)
1282 { 1282 {
1283 /* Could not find record to remove */ 1283 /* Could not find record to remove */
1284 rrc->op_res = 2; 1284 rrc->op_res = RECORD_REMOVE_RESULT_RECORD_NOT_FOUND;
1285 return; 1285 return;
1286 } 1286 }
1287 1287
@@ -1301,10 +1301,10 @@ handle_record_remove_it (void *cls,
1301 name)) 1301 name))
1302 { 1302 {
1303 /* Could not remove records from database */ 1303 /* Could not remove records from database */
1304 rrc->op_res = 3; 1304 rrc->op_res = RECORD_REMOVE_RESULT_FAILED_TO_SIGN; /* ??? */
1305 return; 1305 return;
1306 } 1306 }
1307 rrc->op_res = 0; 1307 rrc->op_res = RECORD_REMOVE_RESULT_SUCCESS;
1308 return; 1308 return;
1309 } 1309 }
1310 1310
@@ -1331,10 +1331,10 @@ handle_record_remove_it (void *cls,
1331 &dummy_signature)) 1331 &dummy_signature))
1332 { 1332 {
1333 /* Could not put records into database */ 1333 /* Could not put records into database */
1334 rrc->op_res = 4; 1334 rrc->op_res = RECORD_REMOVE_RESULT_FAILED_TO_PUT_UPDATE;
1335 return; 1335 return;
1336 } 1336 }
1337 rrc->op_res = 0; 1337 rrc->op_res = RECORD_REMOVE_RESULT_SUCCESS;
1338} 1338}
1339 1339
1340 1340
@@ -1429,7 +1429,7 @@ handle_record_remove (void *cls,
1429 { 1429 {
1430 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1430 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1431 "Received new private key for zone `%s'\n", 1431 "Received new private key for zone `%s'\n",
1432 GNUNET_short_h2s(&pubkey_hash)); 1432 GNUNET_short_h2s (&pubkey_hash));
1433 cc = GNUNET_malloc (sizeof (struct GNUNET_NAMESTORE_CryptoContainer)); 1433 cc = GNUNET_malloc (sizeof (struct GNUNET_NAMESTORE_CryptoContainer));
1434 cc->privkey = GNUNET_CRYPTO_rsa_decode_key (pkey_tmp, key_len); 1434 cc->privkey = GNUNET_CRYPTO_rsa_decode_key (pkey_tmp, key_len);
1435 cc->zone = pubkey_hash; 1435 cc->zone = pubkey_hash;
@@ -1458,9 +1458,9 @@ handle_record_remove (void *cls,
1458 name_tmp, (GNUNET_OK == res) ? "OK" : "FAIL"); 1458 name_tmp, (GNUNET_OK == res) ? "OK" : "FAIL");
1459 if (GNUNET_OK != res) 1459 if (GNUNET_OK != res)
1460 /* Could not remove entry from database */ 1460 /* Could not remove entry from database */
1461 res = 4; 1461 res = RECORD_REMOVE_RESULT_FAILED_TO_PUT_UPDATE;
1462 else 1462 else
1463 res = 0; 1463 res = RECORD_REMOVE_RESULT_SUCCESS;
1464 } 1464 }
1465 else 1465 else
1466 { 1466 {