[systemd-devel] [PATCH 0/4] Preparation series for binary passphrases

David Härdeman david at hardeman.nu
Mon Feb 3 15:57:26 PST 2014


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



More information about the systemd-devel mailing list