diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-02-27 21:08:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-27 21:08:57 +0300 |
commit | 7dc55a04d8da6f430ee9a0c07d68c6098a9dea15 (patch) | |
tree | 12793faa2ff6c51ccc05aa61275123891021e9ee /builtin | |
parent | 5e572aaa5d5b116739e586be615c1ed7d7d3e9d1 (diff) | |
parent | d208bfdfef97a1e8fb746763b5057e0ad91e283b (diff) |
Merge branch 'mh/credential-password-expiry'
The credential subsystem learned that a password may have an
explicit expiration.
* mh/credential-password-expiry:
credential: new attribute password_expiry_utc
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/credential-cache--daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/credential-cache--daemon.c b/builtin/credential-cache--daemon.c index f3c89831d4..338058be7f 100644 --- a/builtin/credential-cache--daemon.c +++ b/builtin/credential-cache--daemon.c @@ -127,6 +127,9 @@ static void serve_one_client(FILE *in, FILE *out) if (e) { fprintf(out, "username=%s\n", e->item.username); fprintf(out, "password=%s\n", e->item.password); + if (e->item.password_expiry_utc != TIME_MAX) + fprintf(out, "password_expiry_utc=%"PRItime"\n", + e->item.password_expiry_utc); } } else if (!strcmp(action.buf, "exit")) { |