aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/preauth
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2017-08-14 11:47:44 -0400
committerGreg Hudson <ghudson@mit.edu>2017-08-21 10:51:32 -0400
commitda47c655f084b511ea1f6142b6f571b5198915b7 (patch)
tree2873e4356cd04fa4abaa7baf18c5a3231c6cdf92 /src/plugins/preauth
parentd0969f6a8170344031ef58fd2a161190f1edfb96 (diff)
downloadkrb5-da47c655f084b511ea1f6142b6f571b5198915b7.zip
krb5-da47c655f084b511ea1f6142b6f571b5198915b7.tar.gz
krb5-da47c655f084b511ea1f6142b6f571b5198915b7.tar.bz2
Avoid repeating typedef in certauth_plugin.h
Repeating an identical typedef is allowed by C11, but not C99 or C89. Use the underlying structure type in certauth_plugin.h so that it can safely be included along with kdb.h. Also constify the name field in the vtable. ticket: 8561
Diffstat (limited to 'src/plugins/preauth')
-rw-r--r--src/plugins/preauth/pkinit/pkinit_srv.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/preauth/pkinit/pkinit_srv.c b/src/plugins/preauth/pkinit/pkinit_srv.c
index a4ce308..5da8892 100644
--- a/src/plugins/preauth/pkinit/pkinit_srv.c
+++ b/src/plugins/preauth/pkinit/pkinit_srv.c
@@ -1449,7 +1449,8 @@ static krb5_error_code
pkinit_san_authorize(krb5_context context, krb5_certauth_moddata moddata,
const uint8_t *cert, size_t cert_len,
krb5_const_principal princ, const void *opts,
- const krb5_db_entry *db_entry, char ***authinds_out)
+ const struct _krb5_db_entry_new *db_entry,
+ char ***authinds_out)
{
krb5_error_code ret;
int valid_san;
@@ -1476,7 +1477,8 @@ static krb5_error_code
pkinit_eku_authorize(krb5_context context, krb5_certauth_moddata moddata,
const uint8_t *cert, size_t cert_len,
krb5_const_principal princ, const void *opts,
- const krb5_db_entry *db_entry, char ***authinds_out)
+ const struct _krb5_db_entry_new *db_entry,
+ char ***authinds_out)
{
krb5_error_code ret;
int valid_eku;
@@ -1535,7 +1537,8 @@ static krb5_error_code
dbmatch_authorize(krb5_context context, krb5_certauth_moddata moddata,
const uint8_t *cert, size_t cert_len,
krb5_const_principal princ, const void *opts,
- const krb5_db_entry *db_entry, char ***authinds_out)
+ const struct _krb5_db_entry_new *db_entry,
+ char ***authinds_out)
{
krb5_error_code ret;
const struct certauth_req_opts *req_opts = opts;