diff options
Diffstat (limited to 'vchat-tls.c')
-rwxr-xr-x | vchat-tls.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vchat-tls.c b/vchat-tls.c index 187f10b..d2f3b01 100755 --- a/vchat-tls.c +++ b/vchat-tls.c | |||
@@ -573,7 +573,11 @@ int vc_tls_connect(int serverfd, vc_x509store_t *vc_store) { | |||
573 | vc_store->askpass_callback(password_buf, sizeof(password_buf), 0, NULL); | 573 | vc_store->askpass_callback(password_buf, sizeof(password_buf), 0, NULL); |
574 | password = password_buf; | 574 | password = password_buf; |
575 | } | 575 | } |
576 | #if defined(__linux__) || defined(__OpenBSD__) | ||
577 | explicit_bzero(password_buf, sizeof(password_buf)); | ||
578 | #else | ||
576 | memset_s(password_buf, sizeof(password_buf), 0, sizeof(password_buf)); | 579 | memset_s(password_buf, sizeof(password_buf), 0, sizeof(password_buf)); |
580 | #endif | ||
577 | writecf(FS_SERV, "[CLIENT KEY LOADED ]"); | 581 | writecf(FS_SERV, "[CLIENT KEY LOADED ]"); |
578 | 582 | ||
579 | #if MBEDTLS_VERSION_MAJOR == 3 && MBEDTLS_VERSION_MINOR == 0 | 583 | #if MBEDTLS_VERSION_MAJOR == 3 && MBEDTLS_VERSION_MINOR == 0 |