aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-04-11 10:36:09 +0200
committerSamuel Fadel <samuel@nihil.ws>2023-04-11 10:36:09 +0200
commit33936a05ac14136491fd461e1c6beea0e5269161 (patch)
tree7eb96259473c582f79523f6bb09db9602195ad75 /README.md
parent3eb0ae9b58683cc59468e3f5b2e28163a722e11b (diff)
Added LICENSE and implemented charset restrictions.0.1
As per my usage, lpass is now complete. * LICENSE: Added. * README.md: Updated with more information. * lpass.c: Implemented charset restrictions.
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index e385979..a17b169 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,19 @@
# lpass
+A simple implementation of
+[lesspass](https://github.com/lesspass/lesspass) in C.
-A simple implementation of [lesspass](https://github.com/lesspass/lesspass) in C.
+# Memory safety disclaimers
+This implementation only uses dynamic memory allocation as implemented
+within 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 only on statically-allocated strings,
+while also using the versions whose limits can be specified (e.g.,
+`snprintf` versus `sprintf` and `strncpy` versus `strcpy`).
+
+This code uses variable-length array declarations for simplicity.
+
+# Dependencies
+A recent version of OpenSSL.