Closed (fixed)
Project:
AES encryption
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2009 at 16:59 UTC
Updated:
12 Feb 2009 at 06:45 UTC
Hi,
When I add a new server with the Mail API module, I receive the following error message:
* AES module made a new key since one couldn't be found by using the database storage method.
* The server configuration has been saved.
* warning: mcrypt_generic() [function.mcrypt-generic]: An empty string was passed in C:\xampp\htdocs\mysite.com\sites\all\modules\aes\aes.module on line 494.
* warning: mcrypt_generic() [function.mcrypt-generic]: An empty string was passed in C:\xampp\htdocs\mysite.com\sites\all\modules\aes\aes.module on line 494.
I use Drupal 6.9 with Mail API 6.x-1.0.
Does anybody know what's the reason for this error?
Regards,
Stefan
Comments
Comment #1
easyfit commentedHi Stefan
Thanks for the bug report, but I'm pretty sure this is a bug in the Mail API module and not in AES. The Mail API module sends an empty string to be encrypted, which it probably shouldn't do. Granted this module (AES) should probably handle that more elegantly by bailing before it reaches the actual encryption stage - to avoid generating a PHP-error, but it's not really a bug.
The message about a new key being generated is normal if that was the first time the AES module performed an encryption. But if you're getting that message more than once, then there might be a problem with your installation, which I'd be happy to help you find.
Comment #2
design.er commentedThanks a lot for your quick reply.
You are right, the error message came only the first time up, so I think we can close this thread.
Thank you very much for your help. :)
Comment #3
easyfit commentedNo problem :)