diff options
Diffstat (limited to 'src/identity/identity_api.c')
-rw-r--r-- | src/identity/identity_api.c | 15 |
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 | */ | ||
591 | const char* | ||
592 | GNUNET_IDENTITY_ego_get_name (const struct GNUNET_IDENTITY_Ego *ego) | ||
593 | { | ||
594 | return ego->name; | ||
595 | } | ||
596 | |||
597 | |||
585 | struct GNUNET_IDENTITY_Operation * | 598 | struct GNUNET_IDENTITY_Operation * |
586 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *h, | 599 | GNUNET_IDENTITY_create (struct GNUNET_IDENTITY_Handle *h, |
587 | const char *name, | 600 | const char *name, |