3 #include <windc_plugin.h>
6 windc_init(krb5_context context
, void **ctx
)
8 krb5_warnx(context
, "windc init");
18 static krb5_error_code
19 pac_generate(void *ctx
, krb5_context context
,
20 struct hdb_entry_ex
*client
, krb5_pac
*pac
)
25 krb5_warnx(context
, "pac generate");
27 data
.data
= "\x00\x01";
30 ret
= krb5_pac_init(context
, pac
);
34 ret
= krb5_pac_add_buffer(context
, *pac
, 1, &data
);
41 static krb5_error_code
42 pac_verify(void *ctx
, krb5_context context
,
43 const krb5_principal client_principal
,
44 struct hdb_entry_ex
*client
,
45 struct hdb_entry_ex
*server
,
51 krb5_warnx(context
, "pac_verify");
53 ret
= krb5_pac_get_buffer(context
, *pac
, 1, &data
);
57 krb5_data_free(&data
);
62 static krb5_error_code
63 client_access(void *ctx
, krb5_context context
,
64 struct hdb_entry_ex
*client
, KDC_REQ
*req
)
66 krb5_warnx(context
, "client_access");
70 krb5plugin_windc_ftable windc
= {
71 KRB5_WINDC_PLUGING_MINOR
,