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.
 
 
 
 
 
 

37 lines
966 B

  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. #include <apt-pkg/macros.h>
  15. #ifndef APT_8_CLEANER_HEADERS
  16. #include <apt-pkg/strutl.h>
  17. #endif
  18. #ifndef APT_15_CLEANER_HEADERS
  19. #define DOT_CHAR "."
  20. #define DIR_CHAR "/"
  21. #endif
  22. class URI;
  23. class FileFd;
  24. APT_DEPRECATED_MSG("Use FileFd-based MaybeAddAuth instead")
  25. void maybe_add_auth(URI &Uri, std::string NetRCFile);
  26. bool MaybeAddAuth(FileFd &NetRCFile, URI &Uri);
  27. #endif