Bug #32581 configure script modif to select the right aes encryption key length
Submitted: 21 Nov 2007 16:35 Modified: 2 Oct 2009 19:11
Reporter: marc drolet Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server: Compiling Severity:S4 (Feature request)
Version:5.1 OS:Linux
Assigned to: CPU Architecture:Any
Tags: Contribution

[21 Nov 2007 16:35] marc drolet
Description:
I want to propose a modification to the mysql source configure script to be able to set the aes key length in parameter to the configure script.

How to repeat:
-

Suggested fix:
here is the code I've add to my configure script to do that: (added on line 536)

--with-aes-key-length=* | --aes-key-length=* | --aes-key=* | --aes=*)
case $ac_optarg in
128)
#128 is already the default value, nothing to do
;;
192 | 256)
source_path=`echo $0 | awk -F "configure" '{print $1}'`
sed -e "s/AES_KEY_LENGTH 128/AES_KEY_LENGTH $ac_optarg/" "$source_path"include/my_aes.h > "$source_path"include/my_aes.h2
mv "$source_path"include/my_aes.h2 "$source_path"include/my_aes.h ;;
*)
{ echo "$as_me: error: invalid aes key length: $aes_key_length (available values are: 128, 192, 256)" >&2
{ (exit 1); exit 1; }; }
esac
;;

don't miss to add the --with-aes-key-length to the --help display :-)
[22 Nov 2007 5:15] Valeriy Kravchuk
Thank you for a reasonable feature request.
[8 Jun 2009 22:52] liz drachnik
Hello Marc - 

In order for us to continue the process of reviewing your contribution to MySQL - We need you to review and sign the Sun|MySQL contributor agreement (the "SCA")

The process is explained here: 
http://forge.mysql.com/wiki/Sun_Contributor_Agreement

Getting a signed/approved SCA on file will help us facilitate your contribution-- this one, and others in the future.

Thank you ! 

Liz Drachnik  - Program Manager - MySQL
[2 Oct 2009 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".