From: Ken Raeburn Date: Mon, 5 Sep 2011 01:21:50 +0000 (+0000) Subject: Change output type of pkinit_init_kdc_req_context so as not to require X-Git-Tag: krb5-1.10-alpha1~230 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=60a8119b1b6effc48b4c13de410bfcc45d029b94;p=krb5.git Change output type of pkinit_init_kdc_req_context so as not to require gratuitous casting. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25145 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/preauth/pkinit/pkinit_srv.c b/src/plugins/preauth/pkinit/pkinit_srv.c index d87d57031..3cd976d1e 100644 --- a/src/plugins/preauth/pkinit/pkinit_srv.c +++ b/src/plugins/preauth/pkinit/pkinit_srv.c @@ -40,7 +40,7 @@ #include "../fast_factor.h" static krb5_error_code -pkinit_init_kdc_req_context(krb5_context, void **blob); +pkinit_init_kdc_req_context(krb5_context, pkinit_kdc_req_context *blob); static void pkinit_fini_kdc_req_context(krb5_context context, void *blob); @@ -340,7 +340,7 @@ pkinit_server_verify_padata(krb5_context context, print_buffer_bin(data->contents, data->length, "/tmp/kdc_as_req"); #endif /* create a per-request context */ - retval = pkinit_init_kdc_req_context(context, (void **)&reqctx); + retval = pkinit_init_kdc_req_context(context, &reqctx); if (retval) goto cleanup; reqctx->pa_type = data->pa_type; @@ -1336,7 +1336,7 @@ pkinit_server_plugin_fini(krb5_context context, } static krb5_error_code -pkinit_init_kdc_req_context(krb5_context context, void **ctx) +pkinit_init_kdc_req_context(krb5_context context, pkinit_kdc_req_context *ctx) { krb5_error_code retval = ENOMEM; pkinit_kdc_req_context reqctx = NULL;