abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change
on this file since 7f30af7 was
f7040d8,
checked in by Mike Ryan <mikeryan@…>, 14 years ago
|
perl preprover
SSL key id differs from our (libabac) keyid
SSL: sha1(whole cert)
us: sha1(pub key)
|
-
Property mode set to
100644
|
File size:
568 bytes
|
Line | |
---|
1 | %{ |
---|
2 | #include "SSL_keyid.h" |
---|
3 | %} |
---|
4 | |
---|
5 | %include "SSL_keyid.h" |
---|
6 | |
---|
7 | %typemap(argout) bool &success { |
---|
8 | --argvi; |
---|
9 | SV *array = $result; |
---|
10 | |
---|
11 | $result = sv_newmortal(); |
---|
12 | sv_setiv($result, *$1); |
---|
13 | ++argvi; |
---|
14 | |
---|
15 | $result = array; |
---|
16 | ++argvi; |
---|
17 | } |
---|
18 | |
---|
19 | %typemap(in,numinputs=0) bool &success(bool temp) { |
---|
20 | $1 = &temp; |
---|
21 | } |
---|
22 | |
---|
23 | // abac_chunk_t is a string |
---|
24 | %typemap(in) abac_chunk_t { |
---|
25 | STRLEN len; |
---|
26 | $1.ptr = (unsigned char *)SvPV($input, len); |
---|
27 | $1.len = len; |
---|
28 | } |
---|
29 | |
---|
30 | %typemap(out) abac_chunk_t { |
---|
31 | $result = newSVpvn( |
---|
32 | (const char *)$1.ptr, |
---|
33 | $1.len |
---|
34 | ); |
---|
35 | ++argvi; |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.