aboutsummaryrefslogtreecommitdiff
path: root/src/identity/identity_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r--src/identity/identity_api.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c
index 3a9258aa4..bfb9d40fb 100644
--- a/src/identity/identity_api.c
+++ b/src/identity/identity_api.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 Copyright (C) 2013, 2016, 2021 GNUnet e.V. 3 Copyright (C) 2013, 2016, 2021, 2023 GNUnet e.V.
4 4
5 GNUnet is free software: you can redistribute it and/or modify it 5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published 6 under the terms of the GNU Affero General Public License as published
@@ -582,6 +582,19 @@ GNUNET_IDENTITY_ego_get_public_key (struct GNUNET_IDENTITY_Ego *ego,
582} 582}
583 583
584 584
585/**
586 * Obtain the name associated with an ego.
587 *
588 * @param ego the ego
589 * @return associated name, valid as long as the ego is valid
590 */
591const char*
592GNUNET_IDENTITY_ego_get_name (const struct GNUNET_IDENTITY_Ego *ego)
593{
594 return ego->name;
595}
596
597
585struct GNUNET_IDENTITY_Operation * 598struct GNUNET_IDENTITY_Operation *
586GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *h, 599GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *h,
587 const char *name, 600 const char *name,