netrc.h 1005 B

12345678910111213141516171819202122232425262728293031323334
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: netrc.h,v 1.11 2004/01/07 09:19:35 bagder Exp $
  4. /* ######################################################################
  5. netrc file parser - returns the login and password of a give host in
  6. a specified netrc-type file
  7. Originally written by Daniel Stenberg, <daniel@haxx.se>, et al. and
  8. placed into the Public Domain, do with it what you will.
  9. ##################################################################### */
  10. /*}}}*/
  11. #ifndef NETRC_H
  12. #define NETRC_H
  13. #include <string>
  14. #ifndef APT_8_CLEANER_HEADERS
  15. #include <apt-pkg/strutl.h>
  16. #endif
  17. #define DOT_CHAR "."
  18. #define DIR_CHAR "/"
  19. class URI;
  20. // kill this export on the next ABI break - strongly doubt its in use anyway
  21. // outside of the apt itself, its really a internal interface
  22. __deprecated int parsenetrc (char *host, char *login, char *password, char *filename);
  23. void maybe_add_auth (URI &Uri, std::string NetRCFile);
  24. #endif