00001 00007 #ifndef z_acckrb1_H 00008 #define z_acckrb1_H 00009 00010 #include <yaz/odr.h> 00011 #include <yaz/z-core.h> 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 typedef struct Z_KRBObject Z_KRBObject; 00017 YAZ_EXPORT int z_KRBObject (ODR o, Z_KRBObject **p, int opt, const char *name); 00018 00019 typedef struct Z_KRBRequest Z_KRBRequest; 00020 YAZ_EXPORT int z_KRBRequest (ODR o, Z_KRBRequest **p, int opt, const char *name); 00021 00022 typedef struct Z_KRBResponse Z_KRBResponse; 00023 YAZ_EXPORT int z_KRBResponse (ODR o, Z_KRBResponse **p, int opt, const char *name); 00024 #ifdef __cplusplus 00025 } 00026 #endif 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 struct Z_KRBObject { 00031 int which; 00032 union { 00033 Z_KRBRequest *challenge; 00034 Z_KRBResponse *response; 00035 #define Z_KRBObject_challenge 1 00036 #define Z_KRBObject_response 2 00037 } u; 00038 }; 00039 00040 struct Z_KRBRequest { 00041 Z_InternationalString *service; 00042 Z_InternationalString *instance; /* OPT */ 00043 Z_InternationalString *realm; /* OPT */ 00044 }; 00045 00046 struct Z_KRBResponse { 00047 Z_InternationalString *userid; /* OPT */ 00048 Odr_oct *ticket; 00049 }; 00050 00051 #ifdef __cplusplus 00052 } 00053 #endif 00054 #endif
1.5.6