]>
diplodocus.org Git - nmh/blob - sbr/ruserpass.h
1 /* ruserpass.h -- parse .netrc-format file.
3 * Portions of this code are
4 * Copyright (c) 1985 Regents of the University of California.
7 * Redistribution and use in source and binary forms are permitted
8 * provided that the above copyright notice and this paragraph are
9 * duplicated in all such forms and that any documentation,
10 * advertising materials, and other materials related to such
11 * distribution and use acknowledge that the software was developed
12 * by the University of California, Berkeley. The name of the
13 * University may not be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19 * Portions of this code are Copyright (c) 2017, by the authors of
20 * nmh. See the COPYRIGHT file in the root directory of the nmh
21 * distribution for complete copyright information. */
24 * Read our credentials file and (optionally) ask the user for anything
29 * host - Hostname (to scan credentials file)
30 * aname - Pointer to filled-in username
31 * apass - Pointer to filled-in password
32 * flags - One or more of RUSERPASS_NO_PROMPT_USER,
33 * RUSERPASS_NO_PROMPT_PASSWORD
35 void ruserpass(const char *, char **, char **, int);
37 #define RUSERPASS_NO_PROMPT_USER 0x01
38 #define RUSERPASS_NO_PROMPT_PASSWORD 0x02