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

Fix sed for POSIX compliance. #583

Closed
wants to merge 565 commits into from
Closed
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Sep 16, 2016

  1. edit: fix Name/Name conflict when editing secure notes

    "Name" in the template file could be interpreted as either the
    name of the account itself, or of the (person's) name in the
    template.  The result of this confusion is that editing the
    Name in the SSN template didn't work; it would be assigned
    to account fullname instead (which we later throw away when
    editing secure notes).
    
    Use line-number to disambiguate the case: account name should
    always be on the first line, everything thereafter is part of
    a note.
    
    Also move the strdup to where it is used so the lifetime of the
    string copy is clearer.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Sep 16, 2016
    Configuration menu
    Copy the full SHA
    8322ffe View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2016

  1. Added build directory to gitignore

    Signed-off-by: Filippo Cucchetto filippocucchetto@gmail.com
    filcuc committed Sep 20, 2016
    Configuration menu
    Copy the full SHA
    e121558 View commit details
    Browse the repository at this point in the history
  2. Added support for the CMake build system

    Signed-off-by: Filippo Cucchetto filippocucchetto@gmail.com
    filcuc committed Sep 20, 2016
    Configuration menu
    Copy the full SHA
    b5dcb0b View commit details
    Browse the repository at this point in the history
  3. Added travis file

    Signed-off-by: Filippo Cucchetto filippocucchetto@gmail.com
    filcuc committed Sep 20, 2016
    Configuration menu
    Copy the full SHA
    22a7ea0 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2016

  1. edit: do not make field entries for username/password

    A user reported that using Server secure note type resulted
    in some odd stuff showing up in the plugin vault.  This note
    type has a "Username" and "Password" field, but we already
    use that to map to account->username and account->password.
    
    When collapsing, the contents of those fields gets copied
    back into the note, along with any fields in the fields list.
    Unfortunately, we *also* copied in the empty duplicate
    Username/Password fields from the fields, resulting in a
    note with extra fields that confused the plugin.
    
    Fix this by not creating the duplicate fields in the fields
    list in the first place; then only the version in the account
    will get copied into the note.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 10, 2016
    Configuration menu
    Copy the full SHA
    ab927ef View commit details
    Browse the repository at this point in the history
  2. blob: add a helper for account_is_secure_note

    Similarly to account_is_group, add a function that documents the
    special url format denoting secure note types rather than open-coding
    the comparison.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 10, 2016
    Configuration menu
    Copy the full SHA
    a28e438 View commit details
    Browse the repository at this point in the history
  3. edit: fix editing of secure note names

    It was reported that editing a secure note to rename it doesn't work,
    while it does work for accounts.  The reason is we only apply name
    changes only if the user had specified `--name`.  But this is a
    historical limitation, e.g. when using the "any" edit type it makes
    sense to retain username edits, so just do it always since we
    always have a copy of the original account name in any case.
    
    Fixes lastpass#106.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 10, 2016
    Configuration menu
    Copy the full SHA
    c14148b View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2016

  1. ls: handle null last_modified_gmt

    I stumbled across a segfault doing 'lpass ls -l' -- it's possible for
    an account not to have an mtime at all, so don't crash in this case.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 12, 2016
    Configuration menu
    Copy the full SHA
    5b5310a View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2016

  1. blob: dedupe and expand string buffer usage

    There is more than one implementation now for a simple string
    buffer object (string + allocated size + used length), so
    standardize on the implementation in blob.c.
    
    Add append_char (used by import) and append_str (to be used later)
    to round out the common operations we will need.
    
    This also fixes an off-by-one in append_char.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 20, 2016
    Configuration menu
    Copy the full SHA
    7ced6ca View commit details
    Browse the repository at this point in the history
  2. ls: add a custom printf-like formatter

    We occasionally get requests to add new fields to ls output
    or somehow customize what stuff gets shown to make things
    better for humans or for screen scrapers.
    
    Rather than trying to accomodate everyone's use case, add
    a new format library like printf, so that you can (eventually)
    do things like
    
        ./lpass ls --format='%N %i %u'
    
    or
        ./lpass show --format='%fN'
    
    ...or whatever.  I haven't really settled on the right format
    strings to use so this is still a WIP, but currently it can
    handle generating the existing (non-color) ls format.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 20, 2016
    Configuration menu
    Copy the full SHA
    d2371e3 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2016

  1. ls: simplify creation of format string

    The format string only needs to be created once instead of in
    a loop, and using xasprintf simplifies things a bit, so do that.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    a8313e0 View commit details
    Browse the repository at this point in the history
  2. ls: use format machinery for tree print as well

    This drops a bit of code duplication by using the same format
    string for both color-less and tree mode output.  The only
    difference in the format string between the two is whether the
    fullname or short acpcount name is used; we can go ahead and
    embed the terminal color codes which will simply get stripped
    in terminal_printf.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    025a69c View commit details
    Browse the repository at this point in the history
  3. ls: enable user-provided format strings

    This adds the ability to supply a custom format string to ls.
    This might be useful for certain scripting tasks; e.g. you can
    save a sed/awk pipeline when grabbing an id by doing:
    
        lpass ls --format=%i account-name
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    df6db2d View commit details
    Browse the repository at this point in the history
  4. format: expand format specifiers, and support '/' modifier

    This adds some infrastructure useful for cmd-show:
    
     - You can use '/' after % to include a slash only if the expansion
       of the rest of the placeholder is non-empty
     - group and shared folder name gained their own placeholders
    
    Thus showing a path-like representation of a name can be done
    like "%/S%/g%Nf".
    
    Also, format_field function was added which formats a name/value pair
    ("%fn", "%fv" resp.).  It also takes an account so that it can format
    any of the existing account fields as needed.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    01d5dce View commit details
    Browse the repository at this point in the history
  5. cmd-show: support user-specified formats

    This adds the ability to specify the field format used with command-show
    using "--format", and the title format with "--title-format".
    
    Just as a fairly contrived example, you can get almost-json like this:
    
    echo "{"; \
    ./lpass show --title-format='    "title": "%/S%/g%Ns",' \
        --format='    "%fn": "%fv",' foo; \
    echo "}"
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    b05018b View commit details
    Browse the repository at this point in the history
  6. format: revise all of the placeholders for account

    Group the placeholders by type of object being printed (so "%aX" for
    account).  This reduces pollution of the top-level namespace a bit
    so that we can use more natural characters.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    8d67e93 View commit details
    Browse the repository at this point in the history
  7. implement tab-completion of field names

    This uses the new format string infrastructure to display
    just fieldnames in a subshell so that the fields in a specific
    account can be tab-completed.  In order for lpass to know which
    account is being queried, you have to specify account name first,
    like:
    
        lpass show foo --field [tab]
    
    There's a slight annoyance that title cannot go away completely,
    so post-process with egrep to drop those.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 21, 2016
    Configuration menu
    Copy the full SHA
    452ea3f View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2016

  1. Sort list of source files

    $(wildcard) does not guarantee a sorted list, which causes
    also a non-deterministic order while linking the binary.
    To support reproducible building, the list is explicitely sorted.
    
    Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>
    reinerh committed Nov 1, 2016
    Configuration menu
    Copy the full SHA
    ce73279 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2016

  1. Merge pull request lastpass#214 from reinerh/master

    Sort list of source files
    bcopeland committed Nov 2, 2016
    Configuration menu
    Copy the full SHA
    f77c56d View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2016

  1. Configuration menu
    Copy the full SHA
    32dc063 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2016

  1. cmake: default openssl directory on mac to /usr/local/opt/openssl

    Builds with CMake would link against the wrong (apple-supplied)
    version of openssl; make sure we use the one installed by brew.
    
    Pass -DOPENSSL_INCLUDE_DIR to use something else.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 23, 2016
    Configuration menu
    Copy the full SHA
    ab6ad67 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2016

  1. cmake: add install-doc target

    Add the install-doc target to install the manpage which was present
    in the original Makefile but missing here.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    6879b9f View commit details
    Browse the repository at this point in the history
  2. cmake: remove Makefile since cmake generates it now

    "cmake ." in order to get a Makefile for make.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    a971ec2 View commit details
    Browse the repository at this point in the history
  3. README.md: update documentation for cmake

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    1a0f563 View commit details
    Browse the repository at this point in the history
  4. cmake: force -std=gnu99

    This is needed on some Linux platforms for error-free build.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    ad86e3b View commit details
    Browse the repository at this point in the history
  5. cmake: install bash-completions file

    If we can determine the destination directory, install
    bash completions file.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    2ab0931 View commit details
    Browse the repository at this point in the history
  6. cmake: don't expect WIN32 in cygwin

    CMake complains when building in cygwin unless you tell it
    whether or not your project needs win32.  So tell it.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    90fa52e View commit details
    Browse the repository at this point in the history
  7. Merge branch 'pending-topic-cmake'

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    e9bc0c5 View commit details
    Browse the repository at this point in the history
  8. docs: document format specifiers

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Nov 28, 2016
    Configuration menu
    Copy the full SHA
    3ea394f View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2016

  1. util: add ask_options

    For some use cases we may need to ask the user for one of several
    options, not just yes or no.  Add a function that implements this,
    taking the charset of options as a string and returning the selected
    option.
    
    Rewrite ask_yes_no to use the new function.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 1, 2016
    Configuration menu
    Copy the full SHA
    b6f4232 View commit details
    Browse the repository at this point in the history
  2. show: add support for viewing/saving attachments

    This change adds the ability to retrieve attachments for secure notes.
    The `lpass show` command now shows attachment ids and filenames if
    a secure note has attachments.  The attachment id can then be passed
    to `lpass show acct --attach=attachid` which will either print the
    attachment (if non-binary) or offer the ability to save.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 1, 2016
    Configuration menu
    Copy the full SHA
    a4532a9 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2016

  1. cipher: support opaque EVP_CIPHER_CTX

    In OpenSSL 1.1+, EVP_CIPHER_CTX can no longer be declared on
    the stack; instead you have to declare a pointer and then
    use _new()/_free() to allocate or free it.  These functions
    continue to work on older OpenSSL, so switch to the new
    method.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    6e4ff62 View commit details
    Browse the repository at this point in the history
  2. cipher: drop p8inf->broken flag check

    struct pkcs8_priv_key_info_st is now opaque as of OpenSSL 1.1
    so we cannot look directly at its flags going forward.
    
    ./cipher.c: In function ‘cipher_rsa_decrypt’: ./cipher.c:73:11: error: dereferencing pointer to incomplete type ‘PKCS8_PRIV_KEY_INFO {aka struct
    pkcs8_priv_key_info_st}’
      if (p8inf->broken)
               ^
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland authored and Bob Copeland committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    390c01a View commit details
    Browse the repository at this point in the history
  3. pbkdf2: support openssl 1.1+

    In OpenSSL 1.1, HMAC_CTX is now opaque and _init/_cleanup functions
    are history.  Change the pbkdf2 implementation to conditionally
    use HMAX_CTX_new()/_free() and use context pointers throughout.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland authored and Bob Copeland committed Dec 5, 2016
    Configuration menu
    Copy the full SHA
    0f9e3d9 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2016

  1. CMakeLists.txt: Fix system installation

    - The GNUInstallDirs package, unlike the builtin install() macro,
      doesn't handle DESTDIR for you. So specify DESTDIR by hand, wherever
      applicable.
    - Specify the correct path of the manpage to install.
    - Don't require the HTML doc to be built as a prerequisite of installing
      the manpage.
    - Make targets "more correct", add uninstall target.
    
    We would like to clean up the overly tortuous layer of indirection over
    pkg-config, but on systems with ancient versions of CMake (i.e. Debian
    stable) pkg_get_variable simply doesn't exist.
    
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    eli-schwartz committed Dec 16, 2016
    Configuration menu
    Copy the full SHA
    72cb8de View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#230 from eli-schwartz/master

    CMakeLists.txt: Fix system installation
    bcopeland committed Dec 16, 2016
    Configuration menu
    Copy the full SHA
    d60e731 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2016

  1. cmake: guard use of BASH_COMPLETIONS_COMPLETIONSDIR

    This variable doesn't exist on all installations, so don't
    try to install it if not defined.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 20, 2016
    Configuration menu
    Copy the full SHA
    92bde18 View commit details
    Browse the repository at this point in the history
  2. travis: don't error if cmake/libxml already installed

    Build for OSX was failing in travis due to existing cmake.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 20, 2016
    Configuration menu
    Copy the full SHA
    7d2dd66 View commit details
    Browse the repository at this point in the history
  3. travis: try another method for ignoring install failures

    Travis doesn't like the '||:' syntax; use '|| true' instead.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 20, 2016
    Configuration menu
    Copy the full SHA
    3b19974 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2016

  1. show: don't mess up ssh key headers

    When undoing the newline conversion of ascii armor keys, don't
    convert embedded spaces that follow a colon.  These signify headers
    and are used in encrypted private keys.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Dec 28, 2016
    Configuration menu
    Copy the full SHA
    d6844b8 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2017

  1. build: reinstall Makefile, to call cmake

    This normalizes build to happen in build subdirectory so that
    existing source tree doesn't get polluted by build artifacts.
    
    The main targets are replicated in the top-level makefile so
    that most existing build setups should mostly continue to work,
    though the output files will now end up in the build/ directory.
    
    Of course doing 'cmake . && make' will continue to put the
    build artifacts in the top-level directory if someone wants
    that.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    2ab47cc View commit details
    Browse the repository at this point in the history
  2. build: fix debian build for cmake

    This reinstates the default of /usr for the installation
    directory prefix, and adds the build/xxx path for manpages,
    so that the debian package works again.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland authored and Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    d4dee58 View commit details
    Browse the repository at this point in the history
  3. add uninstall target to toplevel

    Fixes lastpass#226.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    c8aa412 View commit details
    Browse the repository at this point in the history
  4. update copyright year

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    623b344 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'topic-attachments'

    This adds the (read-only) attachment functionality to lpass.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    f634fba View commit details
    Browse the repository at this point in the history
  6. update changelog for upcoming release

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2017
    Configuration menu
    Copy the full SHA
    77b630e View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2017

  1. build: pass mandir to cmake, and regen cmake from toplevel

    This lets 'make MANDIR=x install-doc" work as expected.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland authored and Bob Copeland committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    1b7a5ca View commit details
    Browse the repository at this point in the history
  2. build: fix install-doc on OSX

    OSX doesn't support install -D; do it in two steps.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    a620758 View commit details
    Browse the repository at this point in the history
  3. debian: synchronize with downstream control files

    This updates (some of) the debian directory to match that
    of the downstream debian package so that packages built
    directly from source with dpkg-buildpackage more closely
    match the ones provided from the distribution.  Set version
    to 1.1.0 to match upcoming release.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    47026f5 View commit details
    Browse the repository at this point in the history
  4. version: update to 1.1.0

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    063c4ce View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2017

  1. Fix compiling when using LibreSSL

    Fix undefined reference to `HMAC_CTX_new' and `HMAC_CTX_free' when using
    LibreSSL instead of OpenSSL.
    
    Signed-off-by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
    bket committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    25e2569 View commit details
    Browse the repository at this point in the history
  2. Fix support for OpenBSD

    a971ec2 removed part of the support for
    OpenBSD. Re-add -lkvm to LDLIBS (if lastpass-cli is compiled on
    OpenBSD).
    
    Signed-off-by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
    bket committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    636c44f View commit details
    Browse the repository at this point in the history
  3. Merge pull request lastpass#237 from bket/libressl

    Fix compiling when using LibreSSL
    bcopeland committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    218f6ca View commit details
    Browse the repository at this point in the history
  4. Merge pull request lastpass#238 from bket/openbsd

    Fix support for OpenBSD
    bcopeland committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    919712e View commit details
    Browse the repository at this point in the history
  5. ls: sort by display fullname

    Display fullname differs from account name when there is no group;
    in this case (none) is prepended to the account, but we sort as
    if it isn't there, leading to mixed up sorting.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 4, 2017
    Configuration menu
    Copy the full SHA
    3af7429 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2017

  1. blob: fix segfault when using 'show' on a secure note

    vinceatbluelabs reported a segfault due to the new attachments
    code -- if attachment key is unspecified (like it is for most
    notes) then expansion will fail.  I had intended to make this
    field always present like id, name, etc but left that part out.
    
    Also free these fields when the account is freed.
    
    Fixes lastpass#241.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 5, 2017
    Configuration menu
    Copy the full SHA
    8bb4b14 View commit details
    Browse the repository at this point in the history
  2. changelog: update for new release

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 5, 2017
    Configuration menu
    Copy the full SHA
    68021d3 View commit details
    Browse the repository at this point in the history
  3. version: update to 1.1.1

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 5, 2017
    Configuration menu
    Copy the full SHA
    1072699 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2017

  1. terminal: fix segfault in lpass logout

    vinceatbluelabs on github reports a segfault with lpass logout
    --color=never due to unsigned overflow when len < 2.  Fix this
    by checking first that len is at least two characters long before
    trying to strip out any escape characters.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 11, 2017
    Configuration menu
    Copy the full SHA
    18996ca View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2017

  1. edit: initialize attach keys for new accounts

    lpass add was failling in secure notes due to attachment
    keys being uninitialized.  Fix by setting these where other
    fields are initialized.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 13, 2017
    Configuration menu
    Copy the full SHA
    791f8e3 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2017

  1. Merge pull request lastpass#252 from lastpass/topic-sort

    ls: sort by display fullname
    bcopeland committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    2af575b View commit details
    Browse the repository at this point in the history
  2. doc: document lpass show matching options

    Add documentation for --fixed-strings, --basic-regexp, --expand multi.
    
    Signed-off-by: Eric B. Hymowitz <eric_b_hymowitz@yahoo.com>
    [copeland@lastpass.com: fixed up commitlog]
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    hymie0 authored and Bob Copeland committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    91cb253 View commit details
    Browse the repository at this point in the history
  3. doc: document command aliases and default options

    Add documentation for the alias feature.
    
    Signed-off-by: Eric B. Hymowitz <eric_b_hymowitz@yahoo.com>
    [copeland@lastpass.com: fixed up commitlog]
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    hymie0 authored and Bob Copeland committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    86225bb View commit details
    Browse the repository at this point in the history
  4. doc: shorten the section on aliases slightly

    Simplify the aliases documentation a bit by showing echo
    commands to create the necessary files.
    
    As the configuration directory is not necessarily in
    $LPASS_HOME, add a reference to the previous section,
    and use ~/.config/lpass in the examples since that is
    where it is typically found on Linux.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 17, 2017
    Configuration menu
    Copy the full SHA
    9e8dd16 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2017

  1. test: implement a mock http server for basic testing

    This adds a new executable target, lpass-test, which
    returns canned responses for http requests.  With
    suitable mocked responses, we can use this to do
    testing without an external server.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 18, 2017
    Configuration menu
    Copy the full SHA
    7e993b7 View commit details
    Browse the repository at this point in the history
  2. test: add some tests of basic functionality

    This adds a bash-driven test infrastructure that uses the lpass-test
    binary to do some simple tests of login, add, edit, show, duplicate,
    and generate.  All commands disable syncing and either operate on the
    local blob records (of added accounts) or the accounts that are
    returned in the mock getaccts function.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 18, 2017
    Configuration menu
    Copy the full SHA
    e59c8cb View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2017

  1. build: remove build dir on 'make clean'

    When using the normal build/ build directory, everything under
    there can be removed on a clean build and regenerated.  Failure
    to clean up all of this was causing some issues in package
    builds.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    32172dd View commit details
    Browse the repository at this point in the history
  2. build: add cmake, pkg-config to build-depends

    These are needed for the build now.  Reported by Knut Ahlers.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    ced43ae View commit details
    Browse the repository at this point in the history
  3. version: update to 1.1.2

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    6cd4daa View commit details
    Browse the repository at this point in the history
  4. debian: add 1.1.2 changelog entry for package

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    97e6e62 View commit details
    Browse the repository at this point in the history
  5. doc: v1.1.2 changelog update

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 3, 2017
    Configuration menu
    Copy the full SHA
    c9fa3a5 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2017

  1. add unit tests to toplevel

    This creates a 'make test' target in toplevel makefile, and also
    excludes lpass-test from being built as part of "make all".
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    0b77269 View commit details
    Browse the repository at this point in the history
  2. fix warnings in test build for unused funcitons

    A lot of these functions are only used in libcurl, so we should
    leave them out of the test builds.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    5629ba5 View commit details
    Browse the repository at this point in the history
  3. run tests under travis

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    34c9cf5 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'topic-tests'

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    1c6f8f6 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2017

  1. tests: add a test for editing an SSN name

    User has reported an issue in this area and we did
    have a bug here once, so add another test just to
    make sure this works.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 23, 2017
    Configuration menu
    Copy the full SHA
    9432202 View commit details
    Browse the repository at this point in the history
  2. share: display the created share name

    There's a certain amount of confusion by the fact that lpass insists
    on forcing the Shared-XXX filename convention, so users can't find
    the shared folder they just created.  Make it a little more obvious
    by telling the folder name that was ultimately created.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 23, 2017
    Configuration menu
    Copy the full SHA
    64553a3 View commit details
    Browse the repository at this point in the history
  3. ls: show empty shared folders

    Currently only folders with something in them get shown.
    For regular folders, there is the concept of the 'group'
    type account which can be used to represent an empty folder,
    so these can be displayed in `lpass ls`.  For shared folders,
    though, there is not such an account type.
    
    But we know all the shared folders as they are added to a list
    in the blob, so we can create a fake group account just for
    displaying inside `lpass ls`.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Feb 23, 2017
    Configuration menu
    Copy the full SHA
    c1e7de1 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2017

  1. show: display reprompt status if enabled

    I plan to add editing of reprompt status, and it would be helpful
    to see it in the 'show' command to see if it is currently enabled
    or not.  Since the vast majority of sites are unlikely to have
    reprompt enabled, only show it if set to true, to avoid adding too
    much noise.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 1, 2017
    Configuration menu
    Copy the full SHA
    3fbc8d1 View commit details
    Browse the repository at this point in the history
  2. edit: add a method of editing reprompt setting

    Although we track it and now show it, there is no way for a user
    using the CLI to modify the reprompt setting for a site.  This
    change adds a new line into the edit buffer for accounts if the
    reprompt setting is set to true, like so:
    
        [...]
        Reprompt: Yes
    
    If reprompt is not true (vast majority of cases), we just leave it
    out.  If the value is changed to anything other than Yes during the
    edit session, then reprompt is changed accordingly.  Thus reprompt
    can be turned on and off like so:
    
        echo "Reprompt: Yes" | lpass edit site --non-interactive
        echo "Reprompt: No" | lpass edit site --non-interactive
    
    Add a test to capture this functionality.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 1, 2017
    1 Configuration menu
    Copy the full SHA
    f96885f View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2017

  1. edit: fix reprompt edit for notes

    We didn't copy the edited pwprotect back into expanded notes;
    fix that.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 6, 2017
    Configuration menu
    Copy the full SHA
    80a6ce9 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2017

  1. NULL-check the argument to append_str

    Fixes lastpass#283.
    
    Signed-off-by: Kyle Burton <kyle.burton@gmail.com>
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    kyleburton authored and Bob Copeland committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    939c7da View commit details
    Browse the repository at this point in the history
  2. format: always initialize buffer with some space

    If format_account() wound up not appending any characters at all,
    then buf->bytes might still be a null pointer (i.e., only appending
    a character causes buf->bytes to get created).  We would then pass
    this into terminal_printf again in order to use it for show().
    
    Fix the issues in this area by introducing buffer_init() and using
    that in the format cases.  The buffer_init function always allocates
    an empty 80-character string in the expectation it will get used.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    7e9cec2 View commit details
    Browse the repository at this point in the history
  3. endpoints.c: fix valgrind identified memory leaks

    cmake -DCMAKE_BUILD_TYPE=Debug .
    make
    valgrind --log-file=./valgrind.log --leak-check=full ./lpass export --sync=now
    
    Signed-off-by: Kyle Burton <kyle.burton@gmail.com>
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    kyleburton authored and Bob Copeland committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    58fbb17 View commit details
    Browse the repository at this point in the history
  4. clang static checker fixups

    Fix:
    
    /tmp/lastpass-cli/cmd-ls.c:351:29: warning: The left operand of '!=' is a garbage value
    /tmp/lastpass-cli/endpoints.c:429:7: warning: Use of memory after it is freed
    
    Reported by @wkoszek on github (lastpass#281).
    
    There were a few false positives caused by the pattern:
    
        _cleanup_free_ char *reply = NULL;
        reply = get_some_data();
    
    In which the reply is there so it can be freed.  I left these alone.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 14, 2017
    Configuration menu
    Copy the full SHA
    a53de5d View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2017

  1. edit: add a maximum of 45k characters for notes

    The server will reject fields that are too large which will cause
    sync to hang.  Add an upper limit.  Fixes lastpass#278.
    
    Reported by deniseyu on github.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    c5efd73 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2017

  1. Missing xsltproc, cmake, and gcc dependencies in README

    Signed-off-by: Christian Rondeau <christian.rondeau@gmail.com>
    [copeland@lastpass.com - squashed two related patches]
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    christianrondeau authored and Bob Copeland committed Apr 13, 2017
    Configuration menu
    Copy the full SHA
    48b55f2 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2017

  1. Fix a typo in asciidoc instructions

    Signed-off-by: Christian Rondeau <christian.rondeau@gmail.com>
    christianrondeau committed Apr 14, 2017
    Configuration menu
    Copy the full SHA
    6f18014 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2017

  1. Merge pull request lastpass#295 from christianrondeau/docpr

    Fix a typo in asciidoc instructions
    bcopeland committed Apr 19, 2017
    Configuration menu
    Copy the full SHA
    d6c7147 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2017

  1. endpoints: fix trust for out-of-band case

    The trust.php call was missing a token which caused
    trust updates to be ignored.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Apr 20, 2017
    Configuration menu
    Copy the full SHA
    46b8f48 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2017

  1. test: add a test for adding an ssh key

    Due to the way LastPass stores multiline fields, this
    frequently comes up as a bug report; make a test to
    demonstrate how it currently works (notably you have
    to remove newlines.)
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    75bcbcb View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2017

  1. support new-style private key format fields

    The LastPass plugins now support multiline fields (besides Notes)
    if the field is part of a known note template.  This has been used
    to capture the embedded newlines in ascii-armored private SSH keys
    with the ssh-key note type.
    
    Until now lpass only supported ssh keys stored on a single line,
    so add the ability to parse these kinds of strings to enable
    support for keys created in the newer plugins.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Apr 26, 2017
    Configuration menu
    Copy the full SHA
    1ae6957 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2017

  1. Add build-essential to Ubuntu package dependencies

    Ubuntu requires the `build-essential` package for cmake to complete.
    
    Signed-off-by: Craig Menning <cmenning@gmail.com>
    Craig Menning committed May 5, 2017
    Configuration menu
    Copy the full SHA
    336748a View commit details
    Browse the repository at this point in the history

Commits on May 8, 2017

  1. Merge pull request lastpass#301 from cmenning/add-build-essential

    Add build-essential to Ubuntu package dependencies
    bcopeland committed May 8, 2017
    Configuration menu
    Copy the full SHA
    f015a5e View commit details
    Browse the repository at this point in the history

Commits on May 23, 2017

  1. Include pkg-config in Ubuntu dependencies

    Running `cmake .` on Ubuntu 16.04 gives an error:
    
    ```
    Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
    ```
    
    Signed-off-by: Glenn Oppegard <goppegard@pivotal.io>
    oppegard committed May 23, 2017
    Configuration menu
    Copy the full SHA
    e6efe1a View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#307 from oppegard/patch-1

    Include pkg-config in Ubuntu dependencies
    bcopeland committed May 23, 2017
    Configuration menu
    Copy the full SHA
    b8b20ea View commit details
    Browse the repository at this point in the history

Commits on May 24, 2017

  1. Add SUN_LEN when not defined (termux)

    Signed-off-by: Christian Rondeau <christian.rondeau@gmail.com>
    Note that this code is found as-is in multiple `un.h` implementations.
    Source and alternatives for SUN_LEN: https://stackoverflow.com/a/2307539/154480
    christianrondeau committed May 24, 2017
    Configuration menu
    Copy the full SHA
    dfd7ea2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#308 from christianrondeau/termux

    Add SUN_LEN when not defined (termux)
    bcopeland committed May 24, 2017
    Configuration menu
    Copy the full SHA
    670acab View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2017

  1. tests: add export test

    Add a test for the basic CSV export functionality.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 5, 2017
    Configuration menu
    Copy the full SHA
    147903f View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2017

  1. export --full to dump the full account struct

    Signed-off-by: Kyle Burton <kyle.burton@gmail.com>
    [copeland@lastpass.com: edited to remove some unrelated changes]
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    kyleburton authored and Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    7e9c202 View commit details
    Browse the repository at this point in the history
  2. export: allow customizing the list of exported fields

    Add a new --fields=FIELDLIST argument which can be used to
    customize the list of output fields instead of printing
    just the few defaults that we can import.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    aabc642 View commit details
    Browse the repository at this point in the history
  3. tests: add a test for extended export

    Add a test that uses a customized field list including some
    unknown property (which should be rendered as empty string).
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    c59160a View commit details
    Browse the repository at this point in the history
  4. README: advocate top-level makefile

    'make test' only works if you start with the toplevel makefile
    because it now assumes cmake is run from the build/ directory
    (this is the suggested practice so that build artifacts don't
    contaminate the source).
    
    So advise using 'make' instead of the cmake-generated Makefile,
    at least for people who aren't familiar with cmake which will
    build with cmake in the build/ directory.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    a532da4 View commit details
    Browse the repository at this point in the history
  5. endpoints: remove dead fields code

    stringify_field(s) isn't currently used, just drop it for now.
    It was intended to support field updates but we still don't
    support that yet.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    5760c2b View commit details
    Browse the repository at this point in the history
  6. share: make reply free explicit in simple cases

    clang analyzer says that reply is unused.  This is a false
    positive because, although we don't look at the reply,
    we still need to free it.  So just explicitly call free
    to quiet the check.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    873482b View commit details
    Browse the repository at this point in the history
  7. login: check cause before using

    This is a false-positive from clang-analyzer: if ordinary_login
    returns false then cause must not be null.  Still, the flow is
    a bit confusing so just go ahead and add a null check before we
    use it.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    1ba2e60 View commit details
    Browse the repository at this point in the history
  8. version: prepare version 1.2.0

    Add the changelogs for the next release.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 7, 2017
    Configuration menu
    Copy the full SHA
    8f155ef View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2017

  1. OpenBSD requires -lkvm

    Similar to building lpass, OpenBSD requires -lkvm when building
    lpass-test.
    
    Signed-off-by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
    bket committed Jun 9, 2017
    Configuration menu
    Copy the full SHA
    8484a4b View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#310 from bket/test-openbsd

    OpenBSD requires -lkvm
    bcopeland committed Jun 9, 2017
    Configuration menu
    Copy the full SHA
    2c60147 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2017

  1. pid_to_cmd: Use sysctl on FreeBSD, DragonFly and NetBSD.

    Replace use of /proc with sysctl KERN_PROC_PATHNAME on FreeBSD,
    DragonFlyBSD (3.8+) and recent NetBSDs (8.0+).
    
    As NetBSD 8 isn't out yet, the fallback to /proc is maintained.
    DragonFlyBSD 3.8 is 3 years old and there seems little reason to make
    the logic more complex for the sake of supporting older versions.
    
    Signed-off-by: Thomas Hurst <tom@hur.st>
    Freaky committed Jun 15, 2017
    Configuration menu
    Copy the full SHA
    db843be View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2017

  1. Merge pull request lastpass#313 from Freaky/bsd-sysctl

    pid_to_cmd: Use sysctl on FreeBSD, DragonFly and NetBSD.
    bcopeland committed Jun 19, 2017
    Configuration menu
    Copy the full SHA
    be09223 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2017

  1. Demonstrate bug.

    Looks like adding a note field to a secure note results in 'lpass show'
    not being able to display fields without excess text displaying at the
    end.
    
    Signed-off-by: Vince Broz <vince.broz@bluelabs.com>
    vinceatbluelabs committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    be7b130 View commit details
    Browse the repository at this point in the history
  2. blob: only do field concatenation for multiline fields

    Commit 1ae6957, "support new-style private key format fields"
    introduced a regression in that non-templated fields got merged
    with the preceeding fields for all template types.  While this is
    similar to what the website does, it broke workflows for several
    users and, in practical terms, only ssh private keys have this
    feature, so we only need to do it there.
    
    Introduce a new function to tell us which template fields are
    eligible for this version of expansion and only do it for those.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    301668b View commit details
    Browse the repository at this point in the history
  3. Merge pull request lastpass#312 from vinceatbluelabs/notes_break_show…

    …_on_field
    
    Excess output when showing fields on secure notes that have a 'Notes' field
    bcopeland committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    5974e7c View commit details
    Browse the repository at this point in the history
  4. test: add a test case for showing secure notes

    This test covers a regression where the final parsed field
    in a secure note would get dropped.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    85d7f90 View commit details
    Browse the repository at this point in the history
  5. blob: fix parsing for secure notes

    The final entry in a secure note doesn't necessarily end in a newline,
    but the field parsing code skipped the last line due to a regression
    introduced in commit 1ae6957.  Make sure the final line is
    considered.
    
    Fixes lastpass#311.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 21, 2017
    Configuration menu
    Copy the full SHA
    0574dc5 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2017

  1. version: update to 1.2.1

    Prepare a new release with recent fixes.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jun 28, 2017
    Configuration menu
    Copy the full SHA
    eda59f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2017

  1. format: support "%al" for account URL

    Signed-off-by: Yikai Zhao <i@BlahGeek.com>
    blahgeek committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    6dd3dc1 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2017

  1. Merge pull request lastpass#315 from blahgeek/master

    format: support "%al" for account URL
    bcopeland committed Jul 19, 2017
    Configuration menu
    Copy the full SHA
    e72a522 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2017

  1. agent: check for LPASS_AGENT_DISABLE in agent_start()

    The agent was being started in agent_save() which is
    called from login, regardless of LPASS_AGENT_DISABLE
    setting.
    
    Move it to agent_start() so that it is always checked.
    
    Fixes lastpass#320.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jul 27, 2017
    Configuration menu
    Copy the full SHA
    2d55f31 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2017

  1. Revert "endpoints: remove dead fields code"

    This reverts commit 5760c2b.
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    684bf31 View commit details
    Browse the repository at this point in the history
  2. endpoints: include fields when doing add/edit account

    When adding an account with fields, the fields are never sent
    to the server.  Consequently, they are dropped whenever the save
    is completed.  Persist the fields if present using the SAED
    machinery.
    
    Fixes github issue lastpass#324.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    eef9cdf View commit details
    Browse the repository at this point in the history
  3. edit: allow passing multiple lines to lpass edit --field=X

    It's convenient to be able to add an ssh-key via just
    
       cat my-key-file | lpass edit --field='Private Key' --non-interactive foo
    
    ...rather than having to pipe to tr to remove newlines.  Enable
    that usecase by reading multiple lines from stdin in this case
    instead of just the first line.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    1b71a56 View commit details
    Browse the repository at this point in the history
  4. blob: don't skip internal newlines while processing a field

    Although we could add embedded newlines in ssh-keys, blob parser
    was mangling them again by stripping out the newline between the
    key info and the key data.  Preserve those.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    113e27b View commit details
    Browse the repository at this point in the history
  5. test: fix test cases that do more than one assert

    Some of the test cases would check more than one assertion
    but keep going after the first assertion failed; this could
    hide errors in the test suite.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    cf52190 View commit details
    Browse the repository at this point in the history
  6. tests: remove 'tr' from ssh test pipeline

    Now that `lpass edit` can handle multiline text when specifying
    the fieldname, we don't need to use 'tr' here.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 23, 2017
    Configuration menu
    Copy the full SHA
    88eda28 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2017

  1. edit: support ssh keys in interactive lpass add

    Split out the edit file parser from the processing code, and
    enhance it to accumulate multiline strings in a similar manner
    to expanding notes in the blob.  This allows us to put a multiline
    private ssh key file in the ssh secure notes in a more natural
    way than joining a bunch of lines together.
    
    Fixes lastpass#316.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Aug 25, 2017
    Configuration menu
    Copy the full SHA
    24958c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2017

  1. Add link to documentation

    Signed-off-by: Steven Liekens <steven.liekens@gmail.com>
    sliekens committed Aug 26, 2017
    Configuration menu
    Copy the full SHA
    075b102 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#327 from StevenLiekens/patch-1

    Add link to documentation
    bcopeland committed Aug 26, 2017
    Configuration menu
    Copy the full SHA
    68f28e0 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2017

  1. Fix debian building on newer systems

    Signed-off-by: Hannes Hörl <hannes.hoerl+gh@snowreporter.com>
    hoegaarden committed Sep 8, 2017
    Configuration menu
    Copy the full SHA
    d50e114 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2017

  1. updated Readme.md to reflect the two packages avalaible from AUR and …

    …the Arch Community Repository
    
    Signed-off-by: Darragh Grealish <me@darraghgrealish.com>
    grealish committed Sep 10, 2017
    Configuration menu
    Copy the full SHA
    2b54844 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2017

  1. Merge pull request lastpass#328 from hoegaarden/debian-fix

    Fix debian building on newer systems
    bcopeland committed Sep 12, 2017
    Configuration menu
    Copy the full SHA
    e16a093 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2017

  1. Merge pull request lastpass#329 from grealish/master

    Updated Readme to reflect correct Arch Linux information
    bcopeland committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    71d4661 View commit details
    Browse the repository at this point in the history
  2. show: load attachments from getattach

    Fixes lastpass#1 and lastpass#318: Load attachments from the correct endpoint.
    For shared attachments, include the shared folder id.
    
    Signed-off-by: Spencer Whyte <spencerwhyte@gmail.com>
    [added free(), revised commitlog]
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    spencerwhyte authored and Bob Copeland committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    245b957 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2017

  1. problem: can't complete names with spaces in them

    Instead of just grabbing the first field using awk, use the same sed
    logic for stripping the ID that the next line uses.
    
    Signed-off-by: Justin Azoff <justin.azoff@gmail.com>
    JustinAzoff committed Sep 22, 2017
    Configuration menu
    Copy the full SHA
    7e307bb View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#334 from JustinAzoff/master

    problem: can't complete names with spaces in them
    bcopeland committed Sep 22, 2017
    Configuration menu
    Copy the full SHA
    cda980c View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2017

  1. use-after-free bug in http.c

    OpenBSD has some nifty features for the memory allocator. One of these
    features is 'use after free detection'. With this this feature enabled
    lpass segfaults.
    
    This segfault is explained by the order of curl_easy_cleanup and
    curl_easy_getinfo in http.c: First a libcurl easy handle is ended, and
    then it is used to gather some information.
    
    Description of curl_easy_cleanup states that "This function must be the
    last function to call for an easy session."
    
    Signed-off-by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
    bket committed Sep 29, 2017
    Configuration menu
    Copy the full SHA
    68cfae0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#336 from bket/curl_easy_cleanup

    use-after-free bug in http.c
    bcopeland committed Sep 29, 2017
    Configuration menu
    Copy the full SHA
    1541a4a View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2017

  1. Support VISUAL editor environment variable (Closes: github lastpass#337)

    Takes preference over the EDITOR environment variable as per
    https://en.wikibooks.org/wiki/Guide_to_Unix/Environment_Variables#VISUAL
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    9e20ce1 View commit details
    Browse the repository at this point in the history
  2. Update gitignore to exclude test dir test/.lpass

    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Oct 12, 2017
    Configuration menu
    Copy the full SHA
    b207316 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2017

  1. Merge pull request lastpass#339 from waterkip/337-add-visual-support

    Support VISUAL editor environment variable (Closes: github lastpass#337)
    bcopeland committed Oct 13, 2017
    Configuration menu
    Copy the full SHA
    6e8687c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2017

  1. Update completions-lpass.fish

    - Add missing options.
    - Remove unused functions.
    - Simplify remaining functions (entry completion should be fast now).
    - Add missing command (status).
    - Rearrange items in alphabetic order.
    
    Signed-off-by: Israel Chauca <israelchauca@gmail.com>
    Raimondi committed Oct 15, 2017
    Configuration menu
    Copy the full SHA
    193e06f View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2017

  1. doc: v1.2.2 changelog update

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    d57448e View commit details
    Browse the repository at this point in the history
  2. debian: add 1.2.2 version

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    24e5715 View commit details
    Browse the repository at this point in the history
  3. version: update to 1.2.2

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    4ce0404 View commit details
    Browse the repository at this point in the history
  4. Merge pull request lastpass#341 from Raimondi/patch-1

    Update completions-lpass.fish
    bcopeland committed Oct 25, 2017
    Configuration menu
    Copy the full SHA
    5b48a30 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2017

  1. generate: fix type for option parsing

    char may or may not be signed depending on architecture. If char is
    unsigned on a given architecture, then will the testing the return value
    from getopt_long (which is int) always fail. This happened on some
    architectures like ppc64le, aarch64 and s390x.
    
    To fix this we use same type as getopt_long return value: int.
    
    fixes lastpass#345
    
    Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
    ncopa committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    d170eb7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#346 from ncopa/fix-generate

    generate: fix type for option parsing
    bcopeland committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    8d086f6 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2017

  1. spelling: duplicate

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    5019414 View commit details
    Browse the repository at this point in the history
  2. spelling: occurred

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    fb90968 View commit details
    Browse the repository at this point in the history
  3. spelling: outsideenterprise

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    eb58665 View commit details
    Browse the repository at this point in the history
  4. spelling: Red Hat

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    e7c1512 View commit details
    Browse the repository at this point in the history
  5. spelling: routines

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    1 Configuration menu
    Copy the full SHA
    80c1174 View commit details
    Browse the repository at this point in the history
  6. spelling: session

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    a9601f7 View commit details
    Browse the repository at this point in the history
  7. spelling: setting

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    4446d8d View commit details
    Browse the repository at this point in the history
  8. spelling: standard

    Signed-off-by: Josh Soref <jsoref@gmail.com>
    jsoref committed Nov 7, 2017
    Configuration menu
    Copy the full SHA
    82bb51d View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2017

  1. Merge pull request lastpass#350 from jsoref/spelling

    Spelling
    bcopeland committed Dec 11, 2017
    Configuration menu
    Copy the full SHA
    a3e38fa View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. copyright: update dates to 2018

    Happy New Year!
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    1d4d4cf View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2018

  1. Remove --with-doc instruction for Homebrew install

    Fixes lastpass#347
    
    Signed-off-by: Roger D. Winans <roger@solvahol.org>
    solvaholic committed Jan 5, 2018
    Configuration menu
    Copy the full SHA
    26c4e67 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2018

  1. Merge pull request lastpass#367 from solvaholic/solvaholic/touch-readme

    Remove --with-doc instruction for Homebrew install
    bcopeland committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    9606180 View commit details
    Browse the repository at this point in the history
  2. import: optionally preserve duplicate accounts

    Some users would like to keep duplicates when importing.  Provide
    the --keep-dupes option for that.  Fixes lastpass#365.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    092ff4f View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. lastpass#314 Allow providing custom path to pinentry

    Signed-off-by: Martynas Mickevičius <self@2m.lt>
    2m committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    f5b9ae5 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2018

  1. Merge pull request lastpass#369 from 2m/wip-pinentry-env-2m

    lastpass#314 Allow providing custom path to pinentry
    bcopeland committed Jan 27, 2018
    Configuration menu
    Copy the full SHA
    0d97b3b View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2018

  1. add show --quiet to print binary attachments to stdout

    problem: trying to automate printing attachments to standard
    output the program stops and asks for user input. To avoid
    this behaviour I've implemented --quiet in the same way as
    status so it just behaves as usual (printing to standard output)
    
    documentation and --help have both been updated
    
    Signed-off-by: Pau Sanchez <contact@pausanchez.com>
    pausan committed Jan 28, 2018
    Configuration menu
    Copy the full SHA
    5dbf187 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2018

  1. Merge pull request lastpass#377 from pausan/force-show-attachments

    add show --quiet to print binary attachments to stdout
    bcopeland committed Feb 2, 2018
    Configuration menu
    Copy the full SHA
    b703598 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2018

  1. Add zsh completion

    Signed-off-by: Richard Hillmann <richie@project0.de>
    project0 committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    a46e3db View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2018

  1. Merge pull request lastpass#379 from Project0/feature/zsh

    Add zsh completion
    bcopeland committed Feb 26, 2018
    Configuration menu
    Copy the full SHA
    e02dfff View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2018

  1. upload: don't backoff as much for 500 errors

    When we encounter a server error (non-200) we always backoff.
    However, many times this isn't a rate limit but some other
    (possibly temporary) 500 error which we can retry with less
    waiting.  Reduce the backoff scaling for these types of errors.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    40109c8 View commit details
    Browse the repository at this point in the history
  2. show: teach show --json option

    Based on a patch from Pau Sanchez, add --json option for "lpass show",
    which can be friendlier for certain kinds of scripting tasks.
    
    Normal selection rules apply, so you can, for example, do:
    
        lpass show -jxG .*
    
    to dump all accounts.  In the future we may switch out the custom json
    code for YAJL or similar, but this gets the basics working.
    
    Fixes lastpass#263.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    e5a22e2 View commit details
    Browse the repository at this point in the history
  3. tests: add a test for show --json

    Add a test for show --json.
    
    Because it's hard to get trailing whitespace correct (and it doesn't
    matter for json), also strip out trailing whitespace before comparing
    strings.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    dec17ce View commit details
    Browse the repository at this point in the history
  4. json-format: rename to dash instead of underscore

    Maintain naming consistency by renaming json_* to json-*
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 13, 2018
    Configuration menu
    Copy the full SHA
    305364e View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2018

  1. tests: add a test case for freeform notes

    It was reported that we are saving the notes as fields; make
    a test case for this.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    0a1bc00 View commit details
    Browse the repository at this point in the history
  2. edit: fix editing of site notes

    These were being added to fields because there was no check for
    Notes label in assign_account_value.
    
    Fixes lastpass#374.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    76d4fbc View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2018

  1. changelog: prepare changelogs for 1.3.0 release

    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    bcopeland committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    fe108e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5843a3e View commit details
    Browse the repository at this point in the history
  3. Added CLion project files to ignore list

    Signed-off-by: Andras Rutkai <andras.rutkai@logmein.com>
    rutkai committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    a49ed5f View commit details
    Browse the repository at this point in the history
  4. Missing dependencies in readme.

    Fixes lastpass#317
    
    Signed-off-by: Andras Rutkai <andras.rutkai@logmein.com>
    rutkai committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    79eec48 View commit details
    Browse the repository at this point in the history
  5. tests: rename note-with-notes test to what it does

    Commit be7b130 added a test case to demonstrate a particular
    parsing issue when there was a field in a secure note.
    
    Confusingly, this field was called "Note" (unlike the actual
    name, "Notes").  Rename "Note" to "Field" in order to clear up
    this confusion a bit.
    
    I verified that the original case will still fail on the original
    code, whether named Field or Note.
    
    Signed-off-by: Bob Copeland <copeland@lastpass.com>
    Bob Copeland committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    95f74f8 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2018

  1. Update README.md for installing lastpass cli on Debian

    Reordered the Ubuntu and Debian section.
    Use apt instead of apt-get: https://itsfoss.com/apt-vs-apt-get-difference/
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    d8b2a1c View commit details
    Browse the repository at this point in the history
  2. Set action on lpass help preventing a fallthrough

    See: https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
    
    This changeset changes the 'lpass help` command return code, as it now returns
    0. The old behaviour was to return an error code of 1. I don't think a
    program should return an error state when requesting the help.
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    f2ea88e View commit details
    Browse the repository at this point in the history
  3. Add .editorconfig file

    All editors who support this will respect line endings, tabs, etc. It is
    awesome :)
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 16, 2018
    Configuration menu
    Copy the full SHA
    8686f64 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2018

  1. Add Dockerfile to create a clean build environment

    There are two Dockerfiles: 1) Dockerfile and 2) Dockerfile.dev
    
    The Dockerfile is the one which has the smallest image because
    everything is done in 1 RUN statement.
    
    The Dockerfile.dev is the one that may be easier for a developer. It
    caches the apt-get install phase so you don't need to rebuild everything
    from scratch if you are testing your changes. And it doesn't delete the
    build artifacts so you can hop into the container and see what is left
    behind.
    
    The next step would be to create a Debian/Ubuntu package based of this
    Docker image. I'll leave that as a TODO for now :)
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 31, 2018
    Configuration menu
    Copy the full SHA
    bf484f2 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2018

  1. Missing dependency in readme.

    Signed-off-by: Andras Rutkai <andras.rutkai@logmein.com>
    rutkai committed Apr 6, 2018
    Configuration menu
    Copy the full SHA
    a8bcc6d View commit details
    Browse the repository at this point in the history

