00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _GATSECURITYCONTEXT_H_
00027 #define _GATSECURITYCONTEXT_H_ 1
00028
00029 #include "GATType.h"
00030 #include "GATList.h"
00031 #include "GATInternal.h"
00032
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037
00038
00039 GATLIST_DECLARE_QUALIFIED(extern, GATSecurityContext, GATList_GATSecurityContext);
00040
00041
00042 GATOBJECT_DECLARE_CONVERTERS(GATSecurityContext);
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 GATSecurityContext GATSecurityContext_Create(GATSecurityContextType type);
00053
00054
00055
00056
00057
00058
00059 void GATSecurityContext_Destroy(GATSecurityContext *ctx);
00060
00061
00062
00063
00064
00065
00066
00067
00068 GATType GATSecurityContext_GetType(GATSecurityContext_const ctx);
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 GATResult
00081 GATSecurityContext_Clone(GATSecurityContext_const ctx,
00082 GATSecurityContext *thisClone);
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094 GATResult
00095 GATSecurityContext_Equals(GATSecurityContext_const ctx,
00096 GATSecurityContext_const that, GATBool *isequal);
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 GATResult
00110 GATSecurityContext_GetInterface(GATSecurityContext_const object,
00111 GATInterface iftype, void const **ifp);
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122 GATResult
00123 GATSecurityContext_SetPasswordAuthenticate(GATSecurityContext ctx,
00124 const char *username, const char *password);
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135 GATResult
00136 GATSecurityContext_GetPasswordAuthenticate(GATSecurityContext ctx,
00137 char **username, char **password);
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154 GATResult
00155 GATSecurityContext_SetCertificateAuthenticate(GATSecurityContext ctx,
00156 const char *keyfile, const char *certificate, const char *passphrase);
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169 GATResult
00170 GATSecurityContext_GetCertificateAuthenticate(GATSecurityContext ctx,
00171 char **keyfile, char **certificate, char **passphrase);
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183 GATResult
00184 GATSecurityContext_SetRemoteAuthenticate(GATSecurityContext ctx,
00185 GATLocation location, const char *name, const char *passphrase);
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197 GATResult
00198 GATSecurityContext_GetRemoteAuthenticate(GATSecurityContext ctx,
00199 GATLocation *location, char **name, char **passphrase);
00200
00201
00202
00203
00204
00205
00206
00207
00208 GATResult
00209 GATSecurityContext_GetSecurityContextType(GATSecurityContext ctx,
00210 GATSecurityContextType *type);
00211
00212 #ifdef __cplusplus
00213 }
00214 #endif
00215
00216 #endif