tor  0.4.0.0-alpha-dev
Functions
getpass.h File Reference
#include "lib/cc/torint.h"

Go to the source code of this file.

Functions

ssize_t tor_getpass (const char *prompt, char *output, size_t buflen)
 

Detailed Description

Header for getpass.c.

Definition in file getpass.h.

Function Documentation

◆ tor_getpass()

ssize_t tor_getpass ( const char *  prompt,
char *  output,
size_t  buflen 
)

Emit the password prompt prompt, then read up to buflen bytes of passphrase into output. Return the number of bytes in the passphrase, excluding terminating NUL.

Definition at line 50 of file getpass.c.

References tor_assert().