S2OPC OPCUA Toolkit
|
A platform independent API to ask for passwords. More...
#include <stdbool.h>
Go to the source code of this file.
Macros | |
#define | SOPC_PASSWORD_MAX_LENGTH 128 |
Functions | |
bool | SOPC_AskPass_FromTerminal (char **outPassword) |
Ask for a password in an interactive and secure way from a console. The prompt is "Password:\n". More... | |
bool | SOPC_AskPass_CustomPromptFromTerminal (const char *prompt, char **outPassword) |
Ask for a password in an interactive and secure way from a console. Same as SOPC_AskPass_FromTerminal with a custom prompt. More... | |
A platform independent API to ask for passwords.
#define SOPC_PASSWORD_MAX_LENGTH 128 |
bool SOPC_AskPass_FromTerminal | ( | char ** | outPassword | ) |
Ask for a password in an interactive and secure way from a console. The prompt is "Password:\n".
outPassword | The newly allocated password, you should free it. |
bool SOPC_AskPass_CustomPromptFromTerminal | ( | const char * | prompt, |
char ** | outPassword | ||
) |
Ask for a password in an interactive and secure way from a console. Same as SOPC_AskPass_FromTerminal with a custom prompt.
prompt | The custom prompt to display waiting for password input |
outPassword | The newly allocated password, you should free it. |