aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add watcom CL to makeNicholas Tay2024-04-162-0/+5
| | | | | I got the crosscompile working from linux but ideally more changes coming to get it to work compiling from DOS/Win311 itself
* Only display pragma message on gcc or clangNicholas Tay2024-04-081-0/+2
| | | | This fixes compilation on older compilers, such as openwatcom
* Support win32 mingw cross-compile in makeNicholas Tay2024-04-062-1/+6
| | | | | Required a slight mod to Windows.h to be lower case so it works on Linux mingw. Turns out it's case-insensitive on Windows MSVC/MSYS.
* Let it leakNicholas Tay2024-04-061-31/+8
| | | | Short-lived program, let's just leave it to the OS!
* Use wincrypt on msys2Nicholas Tay2023-05-072-8/+5
| | | | | Not sure what I was using, this actually does work. Maybe I was just missing the package in the w32api headers in the past...
* Install on certain locations readmeNicholas Tay2023-03-221-0/+14
|
* Add version to app itselfv0.1.1Nicholas Tay2023-03-221-2/+7
|
* Batch script for Windows compilationNicholas Tay2022-01-162-1/+10
|
* Handle errors properly for wincryptNicholas Tay2022-01-161-6/+13
|
* Use portable exit return codesNicholas Tay2022-01-161-9/+6
|
* Update readmeNicholas Tay2022-01-141-1/+9
|
* Fix grammar caps generation on new grammarsNicholas Tay2022-01-141-6/+5
|
* Add --help itself to helpNicholas Tay2022-01-141-1/+2
|
* Fix direct grammar string passing invalid freeNicholas Tay2022-01-141-1/+2
|
* Add some more default grammar combosNicholas Tay2022-01-141-2/+17
|
* Add grammar mappings to help messageNicholas Tay2022-01-141-1/+5
| | | | | These should be quite useful since I forget what the mappings are sometimes, and maybe want to make a custom grammar.
* Split out classes into an array of custom structNicholas Tay2022-01-141-11/+24
| | | | | Would allow us to access in --help. Also just seems like a nicer way to store in case we need to extend it.
* Add help optionNicholas Tay2022-01-131-0/+13
|
* Fix + add error messageNicholas Tay2022-01-131-1/+2
|
* Allow 0 tripletsNicholas Tay2022-01-131-8/+5
|
* Use static buffers for regular password generationNicholas Tay2022-01-132-16/+25
| | | | | This is probably a micro-optimisation, but since that is partly the point of this random C project, let's do it :)
* Fix generation for number params (forgot grammar_size)Nicholas Tay2022-01-131-5/+5
|
* Run astyleNicholas Tay2022-01-111-2/+2
|
* .gitignore fix line endingsNicholas Tay2022-01-111-55/+55
|
* Fix potential invalid free on password ptrNicholas Tay2022-01-111-2/+3
|
* Add build instructions for Windows in readmeNicholas Tay2022-01-111-1/+15
|
* Add wincrypt support for RNG on WindowsNicholas Tay2022-01-111-25/+49
|
* Enforce unsigned int for RNG generationNicholas Tay2022-01-111-2/+2
| | | | Need this for it to work properly, I think with the mod
* Split out logic into nice functionsNicholas Tay2022-01-111-49/+71
|
* BSD support for getentropy()Nicholas Tay2022-01-111-3/+14
|
* Reorganise/remove unneeded includesNicholas Tay2022-01-111-1/+4
|
* Use getentropy on macOSNicholas Tay2022-01-111-3/+3
|
* Switch to getentropy C api (to port to macOS)Nicholas Tay2022-01-101-3/+2
|
* Fix tabs -> spacesNicholas Tay2022-01-101-2/+2
|
* Reindent config.hNicholas Tay2022-01-061-7/+9
|
* astyle + additional comments (+ to c89 style)Nicholas Tay2022-01-051-10/+22
| | | | https://gist.github.com/nicholastay/9eb6a455d6b17b810cd8e7bec2a5dfe7
* astyle K&RNicholas Tay2021-12-031-75/+75
|
* Print error messages to stderr insteadNicholas Tay2021-12-021-3/+2
|
* Needless import of unistd on LinuxNicholas Tay2021-12-021-2/+4
|
* Dynamically allocate password instead of using VLANicholas Tay2021-12-021-1/+16
| | | | | | | | | | This allows the code to compile with `cl` (MS Windows). Additionally allows massive passwords to be made more easily I suppose, as we aren't allocating (potentially dangerously) on the stack anymore. But, generation may be slightly slower due to allocation of memory. We could possibly have some statically allocated memory (e.g. 20 bytes) and if we go over then malloc().
* More explicit custom grammar flag for free()Nicholas Tay2021-12-021-2/+4
| | | | This also allows the program to be compiled with Clang.
* CRLF -> LFNicholas Tay2021-12-024-136/+136
|
* Less syscalls the better? Call getrandom() every generationNicholas Tay2021-12-021-6/+3
| | | | | Seems to hang every few executions if we getrandom one big chunk. Probably not enough entropy?
* Enforce C99Nicholas Tay2021-12-021-1/+1
|
* Add better RNG for LinuxNicholas Tay2021-12-021-3/+19
|
* Automatic commit of package [passgen] release [0.1.1-1].Nicholas Tay2021-12-012-4/+4
| | | | | | Created by command: /usr/bin/tito tag
* Ignore executable in gitignoreNicholas Tay2021-12-011-1/+4
|
* Fix VLA for password charsNicholas Tay2021-12-011-1/+2
| | | | | | I wasn't very clued in on how this works, and I thought it'd initialise properly, but clearly not. Need to include space for the null terminator and explicitly set it.
* Automatic commit of package [passgen] release [0.1.0-2].Nicholas Tay2021-12-012-2/+5
| | | | | | Created by command: /usr/bin/tito tag --keep-version
* RPM spec: add gcc, make to BuildRequiresNicholas Tay2021-12-011-0/+3
|