]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor Password Variables to Use `const char[]` Arrays
authorerbsland-dev <github@erbsland.dev>
Sun, 1 Sep 2024 20:55:12 +0000 (22:55 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 9 Sep 2024 06:58:03 +0000 (08:58 +0200)
commitd52e92f835d8f64e207747cefe12cd1fc0423326
tree76b7390826119a0206cf119eff230583cc24f487
parent9808ccc53f066f5aedcd6ea847f790ea64e72e76
Refactor Password Variables to Use `const char[]` Arrays

- Converted password declaration from `char*` to `const char[]`.
- Updated `memcpy` and `return` statements accordingly to use `sizeof` instead of predefined lengths.
- Renamed `key_password` into `weak_password` to match test name.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25330)
test/bio_pw_callback_test.c