X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fz-acckrb1.h;fp=include%2Fyaz%2Fz-acckrb1.h;h=218a5264b40fd9ba25edd921c55f5e876aa15446;hb=51ce48f9d3319a9f8952c4c6deb2c39692403376;hp=0000000000000000000000000000000000000000;hpb=ee5338c518eced23556105b4b2ad3cd850fd79ea;p=yaz-moved-to-github.git diff --git a/include/yaz/z-acckrb1.h b/include/yaz/z-acckrb1.h new file mode 100644 index 0000000..218a526 --- /dev/null +++ b/include/yaz/z-acckrb1.h @@ -0,0 +1,51 @@ +/* YC 0.2: Tue Feb 29 16:45:07 CET 2000 */ +/* Module-H AccessControlFormat-krb-1 */ + +#ifndef z_acckrb1_H +#define z_acckrb1_H + +#include +#include +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct Z_KRBObject Z_KRBObject; +YAZ_EXPORT int z_KRBObject (ODR o, Z_KRBObject **p, int opt, const char *name); + +typedef struct Z_KRBRequest Z_KRBRequest; +YAZ_EXPORT int z_KRBRequest (ODR o, Z_KRBRequest **p, int opt, const char *name); + +typedef struct Z_KRBResponse Z_KRBResponse; +YAZ_EXPORT int z_KRBResponse (ODR o, Z_KRBResponse **p, int opt, const char *name); +#ifdef __cplusplus +} +#endif +#ifdef __cplusplus +extern "C" { +#endif +struct Z_KRBObject { + int which; + union { + Z_KRBRequest *challenge; + Z_KRBResponse *response; +#define Z_KRBObject_challenge 1 +#define Z_KRBObject_response 2 + } u; +}; + +struct Z_KRBRequest { + Z_InternationalString *service; + Z_InternationalString *instance; /* OPT */ + Z_InternationalString *realm; /* OPT */ +}; + +struct Z_KRBResponse { + Z_InternationalString *userid; /* OPT */ + Odr_oct *ticket; +}; + +#ifdef __cplusplus +} +#endif +#endif