]> ruderich.org/simon Gitweb - nsscash/nsscash.git/log
nsscash/nsscash.git
5 years agoREADME: add requirements and usage instructions
Simon Ruderich [Sat, 8 Jun 2019 14:26:17 +0000 (16:26 +0200)]
README: add requirements and usage instructions

5 years agoMakefile: run all and clean in nss/ as well
Simon Ruderich [Sat, 8 Jun 2019 13:57:23 +0000 (15:57 +0200)]
Makefile: run all and clean in nss/ as well

This way a single `make all` builds the whole project.

5 years agoMakefile: add test target
Simon Ruderich [Sat, 8 Jun 2019 13:55:58 +0000 (15:55 +0200)]
Makefile: add test target

5 years agonsscache: add comment
Simon Ruderich [Sat, 8 Jun 2019 13:54:35 +0000 (15:54 +0200)]
nsscache: add comment

5 years agonss: tests: fix typo in comment
Simon Ruderich [Sat, 8 Jun 2019 13:51:44 +0000 (15:51 +0200)]
nss: tests: fix typo in comment

5 years agonsscash: use WriteByte() instead of Write() with cast
Simon Ruderich [Sat, 8 Jun 2019 13:50:34 +0000 (15:50 +0200)]
nsscash: use WriteByte() instead of Write() with cast

Less to type and easier to read.

The old solution used '0' to pad instead 0. This isn't an issue as these
bytes are not used. But fix it as well.

5 years agonsscash: improve index sanity check
Simon Ruderich [Sat, 8 Jun 2019 13:49:55 +0000 (15:49 +0200)]
nsscash: improve index sanity check

This ensures that the index has the proper size and is not missing any
entries.

5 years agoAdd support for group files
Simon Ruderich [Sat, 8 Jun 2019 13:49:33 +0000 (15:49 +0200)]
Add support for group files

5 years agonsscash: go fmt
Simon Ruderich [Sat, 8 Jun 2019 12:34:52 +0000 (14:34 +0200)]
nsscash: go fmt

5 years agonsscash: add support to convert plain files
Simon Ruderich [Sat, 8 Jun 2019 12:33:58 +0000 (14:33 +0200)]
nsscash: add support to convert plain files

For plain files this is just a copy. But it prepares for conversion of
other types in the future.

5 years agonss: add tests
Simon Ruderich [Sat, 8 Jun 2019 12:06:55 +0000 (14:06 +0200)]
nss: add tests

These also test large parts of the Go code.

5 years agonss: move NSS function definitions to separate header
Simon Ruderich [Sat, 8 Jun 2019 11:17:36 +0000 (13:17 +0200)]
nss: move NSS function definitions to separate header

Documents which functions we provide and will be used for tests in the
future.

5 years agonss: Makefile: inline library flags
Simon Ruderich [Sat, 8 Jun 2019 11:06:04 +0000 (13:06 +0200)]
nss: Makefile: inline library flags

We want to build programs in the future which will conflict with -shared
-fPIC.

5 years agonsscash: add "convert" sub-command
Simon Ruderich [Sat, 8 Jun 2019 10:51:32 +0000 (12:51 +0200)]
nsscash: add "convert" sub-command

Permits manually converting a file without having to fetch it from a
webserver.

5 years agonsscash: remove a few empty lines
Simon Ruderich [Sat, 8 Jun 2019 10:41:01 +0000 (12:41 +0200)]
nsscash: remove a few empty lines

5 years agonsscash: go fmt
Simon Ruderich [Sat, 8 Jun 2019 10:40:35 +0000 (12:40 +0200)]
nsscash: go fmt

5 years agonsscash: add "fetch" sub-command for the default action
Simon Ruderich [Sat, 8 Jun 2019 10:39:55 +0000 (12:39 +0200)]
nsscash: add "fetch" sub-command for the default action

In preparation for more sub-commands in the future.

5 years agoFirst working version
Simon Ruderich [Sat, 8 Jun 2019 10:24:27 +0000 (12:24 +0200)]
First working version

Supports only /etc/passwd at the moment.

5 years agoInitial commit
Simon Ruderich [Sat, 8 Jun 2019 08:28:39 +0000 (10:28 +0200)]
Initial commit