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