aboutsummaryrefslogtreecommitdiff
path: root/util/perl/OpenSSL
diff options
context:
space:
mode:
Diffstat (limited to 'util/perl/OpenSSL')
-rw-r--r--util/perl/OpenSSL/Template.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/perl/OpenSSL/Template.pm b/util/perl/OpenSSL/Template.pm
index 7411dd8ae8d7..ad93278ca761 100644
--- a/util/perl/OpenSSL/Template.pm
+++ b/util/perl/OpenSSL/Template.pm
@@ -42,6 +42,14 @@ use Text::Template 1.46;
our @ISA = qw(Text::Template); # parent
+sub tmpl_error {
+ my (%err_dict) = @_;
+
+ $ERROR = $err_dict{"error"};
+
+ return undef;
+}
+
sub new {
my $class = shift;
@@ -66,6 +74,7 @@ sub fill_in {
output_on => sub { $self->output_on() },
output_off => sub { $self->output_off() },
%hash },
+ BROKEN => \&tmpl_error,
%opts);
}