A linux console tool to read the user and password from a $HOME/.netrc and outputs to stdout.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
900B

  1. /* ========================================================================== */
  2. /* @file: loginfo.hpp */
  3. /* @author: MicMun */
  4. /* @version: 1.0, 27.08.2019 */
  5. /* ========================================================================== */
  6. #include <string>
  7. #ifndef LOGIN_INFO_H
  8. #define LOGIN_INFO_H
  9. /* ========================================================================== */
  10. /* Typedefs */
  11. /* ========================================================================== */
  12. typedef struct {
  13. std::string machine;
  14. std::string user;
  15. std::string passwd;
  16. } LoginInfo;
  17. #endif
  18. /* =================================== EOF ================================== */