Change output type of pkinit_init_kdc_req_context so as not to require
authorKen Raeburn <raeburn@mit.edu>
Mon, 5 Sep 2011 01:21:50 +0000 (01:21 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 5 Sep 2011 01:21:50 +0000 (01:21 +0000)
gratuitous casting.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25145 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/preauth/pkinit/pkinit_srv.c

index d87d570315307b14cc5f1e8ee7a23ea1cd2f72c7..3cd976d1ed626ca467bd4675314ae5b4759b4d6b 100644 (file)
@@ -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;