Hello All,

We have a BN_GENCB structure BN_GENCB_set_*** macros to set fields.
Problem is that when compiling OpenSSL as a library and using it from a 
different application written in different language, converting structures and 
unions is problematic due to different data sizes and structure alignment 
issues. 
Some parts of the OpenSSL already have exportable functions to operate with 
structures, e.g. EC_KEY_new, EC_KEY_set_group, EC_KEY_set_private_key, 
EC_GROUP_get_point_conversion_form, EC_KEY_free, and so on.
In the past, all SSLeay/LIBeay was heavily relying on macros. I wrote to Eric 
Young about this issue. He (and later other developers) did converted most of 
the macros to exportable functions.
Can we also convert BN_GENCB_set_*** macros to functions? 
Thank you in advance.



-- 
Best regards,
Maxim Masiutin                         
Ritlabs SRL
http://www.ritlabs.com/

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to