本文整理汇总了C++中LOG_ENTRY函数的典型用法代码示例。如果您正苦于以下问题:C++ LOG_ENTRY函数的具体用法?C++ LOG_ENTRY怎么用?C++ LOG_ENTRY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LOG_ENTRY函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KLLoginOptionsSetProxiable
KLStatus KLLoginOptionsSetProxiable (KLLoginOptions ioOptions,
KLBoolean inProxiable)
{
LOG_ENTRY();
heim_krb5_get_init_creds_opt_set_proxiable(ioOptions->opt, inProxiable);
return klNoErr;
}
示例2: krb5_get_init_creds_opt_set_preauth_list
void KRB5_CALLCONV
krb5_get_init_creds_opt_set_preauth_list(mit_krb5_get_init_creds_opt *opt,
mit_krb5_preauthtype *preauth_list,
int preauth_list_length)
{
LOG_ENTRY();
}
示例3: krb5_get_init_creds_opt_free
void KRB5_CALLCONV
krb5_get_init_creds_opt_free(mit_krb5_context context,
mit_krb5_get_init_creds_opt *opt)
{
LOG_ENTRY();
free(opt);
}
示例4: cc_iterator_next
cc_int32
cc_iterator_next(cc_ccache_iterator_t in_ccache_iterator,
cc_ccache_t *out_ccache)
{
struct cc_iter *c = (struct cc_iter *)in_ccache_iterator;
krb5_error_code ret;
krb5_ccache id;
LOG_ENTRY();
if (out_ccache == NULL)
return ccErrBadParam;
while (1) {
const char *type;
ret = mit_krb5_cccol_cursor_next((mit_krb5_context)milcontext, c->cursor, (mit_krb5_ccache *)&id);
if (ret == KRB5_CC_END || id == NULL)
return ccIteratorEnd;
else if (ret)
return LOG_FAILURE(ret, "ccol next cursor");
type = heim_krb5_cc_get_type(milcontext, id);
if (strcmp(type, "API") == 0 || strcmp(type, "KCM") == 0)
break;
heim_krb5_cc_close(milcontext, id);
}
*out_ccache = create_ccache(id);
return ccNoError;
}
示例5: krb5_c_string_to_key
mit_krb5_error_code KRB5_CALLCONV
krb5_c_string_to_key(mit_krb5_context context,
mit_krb5_enctype enctype,
const mit_krb5_data *string,
const mit_krb5_data *salt,
mit_krb5_keyblock *key)
{
krb5_data hstring;
krb5_error_code ret;
krb5_salt hsalt;
krb5_keyblock hkey;
LOG_ENTRY();
mshim_mdata2hdata(string, &hstring);
hsalt.salttype = (krb5_salttype)KRB5_PADATA_PW_SALT;
mshim_mdata2hdata(salt, &hsalt.saltvalue);
ret = heim_krb5_string_to_key_data_salt(HC(context), enctype,
hstring, hsalt, &hkey);
heim_krb5_data_free(&hstring);
heim_krb5_data_free(&hsalt.saltvalue);
if (ret)
return ret;
mshim_hkeyblock2mkeyblock(&hkey, key);
heim_krb5_free_keyblock_contents(HC(context), &hkey);
return 0;
}
示例6: ccache_set_principal
static cc_int32
ccache_set_principal(cc_ccache_t io_ccache, cc_uint32 in_credentials_version, const char *in_principal)
{
struct cc_ccache *c = (struct cc_ccache *)io_ccache;
krb5_error_code ret;
krb5_principal p;
LOG_ENTRY();
if (in_principal == NULL)
return ccErrBadParam;
if (in_credentials_version != cc_credentials_v5)
return LOG_FAILURE(ccErrBadCredentialsVersion, "wrong version");
update_time(&c->change_time);
update_time(&context_change_time);
ret = heim_krb5_parse_name(milcontext, in_principal, &p);
if (ret)
return LOG_FAILURE(ccErrBadParam, "parse name");
ret = heim_krb5_cc_initialize(milcontext, c->id, p);
heim_krb5_free_principal(milcontext, p);
if (ret)
return LOG_FAILURE(ccErrInvalidCCache, "init cache");
return ccNoError;
}
示例7: ccache_new_credentials_iterator
static cc_int32
ccache_new_credentials_iterator(cc_ccache_t in_ccache, cc_credentials_iterator_t *out_credentials_iterator)
{
struct cc_ccache *c = (struct cc_ccache *)in_ccache;
struct cred_iterator *ci;
krb5_error_code ret;
LOG_ENTRY();
if (c == NULL || c->id == NULL)
return ccErrInvalidCCache;
if (out_credentials_iterator == NULL)
return ccErrBadParam;
ci = calloc(1, sizeof(*c));
ci->iterator.functions = &cred_iter_functions;
ci->id = c->id;
ret = mit_krb5_cc_start_seq_get((mit_krb5_context)milcontext,
(mit_krb5_ccache)c->id,
(mit_krb5_cc_cursor *)&ci->cursor);
if (ret) {
free(ci);
return LOG_FAILURE(ccErrInvalidCCache, "start seq");
}
*out_credentials_iterator = (cc_credentials_iterator_t)ci;
return ccNoError;
}
示例8: mshim_herror2merror
void
mshim_herror2merror(krb5_context context, const krb5_error *h, mit_krb5_error *m)
{
LOG_ENTRY();
memset(m, 0, sizeof(*m));
m->magic = MIT_KV5M_ERROR;
if (h->ctime)
m->ctime = *h->ctime;
if (h->cusec)
m->cusec = *h->cusec;
m->stime = h->stime;
m->susec = h->susec;
#if 0
m->client = mshim_hprinc2mprinc(context, h->client);
m->server = mshim_hprinc2mprinc(context, h->server);
#endif
m->error = h->error_code;
if (h->e_text) {
m->text.magic = MIT_KV5M_DATA;
m->text.data = strdup(*(h->e_text));
m->text.length = strlen(*(h->e_text));
}
if (h->e_data)
mshim_hdata2mdata(h->e_data, &m->e_data);
#if 0
krb5_principal client; /* client's principal identifier;
optional */
krb5_principal server; /* server's principal identifier */
#endif
}
示例9: mit_krb5_free_keyblock
void KRB5_CALLCONV
mit_krb5_free_keyblock(mit_krb5_context context, mit_krb5_keyblock *keyblock)
{
LOG_ENTRY();
mit_krb5_free_keyblock_contents(context, keyblock);
free(keyblock);
}
示例10: KLGetTripletFromPrincipal
KLStatus
KLGetTripletFromPrincipal(KLPrincipal inPrincipal,
char **outName,
char **outInstance,
char **outRealm)
{
LOG_ENTRY();
if (outName)
*outName = NULL;
if (outInstance)
*outInstance = NULL;
if (outRealm)
*outInstance = NULL;
if (inPrincipal == NULL)
return klParameterErr;
switch (inPrincipal->name.name_string.len) {
case 2:
if (outInstance)
*outInstance = strdup(inPrincipal->name.name_string.val[1]);
case 1:
if (outName)
*outName = strdup(inPrincipal->name.name_string.val[0]);
break;
default:
return klInvalidOptionErr;
}
if (outRealm)
*outRealm = strdup(inPrincipal->realm);
return klNoErr;
}
示例11: krb5_unparse_name
mit_krb5_error_code KRB5_CALLCONV
krb5_unparse_name(mit_krb5_context context, mit_krb5_const_principal principal, char **str)
{
struct comb_principal *p = (struct comb_principal *)principal;
LOG_ENTRY();
return heim_krb5_unparse_name((krb5_context)context, p->heim, str);
}
示例12: KLLoginOptionsSetTicketStartTime
KLStatus
KLLoginOptionsSetTicketStartTime (KLLoginOptions ioOptions,
KLTime inStartTime)
{
LOG_ENTRY();
return klNoErr;
}
示例13: KLLoginOptionsSetAddressless
KLStatus
KLLoginOptionsSetAddressless (KLLoginOptions ioOptions,
KLBoolean inAddressless)
{
LOG_ENTRY();
return klNoErr;
}
示例14: KLLoginOptionsSetRenewableLifetime
KLStatus KLLoginOptionsSetRenewableLifetime (KLLoginOptions ioOptions,
KLLifetime inRenewableLifetime)
{
LOG_ENTRY();
heim_krb5_get_init_creds_opt_set_renew_life(ioOptions->opt, inRenewableLifetime);
return klNoErr;
}
示例15: cc_initialize
cc_int32
cc_initialize(cc_context_t *out_context,
cc_int32 in_version,
cc_int32 *out_supported_version,
char const **out_vendor)
{
LOG_ENTRY();
mshim_init_context();
update_time(&context_change_time);
if (in_version < ccapi_version_3 || in_version > ccapi_version_7)
return ccErrBadAPIVersion;
if (out_context == NULL)
return ccErrBadParam;
*out_context = calloc(1, sizeof(**out_context));
(*out_context)->functions = &cc_functions;
if (out_supported_version)
*out_supported_version = ccapi_version_7;
if (out_vendor)
*out_vendor = "Apple Heimdal shim layer";
return 0;
}