generate*Password functions now return int error codes, and take password as an argument of char**.