Lots of random changes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1107 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
27
lib/krb5/auth_context.c
Normal file
27
lib/krb5/auth_context.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "krb5_locl.h"
|
||||
|
||||
krb5_error_code
|
||||
krb5_auth_con_init(krb5_context context,
|
||||
krb5_auth_context **auth_context)
|
||||
{
|
||||
krb5_auth_context *p;
|
||||
p = ALLOC(1, krb5_auth_context);;
|
||||
if(!p)
|
||||
return ENOMEM;
|
||||
memset(p, 0, sizeof(p));
|
||||
p->authenticator = ALLOC(1, krb5_authenticator);
|
||||
if (!p->authenticator)
|
||||
return ENOMEM;
|
||||
*auth_context = p;
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_error_code
|
||||
krb5_auth_con_free(krb5_context context,
|
||||
krb5_auth_context *auth_context,
|
||||
krb5_flags flags)
|
||||
{
|
||||
free (auth_context->authenticator);
|
||||
free (auth_context);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user