File tree 1 file changed +8
-8
lines changed
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;
119
119
120
120
static int cb1 (ok , ctx )
121
121
int ok ;
122
- UV * ctx ;
122
+ IV * ctx ;
123
123
{
124
124
dSP ;
125
125
int count ;
126
126
int i ;
127
127
128
128
//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));
130
130
ENTER ;
131
131
SAVETMPS ;
132
132
133
133
PUSHMARK (SP );
134
134
EXTEND (SP , 2 );
135
135
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
138
138
PUTBACK ;
139
139
140
140
count = call_sv (callback , G_SCALAR ); // Call the verify_callback()
@@ -389,15 +389,15 @@ to the point address to be used
389
389
= cut
390
390
391
391
int ctx_error_code (ctx )
392
- UV ctx ;
392
+ IV ctx ;
393
393
394
394
PREINIT :
395
395
396
396
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)); */
399
399
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 ));
401
401
402
402
OUTPUT :
403
403
You can’t perform that action at this time.
0 commit comments