The unsigned char *name and *description are pointers, not storage arrays. For this to work, you would need:
struct ciphers_name
{
unsigned char name[NAME_LEN];
unsigned char description[DESC_LEN];
const EVP_CIPHER *cipher;
unsigned int color;
};
Steven Pauly
Pitney Bowes GMS
[EMAIL PROTECTED]
"Nagy
Zoltán Márk" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 03/29/2006 10:16 AM
|
|
Dear all
I would like to create a data structure in C.
Below you can see what I have created, but it doesn't work correctly.
My question is: why doesn't initialised EVP_aes_128_cbc() into cipher?
#define ORANGE 0xffa500
struct ciphers_name
{
unsigned char *name;
unsigned char *description;
const EVP_CIPHER *cipher;
unsigned int color;
};
struct ciphers_name ciphers[] =
{
{ "aes128cbc","AES 128bit CBC",EVP_aes_128_cbc(),ORANGE}
};
Thank you in advance,
King regards,
mark
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]