getpass.h File Reference

Header for getpass.c. More...

#include "lib/cc/torint.h"

Go to the source code of this file.


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.