aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ykfde.c
AgeCommit message (Collapse)AuthorFilesLines
2024-01-01update copyright for 2024HEADmainGravatar Christian Hesse1-1/+1
2023-01-03update copyright for 2023Gravatar Christian Hesse1-1/+1
2022-01-03update copyright for 2022Gravatar Christian Hesse1-1/+1
2021-05-10make the compiler happyGravatar Christian Hesse1-1/+1
Depending on build flags the compiler complains: ykfde.c:307:3: error: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Werror=unused-result] Let's add the return value to `len`, which is no longer used anyway. Fixes #33
2021-01-01update copyright for 2021Gravatar Christian Hesse1-1/+1
2020-11-25clearly state the licenseGravatar Christian Hesse1-4/+12
2020-11-25exchange challenge filesGravatar Christian Hesse1-5/+12
This makes sure that the challenge file is never non-existent.
2020-11-25sync challenge file to disk before closingGravatar Christian Hesse1-0/+4
2020-02-08update copyright for 2020Gravatar Christian Hesse1-1/+1
2019-02-18completly replace rand() with getrandom()Gravatar Christian Hesse1-12/+10
2019-02-18do not use hardcoded sizeGravatar Christian Hesse1-1/+1
2019-02-18replace getrandom() with getentropy()Gravatar Christian Hesse1-1/+1
2019-02-17Seed with real random numberGravatar Christian Hesse1-5/+7
2019-01-01update copyright for 2019Gravatar Christian Hesse1-1/+1
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>