File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -119,22 +119,22 @@ static SV *callback = (SV *) NULL;
119119
120120static int cb1 (ok , ctx )
121121 int ok ;
122- UV * ctx ;
122+ IV * ctx ;
123123{
124124 dSP ;
125125 int count ;
126126 int i ;
127127
128128 //printf("Callback pointer: %p\n", ctx);
129- //printf("Callback UL of pointer %lu\n", PTR2UV (ctx));
129+ //printf("Callback INT of pointer %lu\n", (unsigned long) PTR2IV (ctx));
130130 ENTER ;
131131 SAVETMPS ;
132132
133133 PUSHMARK (SP );
134134 EXTEND (SP , 2 );
135135
136- PUSHs (newSVuv (ok )); // Pass ok as integer on the stack
137- PUSHs (newSVuv ( PTR2UV (ctx ))); // Pass pointer address as integer
136+ PUSHs (newSViv (ok )); // Pass ok as integer on the stack
137+ PUSHs (newSViv ( PTR2IV (ctx ))); // Pass pointer address as integer
138138 PUTBACK ;
139139
140140 count = call_sv (callback , G_SCALAR ); // Call the verify_callback()
@@ -389,15 +389,15 @@ to the point address to be used
389389= cut
390390
391391int ctx_error_code (ctx )
392- UV ctx ;
392+ IV ctx ;
393393
394394 PREINIT :
395395
396396 CODE :
397- /* printf("ctx_error_code - UL holding pointer: %lu\n", ctx); */
398- /* printf("ctx_error_code - Pointer to ctx: %p\n", (void *) INT2PTR(UV , ctx)); */
397+ /* printf("ctx_error_code - int holding pointer: %lu\n", (unsigned long) ctx); */
398+ /* printf("ctx_error_code - Pointer to ctx: %p\n", (void *) INT2PTR(SV * , ctx)); */
399399
400- RETVAL = X509_STORE_CTX_get_error ((X509_STORE_CTX * ) INT2PTR (UV , ctx ));
400+ RETVAL = X509_STORE_CTX_get_error ((X509_STORE_CTX * ) INT2PTR (SV * , ctx ));
401401
402402 OUTPUT :
403403
You can’t perform that action at this time.
0 commit comments