close $gpgv_log; close $gpgv_status;
waitpid $pid, 0; # reap child that ran gpgv
- # Prepare the return structure
- my %ret = (exitcode => $?, raw_output => $raw_output,
- raw_log => $raw_log, raw_status => $raw_status);
-
- _analyze_gpgv_output(\%ret);
-
- return \%ret;
+ return _analyze_gpgv_output
+ ({exitcode => $?, raw_output => $raw_output,
+ raw_log => $raw_log, raw_status => $raw_status});
}
sub verify_detached_signature {
close $gpgv_output; close $gpgv_log; close $gpgv_status;
waitpid $pid, 0; # reap child that ran gpgv
- # Prepare the return structure
- my %ret = (exitcode => $?, raw_output => $raw_output,
- raw_log => $raw_log, raw_status => $raw_status);
-
- _analyze_gpgv_output(\%ret);
-
- return \%ret;
-
+ return _analyze_gpgv_output
+ ({exitcode => $?, raw_output => $raw_output,
+ raw_log => $raw_log, raw_status => $raw_status});
}
\f