 c7fa6c77ef
			
		
	
	c7fa6c77ef
	
	
	
		
			
			<hin@stacken.kth.se> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9998 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			39 lines
		
	
	
		
			874 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			874 B
		
	
	
	
		
			Groff
		
	
	
	
	
	
| .\" Copyright (c) 2001 Kungliga Tekniska Högskolan
 | |
| .\" $Id$
 | |
| .Dd Jan 21, 2001
 | |
| .Dt KRB5_CONTEXT 3
 | |
| .Os HEIMDAL
 | |
| .Sh NAME
 | |
| .Nm krb5_init_context ,
 | |
| .Nm krb5_free_context
 | |
| .Sh SYNOPSIS
 | |
| .Fd #include <krb5.h>
 | |
| .Ft krb5_error_code
 | |
| .Fn krb5_init_context "krb5_context *context"
 | |
| .Ft void
 | |
| .Fn krb5_free_context "krb5_context context"
 | |
| .Sh DESCRIPTION
 | |
| The
 | |
| .Fn krb5_init_context
 | |
| function initializes the
 | |
| .Fa context
 | |
| structure and reads the configration file
 | |
| .Pa /etc/krb5.conf .
 | |
| .Pp
 | |
| The structure should be freed by calling
 | |
| .Fn krb5_free_context
 | |
| when it is no longer being used.
 | |
| .Sh RETURN VALUES
 | |
| .Fn krb5_init_context
 | |
| returns 0 to indicate success.
 | |
| Otherwise an errno code is returned.
 | |
| Failure means either that something bad happened during initialization
 | |
| (typically
 | |
| .Bq ENOMEM )
 | |
| or that Kerberos should not be used
 | |
| .Bq ENXIO .
 | |
| .Sh SEE ALSO
 | |
| .Xr krb5_context 3 ,
 | |
| .Xr errno 2 ,
 | |
| .Xr kerberos 8
 |