apt: apt-pkg/contrib/netrc.h Source File

apt 3.3.0 commandline package manager

netrc.h
1// -*- mode: cpp; mode: fold -*-
2// SPDX-License-Identifier: GPL-2.0+
3// Description /*{{{*/
4/* ######################################################################
5
6 netrc file parser - returns the login and password of a give host in
7 a specified netrc-type file
8
9 This file had this historic note, but now includes further changes
10 under the GPL-2.0+:
11
12 Originally written by Daniel Stenberg, <daniel@haxx.se>, et al. and
13 placed into the Public Domain, do with it what you will.
14
15 ##################################################################### */
16 /*}}}*/
17#ifndef NETRC_H
18#define NETRC_H
19
20#include <string>
21
22#include <apt-pkg/macros.h>
23
24
25
26class URI;
27class FileFd;
28
29APT_PUBLIC bool MaybeAddAuth(FileFd &NetRCFile, URI &Uri);
30#endif
FileFd
Definition fileutl.h:43
URI
Definition strutl.h:221