summaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
AgeCommit message (Collapse)AuthorFilesLines
2018-01-29improve systemd notification handlingGravatar Christian Hesse1-1/+3
2018-01-19less conditions for string duplicationGravatar Christian Hesse1-4/+4
This makes sure second_factor is not NULL and prevents later NULL dereferences. Fixes #23.
2018-01-02update copyright for 2018Gravatar Christian Hesse1-1/+1
2017-10-30update the logic for second factorGravatar Christian Hesse1-9/+20
2017-06-20Rework the code, update keyring handlingsystemd-v233Gravatar Christian Hesse1-1/+1
This had some historical issue... So rework the code: * split into more functions * drop the sleep and notify logic * update keyring handling Depending on setup and systemd version (233 and up) the keyring handling fails. Try to fix this by... * writing to session keyring first * setting permissions * linking to user keyring * unlinking from session keyring https://mjg59.dreamwidth.org/37333.html
2017-06-14invert conditionGravatar Christian Hesse1-8/+5
2017-06-14FIX: save old termio structure properlyGravatar Benjamin Pereto1-2/+2
2017-04-28Updated ykfde.c to silently skip terminal updates when tcgetattr fails so ↵Gravatar Alec Lanter1-14/+20
that keys can be piped through from other commands.
2017-03-02update copyright for 2017Gravatar Christian Hesse1-1/+1
2016-05-28indent with tabsGravatar Christian Hesse1-1/+1
2016-05-06use own function to ask for LUKS passphraseGravatar Christian Hesse1-5/+11
2016-05-06give hint we want the *current* second factorGravatar Christian Hesse1-1/+1
2016-05-04update help outputGravatar Christian Hesse1-1/+2
2016-05-04move terminal input to function, verify matching strings for new factorGravatar Christian Hesse1-37/+49
2016-05-04simplify return code handlingGravatar Christian Hesse1-26/+12
We do not return the return codes from library functionen, but that is not a big issue...
2016-05-04support reading second factor from terminalGravatar Christian Hesse1-17/+70
This increases security by not displaying on display and not writing to shell history.
2016-05-04do not allow to give second factor twiceGravatar Christian Hesse1-0/+12
2016-05-04fix error condition for yk_close_key() and yk_release()Gravatar Christian Hesse1-2/+2
2016-05-04fix error condition for yk_init()Gravatar Christian Hesse1-2/+3
2016-05-04fix error condition for yk_get_serial()Gravatar Christian Hesse1-1/+2
2016-05-03fix error condition for yk_challenge_response()Gravatar Christian Hesse1-6/+8
2016-05-03do not crypt_free() when crypt_status() failsGravatar Christian Hesse1-1/+1
2016-05-03warn when second factor is preocessed but not enabled in configGravatar Christian Hesse1-0/+5
2016-05-03define new constant for max second factor lengthGravatar Christian Hesse1-2/+3
2016-01-18we have command options to control behaviour, remove loop hackGravatar Christian Hesse1-40/+21
2016-01-16We have support for second factor. Yeah!Gravatar Christian Hesse1-64/+166
2016-01-04update copyright for 2016Gravatar Christian Hesse1-1/+1
2015-05-27iniparser_getstring() returns const char *Gravatar Christian Hesse1-1/+1
2015-01-04make defines more portableGravatar Christian Hesse1-2/+5
Looks like _DEFAULT_SOURCE requires a recent glibc and does not work on Fedora. So use _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED instead. Reported-by: Benjamin Pereto <benjamin.pereto@gmail.com>
2015-01-04update copyright for 2015Gravatar Christian Hesse1-1/+1
2014-12-29introduce config.hGravatar Christian Hesse1-6/+2
We now have configuration in just one place.
2014-12-23support updating the challenge on bootGravatar Christian Hesse1-2/+1
2014-12-22replace shell script with C code, and many moreGravatar Christian Hesse1-0/+280
* place bin/ykfde with C source code bin/ykfde.c * challenge/response can be updated in place WARNING: This required config file syntax change! * updates and simplification to udev/ykfde * a lot more... Signed-off-by: Christian Hesse <mail@eworm.de>