Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop leaks; enable saved password #16

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Stop leaks; enable saved password #16

wants to merge 4 commits into from

Commits on Apr 20, 2013

  1. Stop leaks of memory and of privileges

    Fix several memory leaks and mishandling of the privilege status
    where a function returned failure indication, and previously
    allocated memory was not freed (and the referece was lost), or
    previously droped privileges where not restored.
    crosser committed Apr 20, 2013
    Configuration menu
    Copy the full SHA
    a04d7cc View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2013

  1. Make possible multiple C-R-like files

    Change the function that creates the path for challenge-response
    storate to take a "suffix" argument, so we can have multiple files.
    Isolate the part of the challenge-response forming function that
    fills in the expected response into a callback, so we now can store
    other things in the "expected response" field.
    crosser committed Apr 21, 2013
    Configuration menu
    Copy the full SHA
    044177c View commit details
    Browse the repository at this point in the history
  2. Enable saved encrypted authtoken (password) p.1

    Implement a second 'action' of ykpamcfg to create a file containing
    challenge and a secret string encrypted with the response (by OTP).
    Future update in the PAM module will inject this string as
    PAM_AUTHTOKEN, so it could be used by subsequent PAM modules.
    crosser committed Apr 21, 2013
    Configuration menu
    Copy the full SHA
    e124e5d View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2013

  1. Enable saved encrypted authtoken (password) p.2

    Implement function in the PAM module, when given the argument
    "supply_authtoken", to extract and decode data stored by
    ykpamcfg action "add_saved_password" and supply it as
    PAM_AUTHTOK to subsequent PAM modules. Particularly to
    pam_gnome_keyring module (and equivalents) to decode the
    keyring if yubikey was used as the sole authentication factor.
    crosser committed Apr 22, 2013
    Configuration menu
    Copy the full SHA
    3c869ec View commit details
    Browse the repository at this point in the history