projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.15
[freeside.git]
/
rt
/
lib
/
RT
/
Crypt.pm
diff --git
a/rt/lib/RT/Crypt.pm
b/rt/lib/RT/Crypt.pm
index
cad86d2
..
a5ae1f1
100644
(file)
--- a/
rt/lib/RT/Crypt.pm
+++ b/
rt/lib/RT/Crypt.pm
@@
-2,7
+2,7
@@
#
# COPYRIGHT:
#
#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-201
5
Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-201
8
Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
@@
-430,7
+430,11
@@
An un-localized error message desribing the problem.
sub SignEncrypt {
my $self = shift;
sub SignEncrypt {
my $self = shift;
- my %args = (@_);
+ my %args = (
+ Sign => 1,
+ Encrypt => 1,
+ @_,
+ );
my $entity = $args{'Entity'};
if ( $args{'Sign'} && !defined $args{'Signer'} ) {
my $entity = $args{'Entity'};
if ( $args{'Sign'} && !defined $args{'Signer'} ) {
@@
-545,7
+549,7
@@
sub VerifyDecrypt {
my $modify = $res{status_on}->head->modify;
$res{status_on}->head->modify(1);
$res{status_on}->head->add(
my $modify = $res{status_on}->head->modify;
$res{status_on}->head->modify(1);
$res{status_on}->head->add(
- "X-RT-" . $protected->{'Protocol'} . "-Status" =>
$res{'status'}
+ "X-RT-" . $protected->{'Protocol'} . "-Status" =>
Encode::encode( "UTF-8", $res{'status'} )
);
$res{status_on}->head->modify($modify);
);
$res{status_on}->head->modify($modify);