Skip to content

Commit bf08275

Browse files
committed
Fix an issue with the POD for force_element_to_content inserted in the incorrect location
1 parent 8e5361b commit bf08275

File tree

3 files changed

+36
-24
lines changed

3 files changed

+36
-24
lines changed

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ my %WriteMakefileArgs = (
3333
"File::Which" => 0,
3434
"Test::More" => 0
3535
},
36-
"VERSION" => "0.01",
36+
"VERSION" => "0.02",
3737
"test" => {
3838
"TESTS" => "t/*.t"
3939
}

README

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME
22
XML::Enc - XML::Enc Encryption Support
33

44
VERSION
5-
version 0.01
5+
version 0.02
66

77
SYNOPSIS
88
my $decrypter = XML::Enc->new(
@@ -50,20 +50,21 @@ METHODS
5050

5151
Used in encryption. Optional. Default method: aes256-cbc
5252

53-
force_element_to_content
54-
Used for decryption to treat an Element EncryptedData type as
55-
Content if the decrypted data is not XML. xmlsec appears to have a
56-
bug where it uses the Element EncryptedData type in order to encrypt
57-
what is actually Content. Strangely it appears to have no issue
58-
decrypting the data if the Type is changed to Content
59-
6053
* tripledes-cbc
54+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
55+
ml#tripledes-cbc>
6156

6257
* aes128-cbc
58+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
59+
ml#aes128-cbc>
6360

6461
* aes196-cbc
62+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
63+
ml#aes192-cbc>
6564

6665
* aes256-cbc
66+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
67+
ml#aes256-cbc>
6768

6869
key_transport
6970
Specify the encryption method to be used for key transport.
@@ -72,8 +73,19 @@ METHODS
7273
Used in encryption. Optional. Default method: rsa-1_5
7374

7475
* rsa-1_5
76+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
77+
ml#rsa-1_5>
7578

7679
* rsa-oaep-mgf1p
80+
<https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
81+
ml#rsa-oaep-mgf1p>
82+
83+
force_element_to_content
84+
Used for decryption to treat an Element EncryptedData type as
85+
Content if the decrypted data is not XML. xmlsec appears to have a
86+
bug where it uses the Element EncryptedData type in order to encrypt
87+
what is actually Content. Strangely it appears to have no issue
88+
decrypting the data if the Type is changed to Content
7789

7890
decrypt( ... )
7991
Main decryption function.

lib/XML/Enc.pm

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use Crypt::Random qw( makerandom_octet );
1414

1515
use vars qw($VERSION @EXPORT_OK %EXPORT_TAGS $DEBUG);
1616

17-
our $VERSION = '0.01';
17+
our $VERSION = '0.02';
1818

1919
our $DEBUG = 0;
2020

@@ -87,23 +87,15 @@ Specify the data encryption method to be used. Supported methods are:
8787
8888
Used in encryption. Optional. Default method: aes256-cbc
8989
90-
=item B<force_element_to_content>
91-
92-
Used for decryption to treat an Element EncryptedData type as Content
93-
if the decrypted data is not XML. xmlsec appears to have a bug where it
94-
uses the Element EncryptedData type in order to encrypt what is actually Content.
95-
Strangely it appears to have no issue decrypting the data if the Type is changed
96-
to Content
97-
9890
=over
9991
100-
=item * L<tripledes-cbc>
92+
=item * L<tripledes-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#tripledes-cbc>
10193
102-
=item * L<aes128-cbc>
94+
=item * L<aes128-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes128-cbc>
10395
104-
=item * L<aes196-cbc>
96+
=item * L<aes196-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes192-cbc>
10597
106-
=item * L<aes256-cbc>
98+
=item * L<aes256-cbc|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#aes256-cbc>
10799
108100
=back
109101
@@ -115,12 +107,20 @@ Used in encryption. Optional. Default method: rsa-1_5
115107
116108
=over
117109
118-
=item * L<rsa-1_5>
110+
=item * L<rsa-1_5|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#rsa-1_5>
119111
120-
=item * L<rsa-oaep-mgf1p>
112+
=item * L<rsa-oaep-mgf1p|https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#rsa-oaep-mgf1p>
121113
122114
=back
123115
116+
=item B<force_element_to_content>
117+
118+
Used for decryption to treat an Element EncryptedData type as Content
119+
if the decrypted data is not XML. xmlsec appears to have a bug where it
120+
uses the Element EncryptedData type in order to encrypt what is actually Content.
121+
Strangely it appears to have no issue decrypting the data if the Type is changed
122+
to Content
123+
124124
=back
125125
126126
=cut

0 commit comments

Comments
 (0)