]> 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 07:01:11 +0000 (09:01 +0200)
commit95c08efda6c83a4b5cb77b2592093cd90ce5ab8e
treed95286a254a89e1e9c7768cb251a5ebd61ec838b
parent8b3ffcca532118b2aba150a3728cb2729979baec
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