diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-04-20 16:58:17 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2020-04-20 16:58:17 +0200 |
commit | 4a700470f454268928468ba49539524c3b02438a (patch) | |
tree | fbb2703fb3a6edb7f247996752fd985e9cc9f15f /src/revocation/revocation_api.c | |
parent | ee5cfec8640886ea3fa3f582cb04347762feebbd (diff) | |
download | gnunet-4a700470f454268928468ba49539524c3b02438a.tar.gz gnunet-4a700470f454268928468ba49539524c3b02438a.zip |
remove sign API call
Diffstat (limited to 'src/revocation/revocation_api.c')
-rw-r--r-- | src/revocation/revocation_api.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c index fba10a4d5..1aff7c2f6 100644 --- a/src/revocation/revocation_api.c +++ b/src/revocation/revocation_api.c | |||
@@ -608,27 +608,4 @@ GNUNET_REVOCATION_pow_cleanup (struct | |||
608 | GNUNET_free (pc); | 608 | GNUNET_free (pc); |
609 | } | 609 | } |
610 | 610 | ||
611 | |||
612 | /** | ||
613 | * Create a revocation signature. | ||
614 | * | ||
615 | * @param key private key of the key to revoke | ||
616 | * @param sig where to write the revocation signature | ||
617 | */ | ||
618 | void | ||
619 | GNUNET_REVOCATION_sign_revocation (struct GNUNET_REVOCATION_Pow *pow, | ||
620 | const struct | ||
621 | GNUNET_CRYPTO_EcdsaPrivateKey *key) | ||
622 | { | ||
623 | pow->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_REVOCATION); | ||
624 | pow->purpose.size = htonl (sizeof(struct GNUNET_CRYPTO_EccSignaturePurpose) | ||
625 | + sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey)); | ||
626 | GNUNET_CRYPTO_ecdsa_key_get_public (key, &pow->key); | ||
627 | GNUNET_assert (GNUNET_OK == | ||
628 | GNUNET_CRYPTO_ecdsa_sign_ (key, | ||
629 | &pow->purpose, | ||
630 | &pow->signature)); | ||
631 | } | ||
632 | |||
633 | |||
634 | /* end of revocation_api.c */ | 611 | /* end of revocation_api.c */ |