diff options
author | ivan <ivan> | 2009-10-24 00:04:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-24 00:04:56 +0000 |
commit | 50a2633bf3c8e4be5bb1f6bdd4a2cc8bd6b954a9 (patch) | |
tree | a1c482fd177459c91a43f71f86a0f9b92b3e2c07 /FS/FS/Record.pm | |
parent | 320532ecd91e99c9f3015c606fa1ebb50721e0e3 (diff) |
fix cause of harmless 'Premature end of base64 data' warning
Diffstat (limited to 'FS/FS/Record.pm')
-rw-r--r-- | FS/FS/Record.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index d4d7ca1..88d8ca9 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -2680,7 +2680,7 @@ sub loadRSA { #Initialize the Module $rsa_module = 'Crypt::OpenSSL::RSA'; # The Default - if ($conf->exists('encryptionmodule') && $conf->config_binary('encryptionmodule') ne '') { + if ($conf->exists('encryptionmodule') && $conf->config('encryptionmodule') ne '') { $rsa_module = $conf->config('encryptionmodule'); } @@ -2689,13 +2689,13 @@ sub loadRSA { $rsa_loaded++; } # Initialize Encryption - if ($conf->exists('encryptionpublickey') && $conf->config_binary('encryptionpublickey') ne '') { + if ($conf->exists('encryptionpublickey') && $conf->config('encryptionpublickey') ne '') { my $public_key = join("\n",$conf->config('encryptionpublickey')); $rsa_encrypt = $rsa_module->new_public_key($public_key); } # Intitalize Decryption - if ($conf->exists('encryptionprivatekey') && $conf->config_binary('encryptionprivatekey') ne '') { + if ($conf->exists('encryptionprivatekey') && $conf->config('encryptionprivatekey') ne '') { my $private_key = join("\n",$conf->config('encryptionprivatekey')); $rsa_decrypt = $rsa_module->new_private_key($private_key); } |