Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include
File: profile.h
/*
[0] Fix | Delete
* profile.h
[1] Fix | Delete
*/
[2] Fix | Delete
[3] Fix | Delete
#ifndef _KRB5_PROFILE_H
[4] Fix | Delete
#define _KRB5_PROFILE_H
[5] Fix | Delete
[6] Fix | Delete
#if defined(_WIN32)
[7] Fix | Delete
#include <win-mac.h>
[8] Fix | Delete
#endif
[9] Fix | Delete
[10] Fix | Delete
#if defined(__MACH__) && defined(__APPLE__)
[11] Fix | Delete
# include <TargetConditionals.h>
[12] Fix | Delete
# if TARGET_RT_MAC_CFM
[13] Fix | Delete
# error "Use KfM 4.0 SDK headers for CFM compilation."
[14] Fix | Delete
# endif
[15] Fix | Delete
#endif
[16] Fix | Delete
[17] Fix | Delete
#ifndef KRB5_CALLCONV
[18] Fix | Delete
#define KRB5_CALLCONV
[19] Fix | Delete
#define KRB5_CALLCONV_C
[20] Fix | Delete
#endif
[21] Fix | Delete
[22] Fix | Delete
typedef struct _profile_t *profile_t;
[23] Fix | Delete
[24] Fix | Delete
/* Used by profile_init_flags(). */
[25] Fix | Delete
#define PROFILE_INIT_ALLOW_MODULE 0x0001 /* Allow module declaration */
[26] Fix | Delete
[27] Fix | Delete
/*
[28] Fix | Delete
* Used by the profile iterator in prof_get.c
[29] Fix | Delete
*/
[30] Fix | Delete
#define PROFILE_ITER_LIST_SECTION 0x0001
[31] Fix | Delete
#define PROFILE_ITER_SECTIONS_ONLY 0x0002
[32] Fix | Delete
#define PROFILE_ITER_RELATIONS_ONLY 0x0004
[33] Fix | Delete
[34] Fix | Delete
#ifdef __cplusplus
[35] Fix | Delete
extern "C" {
[36] Fix | Delete
#endif /* __cplusplus */
[37] Fix | Delete
[38] Fix | Delete
typedef char* profile_filespec_t; /* path as C string */
[39] Fix | Delete
typedef char* profile_filespec_list_t; /* list of : separated paths, C string */
[40] Fix | Delete
typedef const char * const_profile_filespec_t; /* path as C string */
[41] Fix | Delete
typedef const char * const_profile_filespec_list_t; /* list of : separated paths, C string */
[42] Fix | Delete
[43] Fix | Delete
long KRB5_CALLCONV profile_init
[44] Fix | Delete
(const_profile_filespec_t *files, profile_t *ret_profile);
[45] Fix | Delete
[46] Fix | Delete
long KRB5_CALLCONV profile_init_flags
[47] Fix | Delete
(const_profile_filespec_t *files, int flags, profile_t *ret_profile);
[48] Fix | Delete
[49] Fix | Delete
long KRB5_CALLCONV profile_init_path
[50] Fix | Delete
(const_profile_filespec_list_t filelist, profile_t *ret_profile);
[51] Fix | Delete
[52] Fix | Delete
long KRB5_CALLCONV profile_flush
[53] Fix | Delete
(profile_t profile);
[54] Fix | Delete
long KRB5_CALLCONV profile_flush_to_file
[55] Fix | Delete
(profile_t profile, const_profile_filespec_t outfile);
[56] Fix | Delete
long KRB5_CALLCONV profile_flush_to_buffer
[57] Fix | Delete
(profile_t profile, char **bufp);
[58] Fix | Delete
void KRB5_CALLCONV profile_free_buffer
[59] Fix | Delete
(profile_t profile, char *buf);
[60] Fix | Delete
[61] Fix | Delete
long KRB5_CALLCONV profile_is_writable
[62] Fix | Delete
(profile_t profile, int *writable);
[63] Fix | Delete
long KRB5_CALLCONV profile_is_modified
[64] Fix | Delete
(profile_t profile, int *modified);
[65] Fix | Delete
[66] Fix | Delete
void KRB5_CALLCONV profile_abandon
[67] Fix | Delete
(profile_t profile);
[68] Fix | Delete
[69] Fix | Delete
void KRB5_CALLCONV profile_release
[70] Fix | Delete
(profile_t profile);
[71] Fix | Delete
[72] Fix | Delete
long KRB5_CALLCONV profile_get_values
[73] Fix | Delete
(profile_t profile, const char *const *names, char ***ret_values);
[74] Fix | Delete
[75] Fix | Delete
void KRB5_CALLCONV profile_free_list
[76] Fix | Delete
(char **list);
[77] Fix | Delete
[78] Fix | Delete
long KRB5_CALLCONV profile_get_string
[79] Fix | Delete
(profile_t profile, const char *name, const char *subname,
[80] Fix | Delete
const char *subsubname, const char *def_val,
[81] Fix | Delete
char **ret_string);
[82] Fix | Delete
long KRB5_CALLCONV profile_get_integer
[83] Fix | Delete
(profile_t profile, const char *name, const char *subname,
[84] Fix | Delete
const char *subsubname, int def_val,
[85] Fix | Delete
int *ret_default);
[86] Fix | Delete
[87] Fix | Delete
long KRB5_CALLCONV profile_get_boolean
[88] Fix | Delete
(profile_t profile, const char *name, const char *subname,
[89] Fix | Delete
const char *subsubname, int def_val,
[90] Fix | Delete
int *ret_default);
[91] Fix | Delete
[92] Fix | Delete
long KRB5_CALLCONV profile_get_relation_names
[93] Fix | Delete
(profile_t profile, const char **names, char ***ret_names);
[94] Fix | Delete
[95] Fix | Delete
long KRB5_CALLCONV profile_get_subsection_names
[96] Fix | Delete
(profile_t profile, const char **names, char ***ret_names);
[97] Fix | Delete
[98] Fix | Delete
long KRB5_CALLCONV profile_iterator_create
[99] Fix | Delete
(profile_t profile, const char *const *names,
[100] Fix | Delete
int flags, void **ret_iter);
[101] Fix | Delete
[102] Fix | Delete
void KRB5_CALLCONV profile_iterator_free
[103] Fix | Delete
(void **iter_p);
[104] Fix | Delete
[105] Fix | Delete
long KRB5_CALLCONV profile_iterator
[106] Fix | Delete
(void **iter_p, char **ret_name, char **ret_value);
[107] Fix | Delete
[108] Fix | Delete
void KRB5_CALLCONV profile_release_string (char *str);
[109] Fix | Delete
[110] Fix | Delete
long KRB5_CALLCONV profile_update_relation
[111] Fix | Delete
(profile_t profile, const char **names,
[112] Fix | Delete
const char *old_value, const char *new_value);
[113] Fix | Delete
[114] Fix | Delete
long KRB5_CALLCONV profile_clear_relation
[115] Fix | Delete
(profile_t profile, const char **names);
[116] Fix | Delete
[117] Fix | Delete
long KRB5_CALLCONV profile_rename_section
[118] Fix | Delete
(profile_t profile, const char **names,
[119] Fix | Delete
const char *new_name);
[120] Fix | Delete
[121] Fix | Delete
long KRB5_CALLCONV profile_add_relation
[122] Fix | Delete
(profile_t profile, const char **names,
[123] Fix | Delete
const char *new_value);
[124] Fix | Delete
[125] Fix | Delete
/*
[126] Fix | Delete
* profile_init_vtable allows a caller to create a profile-compatible object
[127] Fix | Delete
* with a different back end.
[128] Fix | Delete
*/
[129] Fix | Delete
[130] Fix | Delete
/*
[131] Fix | Delete
* Mandatory: Look up all of the relations for names, placing the resulting
[132] Fix | Delete
* values in *ret_values. If no relations exist, return PROF_NO_RELATION, or
[133] Fix | Delete
* PROF_NO_SECTION to indicate that one of the intermediate names does not
[134] Fix | Delete
* exist as a section. The list will be freed with free_values.
[135] Fix | Delete
*/
[136] Fix | Delete
typedef long
[137] Fix | Delete
(*profile_get_values_fn)(void *cbdata, const char *const *names,
[138] Fix | Delete
char ***ret_values);
[139] Fix | Delete
[140] Fix | Delete
/* Mandatory: Free a list of strings returned by get_values. */
[141] Fix | Delete
typedef void
[142] Fix | Delete
(*profile_free_values_fn)(void *cbdata, char **values);
[143] Fix | Delete
[144] Fix | Delete
/* Optional: Release any data associated with the profile. */
[145] Fix | Delete
typedef void
[146] Fix | Delete
(*profile_cleanup_fn)(void *cbdata);
[147] Fix | Delete
[148] Fix | Delete
/*
[149] Fix | Delete
* Optional (mandatory if cleanup is defined): Generate a new cbdata pointer
[150] Fix | Delete
* for a copy of the profile. If not implemented, the new profile will receive
[151] Fix | Delete
* the same cbdata pointer as the old one.
[152] Fix | Delete
*/
[153] Fix | Delete
typedef long
[154] Fix | Delete
(*profile_copy_fn)(void *cbdata, void **ret_cbdata);
[155] Fix | Delete
[156] Fix | Delete
/*
[157] Fix | Delete
* Optional: Create an iterator handle.
[158] Fix | Delete
*
[159] Fix | Delete
* If flags contains PROFILE_ITER_LIST_SECTION, iterate over all of the
[160] Fix | Delete
* relations and sections within names. Otherwise, iterate over the relation
[161] Fix | Delete
* values for names, or produce a single section result if names is a section.
[162] Fix | Delete
*
[163] Fix | Delete
* If flags contains PROFILE_ITER_SECTIONS_ONLY, produce only sections.
[164] Fix | Delete
*
[165] Fix | Delete
* If flags contains PROFILE_ITER_RELATIONS_ONLY, produce only relations.
[166] Fix | Delete
*/
[167] Fix | Delete
typedef long
[168] Fix | Delete
(*profile_iterator_create_fn)(void *cbdata, const char *const *names,
[169] Fix | Delete
int flags, void **ret_iter);
[170] Fix | Delete
[171] Fix | Delete
/*
[172] Fix | Delete
* Optional (mandatory if iterator_create is defined): Produce the next
[173] Fix | Delete
* relation or section in an iteration. If producing a section result, set
[174] Fix | Delete
* *ret_value to NULL. The returned strings will be freed with free_string.
[175] Fix | Delete
*/
[176] Fix | Delete
typedef long
[177] Fix | Delete
(*profile_iterator_fn)(void *cbdata, void *iter, char **ret_name,
[178] Fix | Delete
char **ret_value);
[179] Fix | Delete
[180] Fix | Delete
/*
[181] Fix | Delete
* Optional (mandatory if iterator_create is defined): Free the memory for an
[182] Fix | Delete
* iterator.
[183] Fix | Delete
*/
[184] Fix | Delete
typedef void
[185] Fix | Delete
(*profile_iterator_free_fn)(void *cbdata, void *iter);
[186] Fix | Delete
[187] Fix | Delete
/* Optional (mandatory if iterator is defined): Free a string value. */
[188] Fix | Delete
typedef void
[189] Fix | Delete
(*profile_free_string_fn)(void *cbdata, char *string);
[190] Fix | Delete
[191] Fix | Delete
/*
[192] Fix | Delete
* Optional: Determine if a profile is writable. If not implemented, the
[193] Fix | Delete
* profile is never writable.
[194] Fix | Delete
*/
[195] Fix | Delete
typedef long
[196] Fix | Delete
(*profile_writable_fn)(void *cbdata, int *writable);
[197] Fix | Delete
[198] Fix | Delete
/*
[199] Fix | Delete
* Optional: Determine if a profile is modified in memory relative to the
[200] Fix | Delete
* persistent store. If not implemented, the profile is assumed to never be
[201] Fix | Delete
* modified.
[202] Fix | Delete
*/
[203] Fix | Delete
typedef long
[204] Fix | Delete
(*profile_modified_fn)(void *cbdata, int *modified);
[205] Fix | Delete
[206] Fix | Delete
/*
[207] Fix | Delete
* Optional: Change the value of a relation, or remove it if new_value is NULL.
[208] Fix | Delete
* If old_value is set and the relation does not have that value, return
[209] Fix | Delete
* PROF_NO_RELATION.
[210] Fix | Delete
*/
[211] Fix | Delete
typedef long
[212] Fix | Delete
(*profile_update_relation_fn)(void *cbdata, const char **names,
[213] Fix | Delete
const char *old_value, const char *new_value);
[214] Fix | Delete
[215] Fix | Delete
/*
[216] Fix | Delete
* Optional: Rename a section to new_name, or remove the section if new_name is
[217] Fix | Delete
* NULL.
[218] Fix | Delete
*/
[219] Fix | Delete
typedef long
[220] Fix | Delete
(*profile_rename_section_fn)(void *cbdata, const char **names,
[221] Fix | Delete
const char *new_name);
[222] Fix | Delete
[223] Fix | Delete
/*
[224] Fix | Delete
* Optional: Add a new relation, or a new section if new_value is NULL. Add
[225] Fix | Delete
* any intermediate sections as necessary.
[226] Fix | Delete
*/
[227] Fix | Delete
typedef long
[228] Fix | Delete
(*profile_add_relation_fn)(void *cbdata, const char **names,
[229] Fix | Delete
const char *new_value);
[230] Fix | Delete
[231] Fix | Delete
/*
[232] Fix | Delete
* Optional: Flush any pending memory updates to the persistent store. If
[233] Fix | Delete
* implemented, this function will be called by profile_release as well as
[234] Fix | Delete
* profile_flush, so make sure it's not inefficient to flush an unmodified
[235] Fix | Delete
* profile.
[236] Fix | Delete
*/
[237] Fix | Delete
typedef long
[238] Fix | Delete
(*profile_flush_fn)(void *cbdata);
[239] Fix | Delete
[240] Fix | Delete
struct profile_vtable {
[241] Fix | Delete
int minor_ver; /* Set to structure minor version (currently 1)
[242] Fix | Delete
* if calling profile_init_vtable. */
[243] Fix | Delete
[244] Fix | Delete
/* Methods needed for a basic read-only non-iterable profile (cleanup is
[245] Fix | Delete
* optional). */
[246] Fix | Delete
profile_get_values_fn get_values;
[247] Fix | Delete
profile_free_values_fn free_values;
[248] Fix | Delete
profile_cleanup_fn cleanup;
[249] Fix | Delete
profile_copy_fn copy;
[250] Fix | Delete
[251] Fix | Delete
/* Methods for iterable profiles. */
[252] Fix | Delete
profile_iterator_create_fn iterator_create;
[253] Fix | Delete
profile_iterator_fn iterator;
[254] Fix | Delete
profile_iterator_free_fn iterator_free;
[255] Fix | Delete
profile_free_string_fn free_string;
[256] Fix | Delete
[257] Fix | Delete
/* Methods for writable profiles. */
[258] Fix | Delete
profile_writable_fn writable;
[259] Fix | Delete
profile_modified_fn modified;
[260] Fix | Delete
profile_update_relation_fn update_relation;
[261] Fix | Delete
profile_rename_section_fn rename_section;
[262] Fix | Delete
profile_add_relation_fn add_relation;
[263] Fix | Delete
profile_flush_fn flush;
[264] Fix | Delete
[265] Fix | Delete
/* End of minor version 1. */
[266] Fix | Delete
};
[267] Fix | Delete
[268] Fix | Delete
/*
[269] Fix | Delete
* Create a profile object whose operations will be performed using the
[270] Fix | Delete
* function pointers in vtable. cbdata will be supplied to each vtable
[271] Fix | Delete
* function as the first argument.
[272] Fix | Delete
*/
[273] Fix | Delete
long KRB5_CALLCONV profile_init_vtable
[274] Fix | Delete
(struct profile_vtable *vtable, void *cbdata, profile_t *ret_profile);
[275] Fix | Delete
[276] Fix | Delete
/*
[277] Fix | Delete
* Dynamically loadable profile modules should define a function named
[278] Fix | Delete
* "profile_module_init" matching the following signature. The function should
[279] Fix | Delete
* initialize the methods of the provided vtable structure, stopping at the
[280] Fix | Delete
* field corresponding to vtable->minor_ver. Do not change the value of
[281] Fix | Delete
* vtable->minor_ver. Unimplemented methods can be left uninitialized. The
[282] Fix | Delete
* function should supply a callback data pointer in *cb_ret; this pointer can
[283] Fix | Delete
* be cleaned up via the vtable cleanup method.
[284] Fix | Delete
*/
[285] Fix | Delete
typedef long
[286] Fix | Delete
(*profile_module_init_fn)(const char *residual, struct profile_vtable *vtable,
[287] Fix | Delete
void **cb_ret);
[288] Fix | Delete
[289] Fix | Delete
#ifdef __cplusplus
[290] Fix | Delete
}
[291] Fix | Delete
#endif /* __cplusplus */
[292] Fix | Delete
[293] Fix | Delete
#endif /* _KRB5_PROFILE_H */
[294] Fix | Delete
/*
[295] Fix | Delete
* et-h-prof_err.h:
[296] Fix | Delete
* This file is automatically generated; please do not edit it.
[297] Fix | Delete
*/
[298] Fix | Delete
[299] Fix | Delete
#include <et/com_err.h>
[300] Fix | Delete
[301] Fix | Delete
#define PROF_VERSION (-1429577728L)
[302] Fix | Delete
#define PROF_MAGIC_NODE (-1429577727L)
[303] Fix | Delete
#define PROF_NO_SECTION (-1429577726L)
[304] Fix | Delete
#define PROF_NO_RELATION (-1429577725L)
[305] Fix | Delete
#define PROF_ADD_NOT_SECTION (-1429577724L)
[306] Fix | Delete
#define PROF_SECTION_WITH_VALUE (-1429577723L)
[307] Fix | Delete
#define PROF_BAD_LINK_LIST (-1429577722L)
[308] Fix | Delete
#define PROF_BAD_GROUP_LVL (-1429577721L)
[309] Fix | Delete
#define PROF_BAD_PARENT_PTR (-1429577720L)
[310] Fix | Delete
#define PROF_MAGIC_ITERATOR (-1429577719L)
[311] Fix | Delete
#define PROF_SET_SECTION_VALUE (-1429577718L)
[312] Fix | Delete
#define PROF_EINVAL (-1429577717L)
[313] Fix | Delete
#define PROF_READ_ONLY (-1429577716L)
[314] Fix | Delete
#define PROF_SECTION_NOTOP (-1429577715L)
[315] Fix | Delete
#define PROF_SECTION_SYNTAX (-1429577714L)
[316] Fix | Delete
#define PROF_RELATION_SYNTAX (-1429577713L)
[317] Fix | Delete
#define PROF_EXTRA_CBRACE (-1429577712L)
[318] Fix | Delete
#define PROF_MISSING_OBRACE (-1429577711L)
[319] Fix | Delete
#define PROF_MAGIC_PROFILE (-1429577710L)
[320] Fix | Delete
#define PROF_MAGIC_SECTION (-1429577709L)
[321] Fix | Delete
#define PROF_TOPSECTION_ITER_NOSUPP (-1429577708L)
[322] Fix | Delete
#define PROF_INVALID_SECTION (-1429577707L)
[323] Fix | Delete
#define PROF_END_OF_SECTIONS (-1429577706L)
[324] Fix | Delete
#define PROF_BAD_NAMESET (-1429577705L)
[325] Fix | Delete
#define PROF_NO_PROFILE (-1429577704L)
[326] Fix | Delete
#define PROF_MAGIC_FILE (-1429577703L)
[327] Fix | Delete
#define PROF_FAIL_OPEN (-1429577702L)
[328] Fix | Delete
#define PROF_EXISTS (-1429577701L)
[329] Fix | Delete
#define PROF_BAD_BOOLEAN (-1429577700L)
[330] Fix | Delete
#define PROF_BAD_INTEGER (-1429577699L)
[331] Fix | Delete
#define PROF_MAGIC_FILE_DATA (-1429577698L)
[332] Fix | Delete
#define PROF_FAIL_INCLUDE_FILE (-1429577697L)
[333] Fix | Delete
#define PROF_FAIL_INCLUDE_DIR (-1429577696L)
[334] Fix | Delete
#define PROF_UNSUPPORTED (-1429577695L)
[335] Fix | Delete
#define PROF_MAGIC_NODE_ITERATOR (-1429577694L)
[336] Fix | Delete
#define PROF_MODULE (-1429577693L)
[337] Fix | Delete
#define PROF_MODULE_SYNTAX (-1429577692L)
[338] Fix | Delete
#define PROF_MODULE_INVALID (-1429577691L)
[339] Fix | Delete
extern const struct error_table et_prof_error_table;
[340] Fix | Delete
extern void initialize_prof_error_table(void);
[341] Fix | Delete
[342] Fix | Delete
/* For compatibility with Heimdal */
[343] Fix | Delete
extern void initialize_prof_error_table_r(struct et_list **list);
[344] Fix | Delete
[345] Fix | Delete
#define ERROR_TABLE_BASE_prof (-1429577728L)
[346] Fix | Delete
[347] Fix | Delete
/* for compatibility with older versions... */
[348] Fix | Delete
#define init_prof_err_tbl initialize_prof_error_table
[349] Fix | Delete
#define prof_err_base ERROR_TABLE_BASE_prof
[350] Fix | Delete
[351] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function