Function readpassphrase_buf

Source
pub fn readpassphrase_buf(
    prompt: &CStr,
    buf: Vec<u8>,
    flags: RppFlags,
) -> Result<String, Error>
Expand description

Reads a passphrase using readpassphrase(3) into the passed buffer. Returns a String consisting of the same memory from the buffer, or else zeroes the buffer on error.