summaryrefslogtreecommitdiff
path: root/src/shared/user-record.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-08-17 14:28:14 +0200
committerLennart Poettering <lennart@poettering.net>2020-08-25 17:58:02 +0200
commitb3a97fd3aedc58a15745c960846b11ec36613840 (patch)
tree5e92823ea7771cf8f6e11bab6d650edef4cd4f31 /src/shared/user-record.h
parent45374f6503672564acf3e7e68513031dc00463d6 (diff)
downloadsystemd-b3a97fd3aedc58a15745c960846b11ec36613840.tar.gz
user-record: add recovery key fields to user record
Diffstat (limited to 'src/shared/user-record.h')
-rw-r--r--src/shared/user-record.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/user-record.h b/src/shared/user-record.h
index 39580b6b76..bbcb2201e8 100644
--- a/src/shared/user-record.h
+++ b/src/shared/user-record.h
@@ -206,6 +206,14 @@ typedef struct Fido2HmacSalt {
char *hashed_password;
} Fido2HmacSalt;
+typedef struct RecoveryKey {
+ /* The type of recovery key, must be "modhex64" right now */
+ char *type;
+
+ /* A UNIX pasword hash of the normalized form of modhex64 */
+ char *hashed_password;
+} RecoveryKey;
+
typedef struct UserRecord {
/* The following three fields are not part of the JSON record */
unsigned n_ref;
@@ -332,6 +340,10 @@ typedef struct UserRecord {
size_t n_fido2_hmac_salt;
int fido2_user_presence_permitted;
+ char **recovery_key_type;
+ RecoveryKey *recovery_key;
+ size_t n_recovery_key;
+
JsonVariant *json;
} UserRecord;