Simple implementation of lesspass in C.
- C 94.1%
- Makefile 4.2%
- Scheme 1.7%
|
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. |
||
|---|---|---|
| LICENSE | Use size_t for lengths and complete Makefile. | |
| lpass.c | Cleanup and copy add_charset() function back into make_charset(). | |
| Makefile |
Makefile: Add LIBS variable and fix the sanitize target.
|
|
| manifest.scm | Added Guix manifest file and new make target. | |
| README.md | Remove VLAs, rename functions, consolidate style. | |
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.