Commits on May 7, 2018

  1. Merge pull request lastpass#387 from waterkip/dockerize-lastpass-build

    Add Dockerfile to create a clean build environment.
    rutkai committed May 7, 2018
    Configuration menu
    Copy the full SHA
    3545a4f View commit details
    Browse the repository at this point in the history

Commits on May 16, 2018

  1. Revert "pins: remove GlobalSign R1/R3 pins"

    This reverts commit 46e2a0f.
    Bob Copeland committed May 16, 2018
    1 Configuration menu
    Copy the full SHA
    b888411 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2018

  1. Merge pull request lastpass#410 from bcopeland/master

    Revert "pins: remove GlobalSign R1/R3 pins"
    rutkai committed May 17, 2018
    Configuration menu
    Copy the full SHA
    6a941d6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#385 from waterkip/fresh-install-debian-te…

    …sting
    
    Set action on lpass help preventing a fallthrough (fixes lastpass#386)
    rutkai committed May 17, 2018
    Configuration menu
    Copy the full SHA
    627a06e View commit details
    Browse the repository at this point in the history
  3. Preparing release 1.3.1

    Signed-off-by: Andras Rutkai <andras.rutkai@logmein.com>
    rutkai committed May 17, 2018
    Configuration menu
    Copy the full SHA
    2e89a38 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2018

  1. Running 'make test' fails on OpenBSD.

    Running 'make test' on OpenBSD results in sporadicaly, random tests
    failing. Cause is always the same; a segmentation fault in lpass-test.
    Root cause is strange string magic in config.c.
    
    Signed-off-by: Björn Ketelaars <bjorn.ketelaars@hydroxide.nl>
    bket committed May 18, 2018
    Configuration menu
    Copy the full SHA
    8d84683 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2018

  1. Bump version to 1.3.2

    The git repo contains the latest release which will be 1.3.2. This makes
    it easier for others to install the sources from git and know that they
    aren't running the previous version.
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Jun 11, 2018
    Configuration menu
    Copy the full SHA
    7e9f853 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2018

  1. Merge pull request lastpass#411 from bket/fix_make_test_openbsd

    Running 'make test' fails on OpenBSD.
    rutkai committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    129e434 View commit details
    Browse the repository at this point in the history
  2. Update dependencies for Debian stable/testing

    I've also updated the README.md to reflect some changes for Ubuntu 18.04
    as these are now the same as for Debian testing.
    
    Closes: (GH lastpass#415)
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    07d7213 View commit details
    Browse the repository at this point in the history
  3. add lastpass attachment export script

    Signed-off-by: Lukas Elsner <mail@lukaselsner.de>
    u222471 committed Jun 12, 2018
    Configuration menu
    Copy the full SHA
    1fe3115 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2018

  1. add getopts, usage and some optimizations

    Signed-off-by: Lukas Elsner <mail@lukaselsner.de>
    
    Signed-off-by: Lukas Elsner <mail@lukaselsner.de>
    u222471 committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    3e8f2d5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#417 from waterkip/debian-based

    Update dependencies for Debian stable/testing
    rutkai committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    f489db1 View commit details
    Browse the repository at this point in the history
  3. remove some debug statement

    Signed-off-by: Lukas Elsner <mail@lukaselsner.de>
    
    Signed-off-by: Lukas Elsner <mail@lukaselsner.de>
    u222471 committed Jun 14, 2018
    Configuration menu
    Copy the full SHA
    0cef341 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2018

  1. Merge pull request lastpass#418 from waterkip/version-bump

    Bump version to 1.3.2
    rutkai committed Jun 15, 2018
    Configuration menu
    Copy the full SHA
    df182dd View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2019

  1. Added an error message for not having a CSV header on import

    Signed-off-by: Judd Montgomery <judd@engineer.com>
    juddmon committed Feb 12, 2019
    Configuration menu
    Copy the full SHA
    f0f4e83 View commit details
    Browse the repository at this point in the history

Commits on Feb 13, 2019

  1. Merge pull request lastpass#424 from juddmon/master

    Added an error message for not having a CSV header on import by Judd Montgomery
    GPaulovics committed Feb 13, 2019
    Configuration menu
    Copy the full SHA
    b2095ad View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2019

  1. Different package names in Xenial

    Just Ubuntu things™
    
    Signed-off-by: Nicholas Timkovich <prometheus235@gmail.com>
    nicktimko authored and Nick Timkovich committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    2a5dacf View commit details
    Browse the repository at this point in the history
  2. usage: use basename(argv[0])

    Fixes this potential ugliness in some setups:
    
    before
    ------
    
      Usage:
    	/run/current-system/sw/bin/lpass {--help|--version}
    	/run/current-system/sw/bin/lpass login ....
    
    after
    -----
    
      Usage:
    	lpass {--help|--version}
    	lpass login ....
    
    Signed-off-by: William Casarin <jb55@jb55.com>
    jb55 committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    4161de9 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2019

  1. Merge pull request lastpass#476 from jb55/basename-usage

    usage: use basename(argv[0])
    GPaulovics committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    42a8081 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#425 from nicktimko/patch-1

    Different package names in Xenial
    GPaulovics committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    c9c9d8f View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2019

  1. readme: home-brew formula doesn’t have --with-pinentry option.

    Signed-off-by: Thomas Haggett <thomas@freeagent.com>
    Thomas Haggett committed Mar 8, 2019
    Configuration menu
    Copy the full SHA
    98392ac View commit details
    Browse the repository at this point in the history
  2. Create subdirectories when determining config path

    If a config file name is provided to `config_path_for_type` that
    contains `/`, create the required subdirectories to allow
    subsequent creation of this file by the caller.
    
    Fixes lastpass#265
    
    Signed-off-by: Tom Sullivan <tom@msbit.com.au>
    msbit committed Mar 8, 2019
    Configuration menu
    Copy the full SHA
    46fc80a View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Merge pull request lastpass#452 from msbit/265-lastpass-cli

    lpass now creates directories in config path under lpass if they do not exist by @msbit
    GPaulovics committed Mar 11, 2019
    Configuration menu
    Copy the full SHA
    594570b View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2019

  1. Include libgen.h for BSD builds

    Signed-off-by: Tom Sullivan <tom@msbit.com.au>
    msbit committed Mar 12, 2019
    Configuration menu
    Copy the full SHA
    79226a6 View commit details
    Browse the repository at this point in the history
  2. Install bash-completions in PREFIX dir structure

    The problem is that the bash completion dir uses a different prefix when
    found by pkg-config. If the prefix is the same, all is well, otherwise
    users end up looking for a different location and may suffer from
    permissions denied errors.
    
    This changeset fixes this by regex replacing the prefix of the bash
    completion directory path.
    This changeset includes a change to the lookup method for pkg-config
    vars. It has been changed to reflect the API of FindPkgConfig. There are
    a lot of if-statements added to check which version of CMake is used.
    This may not be needed, but.. this will help any upgrade to CMake 3.4
    and up. After which most of the code that has been introduced by the
    changeset can be removed \o/.
    
    Fixes: lastpass#478
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 12, 2019
    1 Configuration menu
    Copy the full SHA
    0431052 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. Merge pull request lastpass#480 from joshado/brew_install

    readme: home-brew formula doesn’t have `--with-pinentry` option.
    GPaulovics committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    5943be9 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#481 from msbit/bsd-basename

    Include `libgen.h` for BSD builds
    GPaulovics committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    858db57 View commit details
    Browse the repository at this point in the history
  3. Merge pull request lastpass#483 from waterkip/lastpassgh-478-bash-com…

    …pletions
    
    Install bash-completions in PREFIX dir structure
    GPaulovics committed Mar 13, 2019
    Configuration menu
    Copy the full SHA
    8d91585 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2019

  1. Generate version.h file

    In order to prevent weird version discussions (see lastpass#481 for such an
    example) this changeset tries to do versioning the same way as the git
    project does this.
    
    Some caveats apply:
    
      1) Maintainers *must* use annotated tags. Release 1.3.1 is not
         annotated for example.
    
      2) Maintainers *must* can use a `version` file in the repo to override
         any logic. This will generate a "static" version.
    
      3) Maintainers *must* bump the version in `LASTPASS-VERSION-GEN` after
         a release.
    
    Some benefits apply too:
    
      1) We can see clearly at which version the client was build
      2) We can see if it was a "dirty" build
    
       ```
       $ lpass --version
       LastPass CLI v1.3.0.34.g5bf38bc.dirty
       ```
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 14, 2019
    Configuration menu
    Copy the full SHA
    fe69be7 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2019

  1. Remove memory leak in config_path_for_type

    Replace repeated calls to `xasprintf` with calls to `xstrappendf`,
    thus not repeatedly reallocating memory, only one instance of
    which will be freed.
    
    Signed-off-by: Tom Sullivan <tom@msbit.com.au>
    msbit committed Mar 15, 2019
    Configuration menu
    Copy the full SHA
    a6dba10 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2019

  1. Link against Brew CURL under macOS

    If building on macOS, add the appropriate PKG_CONFIG_PATH to the
    environment to hint to the `FindCURL` module to look for that one
    first.
    
    Fixes lastpass#427
    
    Signed-off-by: Tom Sullivan <tom@msbit.com.au>
    msbit committed Mar 16, 2019
    Configuration menu
    Copy the full SHA
    a638245 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2019

  1. Merge pull request lastpass#486 from msbit/config-path-for-type-mem-leak

    Remove memory leak in `config_path_for_type` by @msbit
    GPaulovics committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    f1e088a View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#485 from waterkip/auto-gen-version

    Generate version.h file by @waterkip
    GPaulovics committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    9019546 View commit details
    Browse the repository at this point in the history
  3. Merge pull request lastpass#487 from msbit/apple-brew-curl

    Link against Brew CURL under macOS by @msbit
    GPaulovics committed Mar 19, 2019
    Configuration menu
    Copy the full SHA
    d1e408f View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2019

  1. Force IPv4 for every curl call made to lastpass API servers

    Users with IPv6 enabled report slowness due to IPv6. The default of Curl
    is to look at both IPv6 and IPv4. This quickfix makes it possible for
    users to not experience these issues. We may need to do this differently
    by enabling lpass -4 to force IPv4 and -6 for v6.
    
    Fixes: lastpass#440, lastpass#475
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 20, 2019
    Configuration menu
    Copy the full SHA
    570f81c View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#488 from waterkip/lastpassgh-440-quickfix

    Force IPv4 for every curl call made to lastpass API servers by @waterkip
    GPaulovics committed Mar 20, 2019
    Configuration menu
    Copy the full SHA
    5531e25 View commit details
    Browse the repository at this point in the history
  3. version.h: do not update the modification timestamp on every single run

    The LASTPASS-VERSION-GEN script was copied from another project that
    used an entirely different format to generate a Makefile include. As a
    result, it always considered the file out of date, and always remade it,
    thereby causing `make && sudo make install` to rebuild many files and
    relink the executable during the install step.
    
    Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
    eli-schwartz committed Mar 20, 2019
    Configuration menu
    Copy the full SHA
    86e6da9 View commit details
    Browse the repository at this point in the history
  4. make: don't require using make, as it is a compat wrapper for cmake

    Running part of the build process in the toplevel Makefile means that
    users are forbidden to use cmake directly in order to get more control
    over the cmake arguments, and are also forbidden to use alternative
    cmake backends without having the Make program installed.
    
    It also causes unpredictable issues that must be worked around by every
    downstream consumer, when the established cmake build process that is
    supposed to work, aborts with:
    
    /build/lastpass-cli-git/src/lastpass-cli/blob.c:42:10: fatal error: version.h: No such file or directory
     #include "version.h"
              ^~~~~~~~~~~
    compilation terminated.
    
    Fixes eli-schwartz/pkgbuilds#12
    
    Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
    eli-schwartz committed Mar 20, 2019
    Configuration menu
    Copy the full SHA
    5136ac9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32162b5 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2019

  1. Merge pull request lastpass#490 from eli-schwartz/fix-cmake

    make: don't require using make, as it is a compat wrapper for cmake by @eli-schwartz
    GPaulovics committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    f5ad720 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#489 from waterkip/changelog

    Update CHANGELOG.md for a new release
    GPaulovics committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    95d7eeb View commit details
    Browse the repository at this point in the history
  3. Updated CHANGELOG

    GPaulovics committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    60d9968 View commit details
    Browse the repository at this point in the history
  4. Be able to run cmake with cmake 3.7 and less

    The CMakelist.txt uses VERSION_GREATER_EQUAL which isn't supported
    until CMake 3.7. Use VERSION_LESS (which is around in 3.02) instead.
    
    Fixes: lastpass#492
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    162f058 View commit details
    Browse the repository at this point in the history
  5. Remove version generation from Makefile

    Since the cmake takes care of this we don't need to have it in the
    Makefile anymore
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 22, 2019
    Configuration menu
    Copy the full SHA
    23d8936 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2019

  1. Merge pull request lastpass#494 from waterkip/remove-makefile

    Remove version generation from Makefile by @waterkip
    GPaulovics committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    9cda11d View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#493 from waterkip/lastpassgh-492-ubuntu_x…

    …enial_build
    
    Be able to run cmake with cmake 3.7 and lessby @waterkip
    GPaulovics committed Mar 25, 2019
    Configuration menu
    Copy the full SHA
    f38eb66 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2019

  1. Decrease the time for the cli app to do things

    When the local blob version and the remote version are the same skip
    downloading a new blob and just continue with the current blob.
    This could potentially shave 300ms (or more, I've seen close to 2
    seconds in my browser) when the blob hasn't been updated on the remote
    side.
    
    There is still a small performance hit on `login_check.php` but I
    cannot think of logical ways why we would increase the timeout, the 5
    seconds that is place now make sense to me as you want to display
    things. Maybe there should be a post action on any command that has
    `--sync=auto` so subsequent calls have a blob in sync and would cause
    slowness of the CLI app.
    
    Fixes: lastpass#475
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 26, 2019
    Configuration menu
    Copy the full SHA
    df90a4a View commit details
    Browse the repository at this point in the history
  2. Refactor blob_load

    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 26, 2019
    Configuration menu
    Copy the full SHA
    37800a9 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2019

  1. Merge pull request lastpass#491 from waterkip/lastpassgh-475-decrease…

    …_display_time
    
    Decrease the time for the cli app to do things by @waterkip
    GPaulovics committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    81ed15c View commit details
    Browse the repository at this point in the history
  2. Fix bug where logout requires login

    `lpass status` asks the agent to see if we are logged in or not. The
    code for the logout bit checks the session and if a session has gone
    stale it want to refresh it. Implement a similar logic as in
    cmd-status.c where we ask the agent if we have a session, if we do,
    proceed as always, else, wipe all the session data that we can find.
    This removes the if-logic in session kill, to delete all config files
    even if they for whatever reason do not exist. Since we want to kill it,
    it seems logical to ignore these missing files.
    
    Fixes: lastpass#477
    
    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    0bb0f29 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2019

  1. Merge pull request lastpass#496 from waterkip/lastpassgh-477-logout_s…

    …hould_not_require_a_login
    
    Fix bug where logout requires login by @waterkip
    GPaulovics committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    b838abc View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2019

  1. Fix non-default PKG_CONFIG_PATH on macOS

    PKG_CONFIG_PATH shouldn't be reset, only appended to or prepended to, so
    that the user can still use non-default paths if they need to.
    Additionally, package managers other than Homebrew (such as Nix) still
    need to be able to provide their own versions of packages, and aren't
    going to use Homebrew's default path to do so.
    
    Signed-off-by: Alyssa Ross <hi@alyssa.is>
    alyssais committed Apr 10, 2019
    Configuration menu
    Copy the full SHA
    685bccc View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2019

  1. Merge pull request lastpass#503 from alyssais/pkg_config_path

    Fix non-default PKG_CONFIG_PATH on macOS by @alyssais
    GPaulovics committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    d1eba80 View commit details
    Browse the repository at this point in the history
  2. Prepare for 1.3.3 release

    GPaulovics committed Apr 15, 2019
    Configuration menu
    Copy the full SHA
    a84aa96 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2019

  1. Change credits to Wesley Schwengle for 1.3.3 release

    Signed-off-by: Wesley Schwengle <wesley@schwengle.net>
    waterkip committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    6ceb824 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#504 from waterkip/gh-take-credits

    Change credits to Wesley Schwengle for 1.3.3 release
    GPaulovics committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    81b9889 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f0c345c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    afd66ad View commit details
    Browse the repository at this point in the history
  5. Merge pull request lastpass#505 from waterkip/agent-rewrite

    Refactor agent.c for socket initialisation by @waterkip
    GPaulovics committed Apr 16, 2019
    Configuration menu
    Copy the full SHA
    d318aac View commit details
    Browse the repository at this point in the history

