(krb5_auth_con_init): initalize keytype and cksumtype

(krb5_auth_setcksumtype, krb5_auth_getcksumtype): implement
(krb5_auth_setkeytype, krb5_auth_getkeytype): implement
(krb5_auth_setenctype): comment out, it's rather bogus anyway


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6047 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-04-25 17:38:08 +00:00
parent 2e3cbdaadb
commit b337f501a1

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -60,6 +60,8 @@ krb5_auth_con_init(krb5_context context,
p->local_address = NULL;
p->remote_address = NULL;
p->keytype = KEYTYPE_NULL;
p->cksumtype = CKSUMTYPE_NONE;
*auth_context = p;
return 0;
}
@@ -280,7 +282,8 @@ krb5_auth_setcksumtype(krb5_context context,
krb5_auth_context auth_context,
krb5_cksumtype cksumtype)
{
krb5_abortx(context, "unimplemented krb5_auth_setcksumtype called");
auth_context->cksumtype = cksumtype;
return 0;
}
krb5_error_code
@@ -288,9 +291,29 @@ krb5_auth_getcksumtype(krb5_context context,
krb5_auth_context auth_context,
krb5_cksumtype *cksumtype)
{
krb5_abortx(context, "unimplemented krb5_auth_getcksumtype called");
*cksumtype = auth_context->cksumtype;
return 0;
}
krb5_error_code
krb5_auth_setkeytype (krb5_context context,
krb5_auth_context auth_context,
krb5_keytype keytype)
{
auth_context->keytype = keytype;
return 0;
}
krb5_error_code
krb5_auth_getkeytype (krb5_context context,
krb5_auth_context auth_context,
krb5_keytype *keytype)
{
*keytype = auth_context->keytype;
return 0;
}
#if 0
krb5_error_code
krb5_auth_setenctype(krb5_context context,
krb5_auth_context auth_context,
@@ -312,6 +335,7 @@ krb5_auth_getenctype(krb5_context context,
{
krb5_abortx(context, "unimplemented krb5_auth_getenctype called");
}
#endif
krb5_error_code
krb5_auth_getlocalseqnumber(krb5_context context,