[PATCH v2 2/3] agent: enforce a maximum passphrase length