aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* libnpass/util/util_strtrim: safely handle 0 length C stringssinanmohd2024-04-161-1/+2
|
* libnpass/util: refactorsinanmohd2024-04-152-20/+25
| | | | | | | | https://www.kernel.org/doc/html/v4.10/process/coding-style.html - Function return values and names (-Exxx = failure, 0 = success) for imperative commands (0 = failure, non-zero = success) for predicates
* libnpass/gpg: refactorsinanmohd2024-04-152-35/+68
| | | | | | | | | | https://www.kernel.org/doc/html/v4.10/process/coding-style.html - Centralized exiting of functions (goto cleanup) - Function return values and names (-Exxx = failure, 0 = success) for imperative commands (0 = failure, non-zero = success) for predicates - avoid macros that affect control flow
* c: properly handle return value of snprintfsinanmohd2024-04-123-28/+28
|
* libnpass: improve backward compatibility with original passsinanmohd2024-04-111-0/+16
|
* c: check string truncation when using snprintfsinanmohd2024-04-113-9/+16
|
* libnpass/util: fix off by one errorsinanmohd2024-04-111-2/+2
|
* c/format: initsinanmohd2024-04-114-86/+92
|
* meson/test/npass: initsinanmohd2024-04-111-1/+3
|
* libnpass/gpg: make key a NULL-terminated arraysinanmohd2024-04-111-6/+6
| | | | | | | | | | GPGME_DEBUG to the rescue. this bug caused pass gen and add to fail when building with gcc and optimization set to anything other than 0. https://www.gnupg.org/documentation/manuals/gpgme/Encrypting-a-Plaintext.html > Function: gpgme_error_t gpgme_op_encrypt ... > ... > recp must be a NULL-terminated array of keys
* c: wrap multi line macros inside do whilesinanmohd2024-04-101-5/+7
| | | | https://man.openbsd.org/style
* npass/gen: only append newline if stdout isattysinanmohd2024-04-101-1/+1
|
* libnpass: define PASS_DEF_LENsinanmohd2024-04-101-1/+1
|
* npass/help: follow bsd style usage patternssinanmohd2024-04-101-12/+13
| | | | https://man.openbsd.org/style
* c: declare local functions as staticsinanmohd2024-04-103-26/+26
|
* npass/ls: remove depth_state from args and make it staticsinanmohd2024-04-101-6/+7
|
* npass/main: better error repottingsinanmohd2024-04-101-1/+1
|
* libnpass/readstore_all/len: PATH_MAX -> 64sinanmohd2024-04-101-1/+2
|
* npass/ls/depth_state_len: NAME_MAX -> 16sinanmohd2024-04-101-3/+4
|
* src: avoid unnecessary sizeof() - 1sinanmohd2024-04-103-8/+8
|
* npass: better mimic behaviour of the original passsinanmohd2024-04-091-8/+17
|
* libnpass: better error messagessinanmohd2024-04-091-4/+10
|
* pass/ls: initsinanmohd2024-04-092-3/+238
|
* libnpass/pass_gen_t: PASS_GEN_PRINT -> PASS_GEN_GRAPHsinanmohd2024-04-081-5/+5
|
* libnpass/pass_gen_set/PASS_GEN_PRINT: add missing upper alphabetsinanmohd2024-04-071-0/+1
|
* libnpass/pass_gen_t: PASS_GEN_ALPHA -> PASS_GEN_ALNUMsinanmohd2024-04-071-1/+1
|
* pass/gen: initsinanmohd2024-04-072-1/+86
|
* util: refactor error reportingsinanmohd2024-04-074-53/+54
|
* meson: split ./includesinanmohd2024-04-064-5/+8
|
* meson: keep source files under ./srcsinanmohd2024-04-066-0/+550