aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/clearPasswordFromCommandLine.h
blob: cf90fea1dc819ed5a44a311a8264d812340d0375 (plain) (blame)
1
2
3
4
5
6
#pragma once

/** If there are --password=... or --password ... arguments in command line, replace their values with zero bytes.
  * This is needed to prevent password exposure in 'ps' and similar tools.
  */
void clearPasswordFromCommandLine(int argc, char ** argv);