From a32de45ceffeb69038ecfa7b963f30b7fed83a41 Mon Sep 17 00:00:00 2001 From: jospaeth Date: Mon, 25 May 2020 21:38:58 +0200 Subject: add option to create identity from private key --- src/include/gnunet_identity_service.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/gnunet_identity_service.h') diff --git a/src/include/gnunet_identity_service.h b/src/include/gnunet_identity_service.h index 81af671e2..f4e653598 100644 --- a/src/include/gnunet_identity_service.h +++ b/src/include/gnunet_identity_service.h @@ -233,6 +233,7 @@ typedef void * * @param id identity service to use * @param name desired name + * @param privkey desired private key or NULL to create one * @param cont function to call with the result (will only be called once) * @param cont_cls closure for @a cont * @return handle to abort the operation @@ -240,6 +241,7 @@ typedef void struct GNUNET_IDENTITY_Operation * GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *id, const char *name, + const struct GNUNET_CRYPTO_EcdsaPrivateKey *privkey, GNUNET_IDENTITY_CreateContinuation cont, void *cont_cls); -- cgit v1.2.3