The following series contains some preparatory patches to support
binary strings as passphrases when using password agents (my
goal is to implement support for the "keyscript=" parameter
for cryptsetup using an agent).

These patches are very lightly tested since I wanted to get some
feedback and see if the overall approach is considered ok or not first.

---

David Härdeman (4):
      Add more password agent information
      Fix keysize handling in cryptsetup (bits vs. bytes)
      Fix askpass buffer overflow
      Add binary password agent protocol


 Makefile.am                                        |    2 
 src/ask-password/ask-password.c                    |   53 +++--
 src/cryptsetup/cryptsetup.c                        |   72 ++++---
 src/shared/ask-password-api.c                      |   74 ++++----
 src/shared/ask-password-api.h                      |    9 +
 src/shared/bstrv.c                                 |  194 ++++++++++++++++++++
 src/shared/bstrv.h                                 |   50 +++++
 .../tty-ask-password-agent.c                       |   11 +
 8 files changed, 364 insertions(+), 101 deletions(-)
 create mode 100644 src/shared/bstrv.c
 create mode 100644 src/shared/bstrv.h

-- 
David Härdeman

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to