git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1978 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-06 21:05:20 +00:00
parent 9ea6a88057
commit e41b631fb9
4 changed files with 331 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#include "krb5_locl.h"
RCSID("$Id$");
krb5_error_code
krb5_get_default_realm(krb5_context context,
char **realm)
{
char *res;
res = strdup (context->default_realm);
if (res == NULL)
return ENOMEM;
*realm = res;
return 0;
}