ssb: Don't require -u for the private command. #119

This commit is contained in:
2025-05-05 21:51:38 -04:00
parent cf81ebe8ad
commit 3bf19fabda
3 changed files with 50 additions and 2 deletions

View File

@ -249,6 +249,14 @@ void tf_ssb_db_identity_visit(tf_ssb_t* ssb, const char* user, void (*callback)(
*/
void tf_ssb_db_identity_visit_all(tf_ssb_t* ssb, void (*callback)(const char* identity, void* user_data), void* user_data);
/**
** Get the user owning an identity.
** @param ssb The SSB instance.
** @param public_key the identity.
** @return The username of the owner of the identity or NULL.
*/
const char* tf_ssb_db_get_user_for_identity(tf_ssb_t* ssb, const char* public_key);
/**
** Get the private key for an identity in the database.
** @param ssb The SSB instance.