File: auth.h

package info (click to toggle)
fdclone 3.01b-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 4,772 kB
  • ctags: 8,674
  • sloc: ansic: 100,552; makefile: 4,497; sh: 1,480; sed: 224
file content (30 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (4)
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_ */