1
0
Fork
You've already forked lpass
0
Simple implementation of lesspass in C.
  • C 94.1%
  • Makefile 4.2%
  • Scheme 1.7%
Find a file
Samuel Matthiesen dbbd6ae903 Cleanup and copy add_charset() function back into make_charset().
The add_charset() function is no longer needed, as make_charset() no
longer has repeated checks copy-pasted, but a proper loop over all
charsets. This simplifies things a bit.
2026年06月17日 16:05:13 +02:00
LICENSE Use size_t for lengths and complete Makefile. 2023年04月11日 11:25:15 +02:00
lpass.c Cleanup and copy add_charset() function back into make_charset(). 2026年06月17日 16:05:13 +02:00
Makefile Makefile: Add LIBS variable and fix the sanitize target. 2026年06月17日 11:59:41 +02:00
manifest.scm Added Guix manifest file and new make target. 2023年04月19日 14:19:49 +02:00
README.md Remove VLAs, rename functions, consolidate style. 2026年06月16日 22:09:11 +02:00

lpass

A simple implementation of lesspass in C.

Memory safety disclaimers

This implementation only uses dynamic memory allocation indirecly through OpenSSL to handle big integers (BIGNUM in OpenSSL lingo). All allocations should be checked for success (non-NULL); please send a patch if you find that this is not the case. The same is true for the status of OpenSSL functions that return a status code.

String manipulation is done (i) only on statically-allocated strings and (ii) only using function variants whose buffer limits can be specified (e.g., snprintf versus sprintf and strncpy versus strcpy).

Dependencies

A recent version of OpenSSL.