Implement getpass()
- Jul 23, 2024
-
-
Agoston Szepessy authored
Use u8 internally instead of `c_char`.
-
Agoston Szepessy authored
- Remove `stdio` functions and use `File` API completely. - Remove `unsafe` from wrapper function. - Move static buffer to `getpass()` instead of keeping it in wrapper.
-
Agoston Szepessy authored
Returns a Result for better error handling.
-
Agoston Szepessy authored
Also make fields in `termios` public; required for modifying them. There's an new type of test: `EXPECT_INPUT_BINS`. These require a `.exp` file to be present along with the `.c` file. The `.exp` file takes the produced binary as an argument and sends input to the program. This is useful for testing functions like `getpass()`.
-