File: authorize.c.texi

package info (click to toggle)
shishi 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 22,144 kB
  • ctags: 7,865
  • sloc: ansic: 61,153; sh: 12,212; yacc: 1,219; makefile: 1,164; perl: 624; sed: 16
file content (27 lines) | stat: -rw-r--r-- 1,019 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
@subheading shishi_authorization_parse
@anchor{shishi_authorization_parse}
@deftypefun {int} {shishi_authorization_parse} (const char * @var{authorization})
@var{authorization}: name of authorization type, e.g. "basic".

Parse authorization type name.

@strong{Return value:} Return authorization type corresponding to a string.
@end deftypefun

@subheading shishi_authorized_p
@anchor{shishi_authorized_p}
@deftypefun {int} {shishi_authorized_p} (Shishi * @var{handle}, Shishi_tkt * @var{tkt}, const char * @var{authzname})
@var{handle}: shishi handle as allocated by @code{shishi_init()}.

@var{tkt}: input variable with ticket info.

@var{authzname}: authorization name.

Simplistic authorization of @code{authzname} against encrypted client
principal name inside ticket.  Currently this function only compare
the principal name with @code{authzname} using @code{strcmp()}.

@strong{Return value:} Returns 1 if authzname is authorized for services by
authenticated client principal, or 0 otherwise.
@end deftypefun