فهرست منبع

Merge pull request #347 from Troglodyne-Internet-Widgets/base32-without-xs

Require the Trog::TOTP that encodes with MIME::Base32, and stop asking for the XS one
George S. Baugh 1 ماه پیش
والد
کامیت
b48637e2f1
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 5 0
      .preferred_modules.ini
  2. 1 2
      Makefile.PL

+ 5 - 0
.preferred_modules.ini

@@ -19,3 +19,8 @@ reason = "Avoid mangling files with concurrent writes"
 [perl/rand]
 prefer = Crypt::PRNG
 reason = builtin rand() insecure
+
+[MIME::Base32::XS]
+[Encode::Base2N]
+prefer = MIME::Base32
+reason = "MIME::Base32::XS corrupts the heap and pads its output, and Encode::Base2N needs a C++ build that cpm cannot install"

+ 1 - 2
Makefile.PL

@@ -20,7 +20,7 @@ WriteMakefile(
         },
     },
     PREREQ_PM => {
-        'Trog::TOTP'                          => '0',
+        'Trog::TOTP'                          => '1.007',
         'CGI::Cookie'                         => '0',
         'Capture::Tiny'                       => '0',
         'Carp'                                => '0',
@@ -71,7 +71,6 @@ WriteMakefile(
         'Log::Dispatch'                       => '0',
         'Log::Dispatch::FileRotate'           => '0',
         'Digest::SHA'                         => '0',
-        'MIME::Base32::XS'                    => '0',
         'URI'                                 => '0',
         'FindBin::libs'                       => '0',
         'Carp::Always'                        => '0',