10Sstevel@tonic-gate /* ==================================================================== 20Sstevel@tonic-gate * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * Redistribution and use in source and binary forms, with or without 50Sstevel@tonic-gate * modification, are permitted provided that the following conditions 60Sstevel@tonic-gate * are met: 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * 1. Redistributions of source code must retain the above copyright 90Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer. 100Sstevel@tonic-gate * 110Sstevel@tonic-gate * 2. Redistributions in binary form must reproduce the above copyright 120Sstevel@tonic-gate * notice, this list of conditions and the following disclaimer in 130Sstevel@tonic-gate * the documentation and/or other materials provided with the 140Sstevel@tonic-gate * distribution. 150Sstevel@tonic-gate * 160Sstevel@tonic-gate * 3. All advertising materials mentioning features or use of this 170Sstevel@tonic-gate * software must display the following acknowledgment: 180Sstevel@tonic-gate * "This product includes software developed by the OpenSSL Project 190Sstevel@tonic-gate * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 200Sstevel@tonic-gate * 210Sstevel@tonic-gate * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 220Sstevel@tonic-gate * endorse or promote products derived from this software without 230Sstevel@tonic-gate * prior written permission. For written permission, please contact 240Sstevel@tonic-gate * openssl-core@openssl.org. 250Sstevel@tonic-gate * 260Sstevel@tonic-gate * 5. Products derived from this software may not be called "OpenSSL" 270Sstevel@tonic-gate * nor may "OpenSSL" appear in their names without prior written 280Sstevel@tonic-gate * permission of the OpenSSL Project. 290Sstevel@tonic-gate * 300Sstevel@tonic-gate * 6. Redistributions of any form whatsoever must retain the following 310Sstevel@tonic-gate * acknowledgment: 320Sstevel@tonic-gate * "This product includes software developed by the OpenSSL Project 330Sstevel@tonic-gate * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 340Sstevel@tonic-gate * 350Sstevel@tonic-gate * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 360Sstevel@tonic-gate * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 370Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 380Sstevel@tonic-gate * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 390Sstevel@tonic-gate * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 400Sstevel@tonic-gate * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 410Sstevel@tonic-gate * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 420Sstevel@tonic-gate * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 430Sstevel@tonic-gate * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 440Sstevel@tonic-gate * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 450Sstevel@tonic-gate * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 460Sstevel@tonic-gate * OF THE POSSIBILITY OF SUCH DAMAGE. 470Sstevel@tonic-gate * ==================================================================== 480Sstevel@tonic-gate * 490Sstevel@tonic-gate * This product includes cryptographic software written by Eric Young 500Sstevel@tonic-gate * (eay@cryptsoft.com). This product includes software written by Tim 510Sstevel@tonic-gate * Hudson (tjh@cryptsoft.com). 520Sstevel@tonic-gate * 530Sstevel@tonic-gate */ 540Sstevel@tonic-gate 550Sstevel@tonic-gate #ifndef HEADER_SYMHACKS_H 560Sstevel@tonic-gate #define HEADER_SYMHACKS_H 570Sstevel@tonic-gate 580Sstevel@tonic-gate #include <openssl/e_os2.h> 590Sstevel@tonic-gate 600Sstevel@tonic-gate /* Hacks to solve the problem with linkers incapable of handling very long 610Sstevel@tonic-gate symbol names. In the case of VMS, the limit is 31 characters on VMS for 620Sstevel@tonic-gate VAX. */ 630Sstevel@tonic-gate #ifdef OPENSSL_SYS_VMS 640Sstevel@tonic-gate 650Sstevel@tonic-gate /* Hack a long name in crypto/ex_data.c */ 660Sstevel@tonic-gate #undef CRYPTO_get_ex_data_implementation 670Sstevel@tonic-gate #define CRYPTO_get_ex_data_implementation CRYPTO_get_ex_data_impl 680Sstevel@tonic-gate #undef CRYPTO_set_ex_data_implementation 690Sstevel@tonic-gate #define CRYPTO_set_ex_data_implementation CRYPTO_set_ex_data_impl 700Sstevel@tonic-gate 710Sstevel@tonic-gate /* Hack a long name in crypto/asn1/a_mbstr.c */ 720Sstevel@tonic-gate #undef ASN1_STRING_set_default_mask_asc 730Sstevel@tonic-gate #define ASN1_STRING_set_default_mask_asc ASN1_STRING_set_def_mask_asc 740Sstevel@tonic-gate 750Sstevel@tonic-gate #if 0 /* No longer needed, since safestack macro magic does the job */ 760Sstevel@tonic-gate /* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */ 770Sstevel@tonic-gate #undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO 780Sstevel@tonic-gate #define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO i2d_ASN1_SET_OF_PKCS7_SIGINF 790Sstevel@tonic-gate #undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO 800Sstevel@tonic-gate #define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO d2i_ASN1_SET_OF_PKCS7_SIGINF 810Sstevel@tonic-gate #endif 820Sstevel@tonic-gate 830Sstevel@tonic-gate #if 0 /* No longer needed, since safestack macro magic does the job */ 840Sstevel@tonic-gate /* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */ 850Sstevel@tonic-gate #undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO 860Sstevel@tonic-gate #define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO i2d_ASN1_SET_OF_PKCS7_RECINF 870Sstevel@tonic-gate #undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO 880Sstevel@tonic-gate #define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO d2i_ASN1_SET_OF_PKCS7_RECINF 890Sstevel@tonic-gate #endif 900Sstevel@tonic-gate 910Sstevel@tonic-gate #if 0 /* No longer needed, since safestack macro magic does the job */ 920Sstevel@tonic-gate /* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */ 930Sstevel@tonic-gate #undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION 940Sstevel@tonic-gate #define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION i2d_ASN1_SET_OF_ACC_DESC 950Sstevel@tonic-gate #undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION 960Sstevel@tonic-gate #define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION d2i_ASN1_SET_OF_ACC_DESC 970Sstevel@tonic-gate #endif 980Sstevel@tonic-gate 990Sstevel@tonic-gate /* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */ 1000Sstevel@tonic-gate #undef PEM_read_NETSCAPE_CERT_SEQUENCE 1010Sstevel@tonic-gate #define PEM_read_NETSCAPE_CERT_SEQUENCE PEM_read_NS_CERT_SEQ 1020Sstevel@tonic-gate #undef PEM_write_NETSCAPE_CERT_SEQUENCE 1030Sstevel@tonic-gate #define PEM_write_NETSCAPE_CERT_SEQUENCE PEM_write_NS_CERT_SEQ 1040Sstevel@tonic-gate #undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE 1050Sstevel@tonic-gate #define PEM_read_bio_NETSCAPE_CERT_SEQUENCE PEM_read_bio_NS_CERT_SEQ 1060Sstevel@tonic-gate #undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE 1070Sstevel@tonic-gate #define PEM_write_bio_NETSCAPE_CERT_SEQUENCE PEM_write_bio_NS_CERT_SEQ 1080Sstevel@tonic-gate #undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE 1090Sstevel@tonic-gate #define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQ 1100Sstevel@tonic-gate 1110Sstevel@tonic-gate /* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */ 1120Sstevel@tonic-gate #undef PEM_read_PKCS8_PRIV_KEY_INFO 1130Sstevel@tonic-gate #define PEM_read_PKCS8_PRIV_KEY_INFO PEM_read_P8_PRIV_KEY_INFO 1140Sstevel@tonic-gate #undef PEM_write_PKCS8_PRIV_KEY_INFO 1150Sstevel@tonic-gate #define PEM_write_PKCS8_PRIV_KEY_INFO PEM_write_P8_PRIV_KEY_INFO 1160Sstevel@tonic-gate #undef PEM_read_bio_PKCS8_PRIV_KEY_INFO 1170Sstevel@tonic-gate #define PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_P8_PRIV_KEY_INFO 1180Sstevel@tonic-gate #undef PEM_write_bio_PKCS8_PRIV_KEY_INFO 1190Sstevel@tonic-gate #define PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_P8_PRIV_KEY_INFO 1200Sstevel@tonic-gate #undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO 1210Sstevel@tonic-gate #define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO PEM_wrt_cb_bio_P8_PRIV_KEY_INFO 1220Sstevel@tonic-gate 1230Sstevel@tonic-gate /* Hack other PEM names */ 1240Sstevel@tonic-gate #undef PEM_write_bio_PKCS8PrivateKey_nid 1250Sstevel@tonic-gate #define PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8PrivKey_nid 1260Sstevel@tonic-gate 1270Sstevel@tonic-gate /* Hack some long X509 names */ 1280Sstevel@tonic-gate #undef X509_REVOKED_get_ext_by_critical 1290Sstevel@tonic-gate #define X509_REVOKED_get_ext_by_critical X509_REVOKED_get_ext_by_critic 130*2139Sjp161948 #undef X509_policy_tree_get0_user_policies 131*2139Sjp161948 #define X509_policy_tree_get0_user_policies X509_pcy_tree_get0_usr_policies 132*2139Sjp161948 #undef X509_policy_node_get0_qualifiers 133*2139Sjp161948 #define X509_policy_node_get0_qualifiers X509_pcy_node_get0_qualifiers 134*2139Sjp161948 #undef X509_STORE_CTX_get_explicit_policy 135*2139Sjp161948 #define X509_STORE_CTX_get_explicit_policy X509_STORE_CTX_get_expl_policy 1360Sstevel@tonic-gate 1370Sstevel@tonic-gate /* Hack some long CRYPTO names */ 1380Sstevel@tonic-gate #undef CRYPTO_set_dynlock_destroy_callback 1390Sstevel@tonic-gate #define CRYPTO_set_dynlock_destroy_callback CRYPTO_set_dynlock_destroy_cb 1400Sstevel@tonic-gate #undef CRYPTO_set_dynlock_create_callback 1410Sstevel@tonic-gate #define CRYPTO_set_dynlock_create_callback CRYPTO_set_dynlock_create_cb 1420Sstevel@tonic-gate #undef CRYPTO_set_dynlock_lock_callback 1430Sstevel@tonic-gate #define CRYPTO_set_dynlock_lock_callback CRYPTO_set_dynlock_lock_cb 1440Sstevel@tonic-gate #undef CRYPTO_get_dynlock_lock_callback 1450Sstevel@tonic-gate #define CRYPTO_get_dynlock_lock_callback CRYPTO_get_dynlock_lock_cb 1460Sstevel@tonic-gate #undef CRYPTO_get_dynlock_destroy_callback 1470Sstevel@tonic-gate #define CRYPTO_get_dynlock_destroy_callback CRYPTO_get_dynlock_destroy_cb 1480Sstevel@tonic-gate #undef CRYPTO_get_dynlock_create_callback 1490Sstevel@tonic-gate #define CRYPTO_get_dynlock_create_callback CRYPTO_get_dynlock_create_cb 1500Sstevel@tonic-gate #undef CRYPTO_set_locked_mem_ex_functions 1510Sstevel@tonic-gate #define CRYPTO_set_locked_mem_ex_functions CRYPTO_set_locked_mem_ex_funcs 1520Sstevel@tonic-gate #undef CRYPTO_get_locked_mem_ex_functions 1530Sstevel@tonic-gate #define CRYPTO_get_locked_mem_ex_functions CRYPTO_get_locked_mem_ex_funcs 1540Sstevel@tonic-gate 1550Sstevel@tonic-gate /* Hack some long SSL names */ 1560Sstevel@tonic-gate #undef SSL_CTX_set_default_verify_paths 1570Sstevel@tonic-gate #define SSL_CTX_set_default_verify_paths SSL_CTX_set_def_verify_paths 1580Sstevel@tonic-gate #undef SSL_get_ex_data_X509_STORE_CTX_idx 1590Sstevel@tonic-gate #define SSL_get_ex_data_X509_STORE_CTX_idx SSL_get_ex_d_X509_STORE_CTX_idx 1600Sstevel@tonic-gate #undef SSL_add_file_cert_subjects_to_stack 1610Sstevel@tonic-gate #define SSL_add_file_cert_subjects_to_stack SSL_add_file_cert_subjs_to_stk 1620Sstevel@tonic-gate #undef SSL_add_dir_cert_subjects_to_stack 1630Sstevel@tonic-gate #define SSL_add_dir_cert_subjects_to_stack SSL_add_dir_cert_subjs_to_stk 1640Sstevel@tonic-gate #undef SSL_CTX_use_certificate_chain_file 1650Sstevel@tonic-gate #define SSL_CTX_use_certificate_chain_file SSL_CTX_use_cert_chain_file 1660Sstevel@tonic-gate #undef SSL_CTX_set_cert_verify_callback 1670Sstevel@tonic-gate #define SSL_CTX_set_cert_verify_callback SSL_CTX_set_cert_verify_cb 1680Sstevel@tonic-gate #undef SSL_CTX_set_default_passwd_cb_userdata 1690Sstevel@tonic-gate #define SSL_CTX_set_default_passwd_cb_userdata SSL_CTX_set_def_passwd_cb_ud 170*2139Sjp161948 #undef SSL_COMP_get_compression_methods 171*2139Sjp161948 #define SSL_COMP_get_compression_methods SSL_COMP_get_compress_methods 1720Sstevel@tonic-gate 1730Sstevel@tonic-gate /* Hack some long ENGINE names */ 1740Sstevel@tonic-gate #undef ENGINE_get_default_BN_mod_exp_crt 1750Sstevel@tonic-gate #define ENGINE_get_default_BN_mod_exp_crt ENGINE_get_def_BN_mod_exp_crt 1760Sstevel@tonic-gate #undef ENGINE_set_default_BN_mod_exp_crt 1770Sstevel@tonic-gate #define ENGINE_set_default_BN_mod_exp_crt ENGINE_set_def_BN_mod_exp_crt 1780Sstevel@tonic-gate #undef ENGINE_set_load_privkey_function 1790Sstevel@tonic-gate #define ENGINE_set_load_privkey_function ENGINE_set_load_privkey_fn 1800Sstevel@tonic-gate #undef ENGINE_get_load_privkey_function 1810Sstevel@tonic-gate #define ENGINE_get_load_privkey_function ENGINE_get_load_privkey_fn 1820Sstevel@tonic-gate 1830Sstevel@tonic-gate /* Hack some long OCSP names */ 1840Sstevel@tonic-gate #undef OCSP_REQUEST_get_ext_by_critical 1850Sstevel@tonic-gate #define OCSP_REQUEST_get_ext_by_critical OCSP_REQUEST_get_ext_by_crit 1860Sstevel@tonic-gate #undef OCSP_BASICRESP_get_ext_by_critical 1870Sstevel@tonic-gate #define OCSP_BASICRESP_get_ext_by_critical OCSP_BASICRESP_get_ext_by_crit 1880Sstevel@tonic-gate #undef OCSP_SINGLERESP_get_ext_by_critical 1890Sstevel@tonic-gate #define OCSP_SINGLERESP_get_ext_by_critical OCSP_SINGLERESP_get_ext_by_crit 1900Sstevel@tonic-gate 1910Sstevel@tonic-gate /* Hack some long DES names */ 1920Sstevel@tonic-gate #undef _ossl_old_des_ede3_cfb64_encrypt 1930Sstevel@tonic-gate #define _ossl_old_des_ede3_cfb64_encrypt _ossl_odes_ede3_cfb64_encrypt 1940Sstevel@tonic-gate #undef _ossl_old_des_ede3_ofb64_encrypt 1950Sstevel@tonic-gate #define _ossl_old_des_ede3_ofb64_encrypt _ossl_odes_ede3_ofb64_encrypt 1960Sstevel@tonic-gate 1970Sstevel@tonic-gate /* Hack some long EVP names */ 1980Sstevel@tonic-gate #undef OPENSSL_add_all_algorithms_noconf 1990Sstevel@tonic-gate #define OPENSSL_add_all_algorithms_noconf OPENSSL_add_all_algo_noconf 2000Sstevel@tonic-gate #undef OPENSSL_add_all_algorithms_conf 2010Sstevel@tonic-gate #define OPENSSL_add_all_algorithms_conf OPENSSL_add_all_algo_conf 2020Sstevel@tonic-gate 2030Sstevel@tonic-gate /* Hack some long EC names */ 204*2139Sjp161948 #undef EC_GROUP_set_point_conversion_form 205*2139Sjp161948 #define EC_GROUP_set_point_conversion_form EC_GROUP_set_point_conv_form 206*2139Sjp161948 #undef EC_GROUP_get_point_conversion_form 207*2139Sjp161948 #define EC_GROUP_get_point_conversion_form EC_GROUP_get_point_conv_form 208*2139Sjp161948 #undef EC_GROUP_clear_free_all_extra_data 209*2139Sjp161948 #define EC_GROUP_clear_free_all_extra_data EC_GROUP_clr_free_all_xtra_data 2100Sstevel@tonic-gate #undef EC_POINT_set_Jprojective_coordinates_GFp 2110Sstevel@tonic-gate #define EC_POINT_set_Jprojective_coordinates_GFp \ 2120Sstevel@tonic-gate EC_POINT_set_Jproj_coords_GFp 2130Sstevel@tonic-gate #undef EC_POINT_get_Jprojective_coordinates_GFp 2140Sstevel@tonic-gate #define EC_POINT_get_Jprojective_coordinates_GFp \ 2150Sstevel@tonic-gate EC_POINT_get_Jproj_coords_GFp 2160Sstevel@tonic-gate #undef EC_POINT_set_affine_coordinates_GFp 2170Sstevel@tonic-gate #define EC_POINT_set_affine_coordinates_GFp EC_POINT_set_affine_coords_GFp 2180Sstevel@tonic-gate #undef EC_POINT_get_affine_coordinates_GFp 2190Sstevel@tonic-gate #define EC_POINT_get_affine_coordinates_GFp EC_POINT_get_affine_coords_GFp 2200Sstevel@tonic-gate #undef EC_POINT_set_compressed_coordinates_GFp 2210Sstevel@tonic-gate #define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp 222*2139Sjp161948 #undef EC_POINT_set_affine_coordinates_GF2m 223*2139Sjp161948 #define EC_POINT_set_affine_coordinates_GF2m EC_POINT_set_affine_coords_GF2m 224*2139Sjp161948 #undef EC_POINT_get_affine_coordinates_GF2m 225*2139Sjp161948 #define EC_POINT_get_affine_coordinates_GF2m EC_POINT_get_affine_coords_GF2m 226*2139Sjp161948 #undef EC_POINT_set_compressed_coordinates_GF2m 227*2139Sjp161948 #define EC_POINT_set_compressed_coordinates_GF2m \ 228*2139Sjp161948 EC_POINT_set_compr_coords_GF2m 229*2139Sjp161948 #undef ec_GF2m_simple_group_clear_finish 230*2139Sjp161948 #define ec_GF2m_simple_group_clear_finish ec_GF2m_simple_grp_clr_finish 231*2139Sjp161948 #undef ec_GF2m_simple_group_check_discriminant 232*2139Sjp161948 #define ec_GF2m_simple_group_check_discriminant ec_GF2m_simple_grp_chk_discrim 233*2139Sjp161948 #undef ec_GF2m_simple_point_clear_finish 234*2139Sjp161948 #define ec_GF2m_simple_point_clear_finish ec_GF2m_simple_pt_clr_finish 235*2139Sjp161948 #undef ec_GF2m_simple_point_set_to_infinity 236*2139Sjp161948 #define ec_GF2m_simple_point_set_to_infinity ec_GF2m_simple_pt_set_to_inf 237*2139Sjp161948 #undef ec_GF2m_simple_points_make_affine 238*2139Sjp161948 #define ec_GF2m_simple_points_make_affine ec_GF2m_simple_pts_make_affine 239*2139Sjp161948 #undef ec_GF2m_simple_point_set_affine_coordinates 240*2139Sjp161948 #define ec_GF2m_simple_point_set_affine_coordinates \ 241*2139Sjp161948 ec_GF2m_smp_pt_set_af_coords 242*2139Sjp161948 #undef ec_GF2m_simple_point_get_affine_coordinates 243*2139Sjp161948 #define ec_GF2m_simple_point_get_affine_coordinates \ 244*2139Sjp161948 ec_GF2m_smp_pt_get_af_coords 245*2139Sjp161948 #undef ec_GF2m_simple_set_compressed_coordinates 246*2139Sjp161948 #define ec_GF2m_simple_set_compressed_coordinates \ 247*2139Sjp161948 ec_GF2m_smp_set_compr_coords 2480Sstevel@tonic-gate #undef ec_GFp_simple_group_set_curve_GFp 2490Sstevel@tonic-gate #define ec_GFp_simple_group_set_curve_GFp ec_GFp_simple_grp_set_curve_GFp 2500Sstevel@tonic-gate #undef ec_GFp_simple_group_get_curve_GFp 2510Sstevel@tonic-gate #define ec_GFp_simple_group_get_curve_GFp ec_GFp_simple_grp_get_curve_GFp 2520Sstevel@tonic-gate #undef ec_GFp_simple_group_clear_finish 2530Sstevel@tonic-gate #define ec_GFp_simple_group_clear_finish ec_GFp_simple_grp_clear_finish 2540Sstevel@tonic-gate #undef ec_GFp_simple_group_set_generator 2550Sstevel@tonic-gate #define ec_GFp_simple_group_set_generator ec_GFp_simple_grp_set_generator 2560Sstevel@tonic-gate #undef ec_GFp_simple_group_get0_generator 2570Sstevel@tonic-gate #define ec_GFp_simple_group_get0_generator ec_GFp_simple_grp_gt0_generator 2580Sstevel@tonic-gate #undef ec_GFp_simple_group_get_cofactor 2590Sstevel@tonic-gate #define ec_GFp_simple_group_get_cofactor ec_GFp_simple_grp_get_cofactor 2600Sstevel@tonic-gate #undef ec_GFp_simple_point_clear_finish 2610Sstevel@tonic-gate #define ec_GFp_simple_point_clear_finish ec_GFp_simple_pt_clear_finish 2620Sstevel@tonic-gate #undef ec_GFp_simple_point_set_to_infinity 2630Sstevel@tonic-gate #define ec_GFp_simple_point_set_to_infinity ec_GFp_simple_pt_set_to_inf 2640Sstevel@tonic-gate #undef ec_GFp_simple_points_make_affine 2650Sstevel@tonic-gate #define ec_GFp_simple_points_make_affine ec_GFp_simple_pts_make_affine 2660Sstevel@tonic-gate #undef ec_GFp_simple_group_get_curve_GFp 2670Sstevel@tonic-gate #define ec_GFp_simple_group_get_curve_GFp ec_GFp_simple_grp_get_curve_GFp 2680Sstevel@tonic-gate #undef ec_GFp_simple_set_Jprojective_coordinates_GFp 2690Sstevel@tonic-gate #define ec_GFp_simple_set_Jprojective_coordinates_GFp \ 2700Sstevel@tonic-gate ec_GFp_smp_set_Jproj_coords_GFp 2710Sstevel@tonic-gate #undef ec_GFp_simple_get_Jprojective_coordinates_GFp 2720Sstevel@tonic-gate #define ec_GFp_simple_get_Jprojective_coordinates_GFp \ 2730Sstevel@tonic-gate ec_GFp_smp_get_Jproj_coords_GFp 2740Sstevel@tonic-gate #undef ec_GFp_simple_point_set_affine_coordinates_GFp 2750Sstevel@tonic-gate #define ec_GFp_simple_point_set_affine_coordinates_GFp \ 2760Sstevel@tonic-gate ec_GFp_smp_pt_set_af_coords_GFp 2770Sstevel@tonic-gate #undef ec_GFp_simple_point_get_affine_coordinates_GFp 2780Sstevel@tonic-gate #define ec_GFp_simple_point_get_affine_coordinates_GFp \ 2790Sstevel@tonic-gate ec_GFp_smp_pt_get_af_coords_GFp 2800Sstevel@tonic-gate #undef ec_GFp_simple_set_compressed_coordinates_GFp 2810Sstevel@tonic-gate #define ec_GFp_simple_set_compressed_coordinates_GFp \ 2820Sstevel@tonic-gate ec_GFp_smp_set_compr_coords_GFp 283*2139Sjp161948 #undef ec_GFp_simple_point_set_affine_coordinates 284*2139Sjp161948 #define ec_GFp_simple_point_set_affine_coordinates \ 285*2139Sjp161948 ec_GFp_smp_pt_set_af_coords 286*2139Sjp161948 #undef ec_GFp_simple_point_get_affine_coordinates 287*2139Sjp161948 #define ec_GFp_simple_point_get_affine_coordinates \ 288*2139Sjp161948 ec_GFp_smp_pt_get_af_coords 289*2139Sjp161948 #undef ec_GFp_simple_set_compressed_coordinates 290*2139Sjp161948 #define ec_GFp_simple_set_compressed_coordinates \ 291*2139Sjp161948 ec_GFp_smp_set_compr_coords 292*2139Sjp161948 #undef ec_GFp_simple_group_check_discriminant 293*2139Sjp161948 #define ec_GFp_simple_group_check_discriminant ec_GFp_simple_grp_chk_discrim 294*2139Sjp161948 295*2139Sjp161948 /* Hack som long STORE names */ 296*2139Sjp161948 #undef STORE_method_set_initialise_function 297*2139Sjp161948 #define STORE_method_set_initialise_function STORE_meth_set_initialise_fn 298*2139Sjp161948 #undef STORE_method_set_cleanup_function 299*2139Sjp161948 #define STORE_method_set_cleanup_function STORE_meth_set_cleanup_fn 300*2139Sjp161948 #undef STORE_method_set_generate_function 301*2139Sjp161948 #define STORE_method_set_generate_function STORE_meth_set_generate_fn 302*2139Sjp161948 #undef STORE_method_set_modify_function 303*2139Sjp161948 #define STORE_method_set_modify_function STORE_meth_set_modify_fn 304*2139Sjp161948 #undef STORE_method_set_revoke_function 305*2139Sjp161948 #define STORE_method_set_revoke_function STORE_meth_set_revoke_fn 306*2139Sjp161948 #undef STORE_method_set_delete_function 307*2139Sjp161948 #define STORE_method_set_delete_function STORE_meth_set_delete_fn 308*2139Sjp161948 #undef STORE_method_set_list_start_function 309*2139Sjp161948 #define STORE_method_set_list_start_function STORE_meth_set_list_start_fn 310*2139Sjp161948 #undef STORE_method_set_list_next_function 311*2139Sjp161948 #define STORE_method_set_list_next_function STORE_meth_set_list_next_fn 312*2139Sjp161948 #undef STORE_method_set_list_end_function 313*2139Sjp161948 #define STORE_method_set_list_end_function STORE_meth_set_list_end_fn 314*2139Sjp161948 #undef STORE_method_set_update_store_function 315*2139Sjp161948 #define STORE_method_set_update_store_function STORE_meth_set_update_store_fn 316*2139Sjp161948 #undef STORE_method_set_lock_store_function 317*2139Sjp161948 #define STORE_method_set_lock_store_function STORE_meth_set_lock_store_fn 318*2139Sjp161948 #undef STORE_method_set_unlock_store_function 319*2139Sjp161948 #define STORE_method_set_unlock_store_function STORE_meth_set_unlock_store_fn 320*2139Sjp161948 #undef STORE_method_get_initialise_function 321*2139Sjp161948 #define STORE_method_get_initialise_function STORE_meth_get_initialise_fn 322*2139Sjp161948 #undef STORE_method_get_cleanup_function 323*2139Sjp161948 #define STORE_method_get_cleanup_function STORE_meth_get_cleanup_fn 324*2139Sjp161948 #undef STORE_method_get_generate_function 325*2139Sjp161948 #define STORE_method_get_generate_function STORE_meth_get_generate_fn 326*2139Sjp161948 #undef STORE_method_get_modify_function 327*2139Sjp161948 #define STORE_method_get_modify_function STORE_meth_get_modify_fn 328*2139Sjp161948 #undef STORE_method_get_revoke_function 329*2139Sjp161948 #define STORE_method_get_revoke_function STORE_meth_get_revoke_fn 330*2139Sjp161948 #undef STORE_method_get_delete_function 331*2139Sjp161948 #define STORE_method_get_delete_function STORE_meth_get_delete_fn 332*2139Sjp161948 #undef STORE_method_get_list_start_function 333*2139Sjp161948 #define STORE_method_get_list_start_function STORE_meth_get_list_start_fn 334*2139Sjp161948 #undef STORE_method_get_list_next_function 335*2139Sjp161948 #define STORE_method_get_list_next_function STORE_meth_get_list_next_fn 336*2139Sjp161948 #undef STORE_method_get_list_end_function 337*2139Sjp161948 #define STORE_method_get_list_end_function STORE_meth_get_list_end_fn 338*2139Sjp161948 #undef STORE_method_get_update_store_function 339*2139Sjp161948 #define STORE_method_get_update_store_function STORE_meth_get_update_store_fn 340*2139Sjp161948 #undef STORE_method_get_lock_store_function 341*2139Sjp161948 #define STORE_method_get_lock_store_function STORE_meth_get_lock_store_fn 342*2139Sjp161948 #undef STORE_method_get_unlock_store_function 343*2139Sjp161948 #define STORE_method_get_unlock_store_function STORE_meth_get_unlock_store_fn 3440Sstevel@tonic-gate 3450Sstevel@tonic-gate #endif /* defined OPENSSL_SYS_VMS */ 3460Sstevel@tonic-gate 3470Sstevel@tonic-gate 3480Sstevel@tonic-gate /* Case insensiteve linking causes problems.... */ 3490Sstevel@tonic-gate #if defined(OPENSSL_SYS_WIN16) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) 3500Sstevel@tonic-gate #undef ERR_load_CRYPTO_strings 3510Sstevel@tonic-gate #define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 3520Sstevel@tonic-gate #undef OCSP_crlID_new 3530Sstevel@tonic-gate #define OCSP_crlID_new OCSP_crlID2_new 3540Sstevel@tonic-gate 355*2139Sjp161948 #undef d2i_ECPARAMETERS 356*2139Sjp161948 #define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 357*2139Sjp161948 #undef i2d_ECPARAMETERS 358*2139Sjp161948 #define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 359*2139Sjp161948 #undef d2i_ECPKPARAMETERS 360*2139Sjp161948 #define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 361*2139Sjp161948 #undef i2d_ECPKPARAMETERS 362*2139Sjp161948 #define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 363*2139Sjp161948 3640Sstevel@tonic-gate /* These functions do not seem to exist! However, I'm paranoid... 3650Sstevel@tonic-gate Original command in x509v3.h: 3660Sstevel@tonic-gate These functions are being redefined in another directory, 3670Sstevel@tonic-gate and clash when the linker is case-insensitive, so let's 3680Sstevel@tonic-gate hide them a little, by giving them an extra 'o' at the 3690Sstevel@tonic-gate beginning of the name... */ 3700Sstevel@tonic-gate #undef X509v3_cleanup_extensions 3710Sstevel@tonic-gate #define X509v3_cleanup_extensions oX509v3_cleanup_extensions 3720Sstevel@tonic-gate #undef X509v3_add_extension 3730Sstevel@tonic-gate #define X509v3_add_extension oX509v3_add_extension 3740Sstevel@tonic-gate #undef X509v3_add_netscape_extensions 3750Sstevel@tonic-gate #define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions 3760Sstevel@tonic-gate #undef X509v3_add_standard_extensions 3770Sstevel@tonic-gate #define X509v3_add_standard_extensions oX509v3_add_standard_extensions 3780Sstevel@tonic-gate 3790Sstevel@tonic-gate 3800Sstevel@tonic-gate #endif 3810Sstevel@tonic-gate 3820Sstevel@tonic-gate 3830Sstevel@tonic-gate #endif /* ! defined HEADER_VMS_IDHACKS_H */ 384