aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 04057bc98..688bdf282 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -1477,7 +1477,7 @@ deserialize_publish_file (void *cls, const char *filename)
1477 int32_t all_done; 1477 int32_t all_done;
1478 int32_t have_ns; 1478 int32_t have_ns;
1479 char *fi_root; 1479 char *fi_root;
1480 struct GNUNET_CRYPTO_EccPrivateKey ns; 1480 struct GNUNET_CRYPTO_EcdsaPrivateKey ns;
1481 char *fi_pos; 1481 char *fi_pos;
1482 char *emsg; 1482 char *emsg;
1483 1483
@@ -1522,7 +1522,7 @@ deserialize_publish_file (void *cls, const char *filename)
1522 } 1522 }
1523 if (GNUNET_YES == have_ns) 1523 if (GNUNET_YES == have_ns)
1524 { 1524 {
1525 pc->ns = GNUNET_new (struct GNUNET_CRYPTO_EccPrivateKey); 1525 pc->ns = GNUNET_new (struct GNUNET_CRYPTO_EcdsaPrivateKey);
1526 *pc->ns = ns; 1526 *pc->ns = ns;
1527 } 1527 }
1528 if ((0 == (pc->options & GNUNET_FS_PUBLISH_OPTION_SIMULATE_ONLY)) && 1528 if ((0 == (pc->options & GNUNET_FS_PUBLISH_OPTION_SIMULATE_ONLY)) &&
@@ -1637,7 +1637,7 @@ GNUNET_FS_publish_sync_ (struct GNUNET_FS_PublishContext *pc)
1637 ( (NULL != pc->ns) && 1637 ( (NULL != pc->ns) &&
1638 (GNUNET_OK != GNUNET_BIO_write (wh, 1638 (GNUNET_OK != GNUNET_BIO_write (wh,
1639 pc->ns, 1639 pc->ns,
1640 sizeof (struct GNUNET_CRYPTO_EccPrivateKey)) ) )) 1640 sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)) ) ))
1641 { 1641 {
1642 GNUNET_break (0); 1642 GNUNET_break (0);
1643 goto cleanup; 1643 goto cleanup;