%{ #include "SSL_keyid.h" %} %include "SSL_keyid.h" %include "chunk.i" %typemap(argout) bool &success { --argvi; SV *array = $result; $result = sv_newmortal(); sv_setiv($result, *$1); ++argvi; $result = array; ++argvi; } %typemap(in,numinputs=0) bool &success(bool temp) { $1 = &temp; }