File: auth.h

package info (click to toggle)
fdclone 3.01j-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,804 kB
  • sloc: ansic: 100,952; makefile: 4,507; sh: 2,230; sed: 232
file content (30 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 *	auth.h
 *
 *	definitions & function prototype declarations for "auth.c"
 */

#include "url.h"

#ifndef	__AUTH_H_
#define	__AUTH_H_

#define	AUTHNOFILE		16
#define	AUTHBASIC		"Basic"
#define	AUTHDIGEST		"Digest"

typedef struct _auth_t {
	urlhost_t host;
	int type;
	int nlink;
} auth_t;

char *authgetuser __P_((VOID_A));
char *authgetpass __P_((VOID_A));
int authfind __P_((urlhost_t *, int, int));
VOID authentry __P_((urlhost_t *, int));
VOID authfree __P_((VOID_A));
char *authencode __P_((urlhost_t *,
		CONST char *, CONST char *, CONST char *));

#endif	/* !__AUTH_H_ */