author | Danek Duvall <danek.duvall@oracle.com> |
Thu, 08 Sep 2016 17:47:13 -0700 | |
changeset 6910 | 93182fb9923a |
parent 5863 | 9108cc241851 |
permissions | -rw-r--r-- |
5490
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
1 |
/* |
5863
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
2 |
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
5490
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
3 |
*/ |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
4 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
5 |
/* |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
6 |
* Solaris Kerberos |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
7 |
* This is a private header file, therefore the interfaces that this file |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
8 |
* declares are subject to change without prior notice. |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
9 |
*/ |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
10 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
11 |
#ifndef _PROF_SOLARIS_H |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
12 |
#define _PROF_SOLARIS_H |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
13 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
14 |
#include <profile.h> |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
15 |
#include <sys/types.h> |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
16 |
|
5863
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
17 |
#define K5_PROFILE_VAL_SUCCESS 0 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
18 |
#define K5_PROFILE_VAL_DEF_REALM_CASE 1 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
19 |
#define K5_PROFILE_VAL_REALM_CASE 2 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
20 |
#define K5_PROFILE_VAL_NO_DEF_IN_REALM 3 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
21 |
#define K5_PROFILE_VAL_NO_DEF_REALM 4 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
22 |
#define K5_PROFILE_VAL_NULL_REALM 5 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
23 |
#define K5_PROFILE_VAL_NO_DOM_REALM_MAP 6 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
24 |
#define K5_PROFILE_VAL_KDC_NO_REALM 7 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
25 |
#define K5_PROFILE_VAL_ADMIN_NO_REALM 8 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
26 |
#define K5_PROFILE_VAL_DOM_REALM_CASE 9 |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
27 |
#define K5_PROFILE_VAL_NO_REALM 10 |
5490
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
28 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
29 |
typedef struct _profile_options { |
5863
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
30 |
char *name; |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
31 |
int *value; |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
32 |
int found; |
5490
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
33 |
} profile_options_boolean; |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
34 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
35 |
typedef struct _profile_times { |
5863
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
36 |
char *name; |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
37 |
char **value; |
9108cc241851
23109064 Userland MIT kerberos package should deliver lint libraries for several MIT libs
Neng Xue <neng.xue@oracle.com>
parents:
5490
diff
changeset
|
38 |
int found; |
5490
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
39 |
} profile_option_strings; |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
40 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
41 |
errcode_t |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
42 |
profile_get_options_boolean(profile_t, char **, profile_options_boolean *); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
43 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
44 |
errcode_t |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
45 |
profile_get_options_string(profile_t, char **, profile_option_strings *); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
46 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
47 |
long k5_profile_init(char *filename, profile_t *profile); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
48 |
long k5_profile_release(profile_t profile); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
49 |
void k5_profile_abandon(profile_t profile); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
50 |
long k5_profile_add_domain_mapping(profile_t profile, char *domain, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
51 |
char *realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
52 |
long k5_profile_remove_domain_mapping(profile_t profile, char *realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
53 |
long k5_profile_get_realm_entry(profile_t profile, char *realm, char *name, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
54 |
char ***ret_value); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
55 |
long k5_profile_add_realm_entry(profile_t profile, char *realm, char *name, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
56 |
char **values); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
57 |
long k5_profile_get_libdefaults_entry(profile_t profile, char *name, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
58 |
char **ret_value); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
59 |
long k5_profile_add_libdefaults_entry(profile_t profile, char *name, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
60 |
char *value); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
61 |
long k5_profile_get_default_realm(profile_t profile, char **realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
62 |
long k5_profile_get_realms(profile_t profile, char ***realms); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
63 |
long k5_profile_add_realm(profile_t profile, char *realm, char *master, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
64 |
char **kdcs, boolean_t set_change, boolean_t default_realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
65 |
long k5_profile_remove_xrealm_mapping(profile_t profile, char *realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
66 |
long k5_profile_remove_realm(profile_t profile, char *realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
67 |
long k5_profile_add_xrealm_mapping(profile_t profile, char *source, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
68 |
char *target, char *inter); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
69 |
long k5_profile_validate(profile_t profile, char *realm, int *val_err, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
70 |
char **val, boolean_t master_required, boolean_t kdc_required); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
71 |
long k5_profile_validate_get_error_msg(profile_t profile, int err, char *val, |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
72 |
char **err_msg); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
73 |
long k5_profile_set_libdefaults(profile_t profile, char *realm); |
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
74 |
|
9bf0bc57423a
PSARC/2015/144 Kerberos 1.13 Delivery to Userland
Will Fiveash <will.fiveash@oracle.com>
parents:
diff
changeset
|
75 |
#endif /* _PROF_SOLARIS_H */ |