Commits on May 2, 2019

  1. Merge pull request lastpass#419 from mindrunner/master

    add lastpass attachment export script by @mindrunner
    GPaulovics committed May 2, 2019
    Configuration menu
    Copy the full SHA
    2a70884 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2019

  1. clipboard: add wl-copy support

    wl-copy appears to have become the de-facto standard command line
    program for copying to the clipboard on Wayland, with multiple
    implementations of the same interface[1][2].
    
    I think it makes sense for wl-copy to be preferred over xclip if both
    are installed, since Wayland should generally be preferred over X11.
    
    [1]: https://github.com/bugaevc/wl-clipboard
    [2]: https://github.com/YaLTeR/wl-clipboard-rs
    
    Signed-off-by: Alyssa Ross <hi@alyssa.is>
    alyssais committed Jul 8, 2019
    Configuration menu
    Copy the full SHA
    3fb46d0 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2019

  1. Update README for 2019

    ondrejfuhrer committed Jul 26, 2019
    Configuration menu
    Copy the full SHA
    448c9ae View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2019

  1. Add MFA support for Microsoft Authenticator

    MS Authenticator is currently incompatible with this tool (lastpass#442). I noticed that MFA errors are mapped in an array of `multifactor_type`, which I've updated with the appropriate error codes for MS Authenticator (tested running through a debugger).
    
    Signed-off-by: John Hammerlund johnhammerlund@gmail.com
    johnhammerlund committed Aug 22, 2019
    Configuration menu
    Copy the full SHA
    95c050f View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2019

  1. Merge pull request lastpass#514 from alyssais/wl-copy

    clipboard: add wl-copy support
    GPaulovics committed Sep 4, 2019
    Configuration menu
    Copy the full SHA
    75bdb19 View commit details
    Browse the repository at this point in the history
  2. Merge pull request lastpass#516 from ondrejfuhrer/ondrejfuhrer-readme…

    …-patch
    
    Update README for 2019
    GPaulovics committed Sep 4, 2019
    Configuration menu
    Copy the full SHA
    8eafbc7 View commit details
    Browse the repository at this point in the history
  3. Merge pull request lastpass#522 from johnhammerlund/bugfix/microsoft-mfa

    Add MFA support for Microsoft Authenticator
    GPaulovics committed Sep 4, 2019
    Configuration menu
    Copy the full SHA
    8767b5e View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2020

  1. Fix sed for POSIX compliance.

    Signed-off-by: Filippo Rossi <filippo.rossi@mailbox.org>
    frossi-git committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    6b92cda View commit details
    Browse the repository at this point in the history