diff options
author | Sumit Bose <sbose@redhat.com> | 2017-02-02 12:32:13 +0100 |
---|---|---|
committer | Sumit Bose <sbose@redhat.com> | 2017-02-23 13:05:17 +0100 |
commit | 2c91c3790f4a0489b578b9c19b730af708973854 (patch) | |
tree | 0609ea6a3a01ad203eaf5740e4ff7dc332410f7c /daemons/ipa-kdb/ipa_kdb.h | |
parent | a4c09fea01c3382ec17e2095df6fd79a73f71f1e (diff) | |
download | freeipa-certauth.tar.gz freeipa-certauth.tar.xz freeipa-certauth.zip |
WIP: IPA certauth plugincertauth
Diffstat (limited to 'daemons/ipa-kdb/ipa_kdb.h')
-rw-r--r-- | daemons/ipa-kdb/ipa_kdb.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h index bf9c1b009..2f0a2e67f 100644 --- a/daemons/ipa-kdb/ipa_kdb.h +++ b/daemons/ipa-kdb/ipa_kdb.h @@ -40,6 +40,7 @@ #include <arpa/inet.h> #include <endian.h> #include <unistd.h> +#include <krb5/certauth_plugin.h> #include "ipa_krb5.h" #include "ipa_pwd.h" @@ -110,6 +111,7 @@ struct ipadb_context { krb5_key_salt_tuple *def_encs; int n_def_encs; struct ipadb_mspac *mspac; + krb5_certauth_moddata certauth_moddata; /* Don't access this directly, use ipadb_get_global_config(). */ struct ipadb_global_config config; @@ -320,3 +322,18 @@ ipadb_get_global_config(struct ipadb_context *ipactx); int ipadb_get_enc_salt_types(struct ipadb_context *ipactx, LDAPMessage *entry, char *attr, krb5_key_salt_tuple **enc_salt_types, int *n_enc_salt_types); + +/* CERTAUTH PLUGIN */ + +krb5_error_code certauth_ipakdb_initvt(krb5_context context, + int maj_ver, int min_ver, + krb5_plugin_vtable vtable); + +void ipa_certauth_free_moddata(krb5_certauth_moddata *moddata); + +/* from k5-int.h */ +#define PLUGIN_INTERFACE_CERTAUTH 10 +/* Register a plugin module of type interface_id and name modname. */ +krb5_error_code +k5_plugin_register(krb5_context context, int interface_id, const char *modname, + krb5_plugin_initvt_fn module); |