]> 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:54 +0000 (08:58 +0200)
commit66e6809c100b3755d538a410fb90c1772a9ef6c9
treeb89c89460159ee05aca0ffcea61a4284b3e93436
parentdb3974808181e300053bd37458adfb1706f4c91f
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)

(cherry picked from commit d52e92f835d8f64e207747cefe12cd1fc0423326)
test/bio_pw_callback_test.c