#define MIT_KRB5_DEPRECATED 1
#include "heim.h"
#include "mit-krb5.h"
#include <string.h>
#include <errno.h>
#include <syslog.h>
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_setaddrs(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_address *caddr,
mit_krb5_address *saddr)
{
LOG_ENTRY();
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getaddrs(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_address **caddr,
mit_krb5_address **saddr)
{
LOG_ENTRY();
*caddr = NULL;
*saddr = NULL;
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_setports(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_address *caddr,
mit_krb5_address *saddr)
{
LOG_ENTRY();
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getkey(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_keyblock **keyblock)
{
LOG_ENTRY();
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_setrcache(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_rcache rcaceh)
{
LOG_ENTRY();
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getrcache(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_rcache *rcache)
{
LOG_ENTRY();
*rcache = NULL;
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getauthenticator(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_authenticator **auth)
{
LOG_ENTRY();
*auth = NULL;
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getlocalsubkey(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_keyblock **key)
{
LOG_ENTRY();
krb5_keyblock *hkey = NULL;
krb5_error_code ret;
*key = NULL;
ret = heim_krb5_auth_con_getlocalsubkey(HC(context),
(krb5_auth_context)ac,
&hkey);
if (ret)
return ret;
if (hkey) {
*key = mshim_malloc(sizeof(**key));
mshim_hkeyblock2mkeyblock(hkey, *key);
heim_krb5_free_keyblock(HC(context), hkey);
}
return 0;
}
mit_krb5_error_code KRB5_CALLCONV
krb5_auth_con_getremotesubkey(mit_krb5_context context,
mit_krb5_auth_context ac,
mit_krb5_keyblock **key)
{
LOG_ENTRY();
krb5_keyblock *hkey = NULL;
krb5_error_code ret;
*key = NULL;
ret = heim_krb5_auth_con_getremotesubkey(HC(context),
(krb5_auth_context)ac,
&hkey);
if (ret)
return ret;
if (hkey) {
*key = mshim_malloc(sizeof(**key));
mshim_hkeyblock2mkeyblock(hkey, *key);
heim_krb5_free_keyblock(HC(context), hkey);
}
return 0;
}