svn rev #25145: trunk/src/plugins/preauth/pkinit/

raeburn@MIT.EDU raeburn at MIT.EDU
Sun Sep 4 21:21:50 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25145
Commit By: raeburn
Log Message:
Change output type of pkinit_init_kdc_req_context so as not to require
gratuitous casting.


Changed Files:
U   trunk/src/plugins/preauth/pkinit/pkinit_srv.c
Modified: trunk/src/plugins/preauth/pkinit/pkinit_srv.c
===================================================================
--- trunk/src/plugins/preauth/pkinit/pkinit_srv.c	2011-09-04 23:52:34 UTC (rev 25144)
+++ trunk/src/plugins/preauth/pkinit/pkinit_srv.c	2011-09-05 01:21:50 UTC (rev 25145)
@@ -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 @@
     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 @@
 }
 
 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;




More information about the cvs-krb5 mailing list