168651Skris/* ==================================================================== 268651Skris * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 368651Skris * 468651Skris * Redistribution and use in source and binary forms, with or without 568651Skris * modification, are permitted provided that the following conditions 668651Skris * are met: 768651Skris * 868651Skris * 1. Redistributions of source code must retain the above copyright 968651Skris * notice, this list of conditions and the following disclaimer. 1068651Skris * 1168651Skris * 2. Redistributions in binary form must reproduce the above copyright 1268651Skris * notice, this list of conditions and the following disclaimer in 1368651Skris * the documentation and/or other materials provided with the 1468651Skris * distribution. 1568651Skris * 1668651Skris * 3. All advertising materials mentioning features or use of this 1768651Skris * software must display the following acknowledgment: 1868651Skris * "This product includes software developed by the OpenSSL Project 1968651Skris * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 2068651Skris * 2168651Skris * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 2268651Skris * endorse or promote products derived from this software without 2368651Skris * prior written permission. For written permission, please contact 2468651Skris * openssl-core@openssl.org. 2568651Skris * 2668651Skris * 5. Products derived from this software may not be called "OpenSSL" 2768651Skris * nor may "OpenSSL" appear in their names without prior written 2868651Skris * permission of the OpenSSL Project. 2968651Skris * 3068651Skris * 6. Redistributions of any form whatsoever must retain the following 3168651Skris * acknowledgment: 3268651Skris * "This product includes software developed by the OpenSSL Project 3368651Skris * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 3468651Skris * 3568651Skris * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 3668651Skris * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3768651Skris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3868651Skris * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 3968651Skris * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4068651Skris * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 4168651Skris * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 4268651Skris * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4368651Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 4468651Skris * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 4568651Skris * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 4668651Skris * OF THE POSSIBILITY OF SUCH DAMAGE. 4768651Skris * ==================================================================== 4868651Skris * 4968651Skris * This product includes cryptographic software written by Eric Young 5068651Skris * (eay@cryptsoft.com). This product includes software written by Tim 5168651Skris * Hudson (tjh@cryptsoft.com). 5268651Skris * 5368651Skris */ 5468651Skris 5568651Skris#ifndef HEADER_SYMHACKS_H 5668651Skris#define HEADER_SYMHACKS_H 5768651Skris 58109998Smarkm#include <openssl/e_os2.h> 59109998Smarkm 6068651Skris/* Hacks to solve the problem with linkers incapable of handling very long 6168651Skris symbol names. In the case of VMS, the limit is 31 characters on VMS for 6268651Skris VAX. */ 63205128Ssimon/* Note that this affects util/libeay.num and util/ssleay.num... you may 64205128Ssimon change those manually, but that's not recommended, as those files are 65205128Ssimon controlled centrally and updated on Unix, and the central definition 66205128Ssimon may disagree with yours, which in turn may come with shareable library 67205128Ssimon incompatibilities. */ 68109998Smarkm#ifdef OPENSSL_SYS_VMS 6968651Skris 70109998Smarkm/* Hack a long name in crypto/ex_data.c */ 71109998Smarkm#undef CRYPTO_get_ex_data_implementation 72109998Smarkm#define CRYPTO_get_ex_data_implementation CRYPTO_get_ex_data_impl 73109998Smarkm#undef CRYPTO_set_ex_data_implementation 74109998Smarkm#define CRYPTO_set_ex_data_implementation CRYPTO_set_ex_data_impl 75109998Smarkm 7668651Skris/* Hack a long name in crypto/asn1/a_mbstr.c */ 7768651Skris#undef ASN1_STRING_set_default_mask_asc 7868651Skris#define ASN1_STRING_set_default_mask_asc ASN1_STRING_set_def_mask_asc 7968651Skris 8068651Skris#if 0 /* No longer needed, since safestack macro magic does the job */ 8168651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */ 8268651Skris#undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO 8368651Skris#define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO i2d_ASN1_SET_OF_PKCS7_SIGINF 8468651Skris#undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO 8568651Skris#define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO d2i_ASN1_SET_OF_PKCS7_SIGINF 8668651Skris#endif 8768651Skris 8868651Skris#if 0 /* No longer needed, since safestack macro magic does the job */ 8968651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */ 9068651Skris#undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO 9168651Skris#define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO i2d_ASN1_SET_OF_PKCS7_RECINF 9268651Skris#undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO 9368651Skris#define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO d2i_ASN1_SET_OF_PKCS7_RECINF 9468651Skris#endif 9568651Skris 9668651Skris#if 0 /* No longer needed, since safestack macro magic does the job */ 9768651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */ 9868651Skris#undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION 9968651Skris#define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION i2d_ASN1_SET_OF_ACC_DESC 10068651Skris#undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION 10168651Skris#define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION d2i_ASN1_SET_OF_ACC_DESC 10268651Skris#endif 10368651Skris 10468651Skris/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */ 10568651Skris#undef PEM_read_NETSCAPE_CERT_SEQUENCE 10668651Skris#define PEM_read_NETSCAPE_CERT_SEQUENCE PEM_read_NS_CERT_SEQ 10768651Skris#undef PEM_write_NETSCAPE_CERT_SEQUENCE 10868651Skris#define PEM_write_NETSCAPE_CERT_SEQUENCE PEM_write_NS_CERT_SEQ 10968651Skris#undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE 11068651Skris#define PEM_read_bio_NETSCAPE_CERT_SEQUENCE PEM_read_bio_NS_CERT_SEQ 11168651Skris#undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE 11268651Skris#define PEM_write_bio_NETSCAPE_CERT_SEQUENCE PEM_write_bio_NS_CERT_SEQ 11368651Skris#undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE 11468651Skris#define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQ 11568651Skris 11668651Skris/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */ 11768651Skris#undef PEM_read_PKCS8_PRIV_KEY_INFO 11868651Skris#define PEM_read_PKCS8_PRIV_KEY_INFO PEM_read_P8_PRIV_KEY_INFO 11968651Skris#undef PEM_write_PKCS8_PRIV_KEY_INFO 12068651Skris#define PEM_write_PKCS8_PRIV_KEY_INFO PEM_write_P8_PRIV_KEY_INFO 12168651Skris#undef PEM_read_bio_PKCS8_PRIV_KEY_INFO 12268651Skris#define PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_P8_PRIV_KEY_INFO 12368651Skris#undef PEM_write_bio_PKCS8_PRIV_KEY_INFO 12468651Skris#define PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_P8_PRIV_KEY_INFO 12568651Skris#undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO 12668651Skris#define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO PEM_wrt_cb_bio_P8_PRIV_KEY_INFO 12768651Skris 12868651Skris/* Hack other PEM names */ 12968651Skris#undef PEM_write_bio_PKCS8PrivateKey_nid 13068651Skris#define PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8PrivKey_nid 13168651Skris 13268651Skris/* Hack some long X509 names */ 13368651Skris#undef X509_REVOKED_get_ext_by_critical 13468651Skris#define X509_REVOKED_get_ext_by_critical X509_REVOKED_get_ext_by_critic 135160814Ssimon#undef X509_policy_tree_get0_user_policies 136160814Ssimon#define X509_policy_tree_get0_user_policies X509_pcy_tree_get0_usr_policies 137160814Ssimon#undef X509_policy_node_get0_qualifiers 138160814Ssimon#define X509_policy_node_get0_qualifiers X509_pcy_node_get0_qualifiers 139160814Ssimon#undef X509_STORE_CTX_get_explicit_policy 140160814Ssimon#define X509_STORE_CTX_get_explicit_policy X509_STORE_CTX_get_expl_policy 141205128Ssimon#undef X509_STORE_CTX_get0_current_issuer 142205128Ssimon#define X509_STORE_CTX_get0_current_issuer X509_STORE_CTX_get0_cur_issuer 14368651Skris 14468651Skris/* Hack some long CRYPTO names */ 145109998Smarkm#undef CRYPTO_set_dynlock_destroy_callback 14668651Skris#define CRYPTO_set_dynlock_destroy_callback CRYPTO_set_dynlock_destroy_cb 147109998Smarkm#undef CRYPTO_set_dynlock_create_callback 14868651Skris#define CRYPTO_set_dynlock_create_callback CRYPTO_set_dynlock_create_cb 149109998Smarkm#undef CRYPTO_set_dynlock_lock_callback 150238405Sjkim#define CRYPTO_set_dynlock_lock_callback CRYPTO_set_dynlock_lock_cb 151109998Smarkm#undef CRYPTO_get_dynlock_lock_callback 152238405Sjkim#define CRYPTO_get_dynlock_lock_callback CRYPTO_get_dynlock_lock_cb 153109998Smarkm#undef CRYPTO_get_dynlock_destroy_callback 15468651Skris#define CRYPTO_get_dynlock_destroy_callback CRYPTO_get_dynlock_destroy_cb 155109998Smarkm#undef CRYPTO_get_dynlock_create_callback 15668651Skris#define CRYPTO_get_dynlock_create_callback CRYPTO_get_dynlock_create_cb 157109998Smarkm#undef CRYPTO_set_locked_mem_ex_functions 158109998Smarkm#define CRYPTO_set_locked_mem_ex_functions CRYPTO_set_locked_mem_ex_funcs 159109998Smarkm#undef CRYPTO_get_locked_mem_ex_functions 160109998Smarkm#define CRYPTO_get_locked_mem_ex_functions CRYPTO_get_locked_mem_ex_funcs 16168651Skris 16268651Skris/* Hack some long SSL names */ 163109998Smarkm#undef SSL_CTX_set_default_verify_paths 164238405Sjkim#define SSL_CTX_set_default_verify_paths SSL_CTX_set_def_verify_paths 165109998Smarkm#undef SSL_get_ex_data_X509_STORE_CTX_idx 16668651Skris#define SSL_get_ex_data_X509_STORE_CTX_idx SSL_get_ex_d_X509_STORE_CTX_idx 167109998Smarkm#undef SSL_add_file_cert_subjects_to_stack 16868651Skris#define SSL_add_file_cert_subjects_to_stack SSL_add_file_cert_subjs_to_stk 169109998Smarkm#undef SSL_add_dir_cert_subjects_to_stack 17068651Skris#define SSL_add_dir_cert_subjects_to_stack SSL_add_dir_cert_subjs_to_stk 171109998Smarkm#undef SSL_CTX_use_certificate_chain_file 17268651Skris#define SSL_CTX_use_certificate_chain_file SSL_CTX_use_cert_chain_file 173109998Smarkm#undef SSL_CTX_set_cert_verify_callback 174238405Sjkim#define SSL_CTX_set_cert_verify_callback SSL_CTX_set_cert_verify_cb 175109998Smarkm#undef SSL_CTX_set_default_passwd_cb_userdata 17668651Skris#define SSL_CTX_set_default_passwd_cb_userdata SSL_CTX_set_def_passwd_cb_ud 177160814Ssimon#undef SSL_COMP_get_compression_methods 178160814Ssimon#define SSL_COMP_get_compression_methods SSL_COMP_get_compress_methods 179205128Ssimon#undef ssl_add_clienthello_renegotiate_ext 180205128Ssimon#define ssl_add_clienthello_renegotiate_ext ssl_add_clienthello_reneg_ext 181205128Ssimon#undef ssl_add_serverhello_renegotiate_ext 182205128Ssimon#define ssl_add_serverhello_renegotiate_ext ssl_add_serverhello_reneg_ext 183205128Ssimon#undef ssl_parse_clienthello_renegotiate_ext 184205128Ssimon#define ssl_parse_clienthello_renegotiate_ext ssl_parse_clienthello_reneg_ext 185205128Ssimon#undef ssl_parse_serverhello_renegotiate_ext 186205128Ssimon#define ssl_parse_serverhello_renegotiate_ext ssl_parse_serverhello_reneg_ext 187238405Sjkim#undef SSL_srp_server_param_with_username 188238405Sjkim#define SSL_srp_server_param_with_username SSL_srp_server_param_with_un 189238405Sjkim#undef SSL_CTX_set_srp_client_pwd_callback 190238405Sjkim#define SSL_CTX_set_srp_client_pwd_callback SSL_CTX_set_srp_client_pwd_cb 191238405Sjkim#undef SSL_CTX_set_srp_verify_param_callback 192238405Sjkim#define SSL_CTX_set_srp_verify_param_callback SSL_CTX_set_srp_vfy_param_cb 193238405Sjkim#undef SSL_CTX_set_srp_username_callback 194238405Sjkim#define SSL_CTX_set_srp_username_callback SSL_CTX_set_srp_un_cb 195238405Sjkim#undef ssl_add_clienthello_use_srtp_ext 196246772Sjkim#define ssl_add_clienthello_use_srtp_ext ssl_add_clihello_use_srtp_ext 197238405Sjkim#undef ssl_add_serverhello_use_srtp_ext 198246772Sjkim#define ssl_add_serverhello_use_srtp_ext ssl_add_serhello_use_srtp_ext 199238405Sjkim#undef ssl_parse_clienthello_use_srtp_ext 200246772Sjkim#define ssl_parse_clienthello_use_srtp_ext ssl_parse_clihello_use_srtp_ext 201238405Sjkim#undef ssl_parse_serverhello_use_srtp_ext 202246772Sjkim#define ssl_parse_serverhello_use_srtp_ext ssl_parse_serhello_use_srtp_ext 203238405Sjkim#undef SSL_CTX_set_next_protos_advertised_cb 204246772Sjkim#define SSL_CTX_set_next_protos_advertised_cb SSL_CTX_set_next_protos_adv_cb 205238405Sjkim#undef SSL_CTX_set_next_proto_select_cb 206246772Sjkim#define SSL_CTX_set_next_proto_select_cb SSL_CTX_set_next_proto_sel_cb 207279264Sdelphij#undef ssl3_cbc_record_digest_supported 208279264Sdelphij#define ssl3_cbc_record_digest_supported ssl3_cbc_record_digest_support 209279264Sdelphij#undef ssl_check_clienthello_tlsext_late 210279264Sdelphij#define ssl_check_clienthello_tlsext_late ssl_check_clihello_tlsext_late 211279264Sdelphij#undef ssl_check_clienthello_tlsext_early 212279264Sdelphij#define ssl_check_clienthello_tlsext_early ssl_check_clihello_tlsext_early 213205128Ssimon 21468651Skris/* Hack some long ENGINE names */ 215109998Smarkm#undef ENGINE_get_default_BN_mod_exp_crt 21668651Skris#define ENGINE_get_default_BN_mod_exp_crt ENGINE_get_def_BN_mod_exp_crt 217109998Smarkm#undef ENGINE_set_default_BN_mod_exp_crt 21868651Skris#define ENGINE_set_default_BN_mod_exp_crt ENGINE_set_def_BN_mod_exp_crt 219109998Smarkm#undef ENGINE_set_load_privkey_function 220238405Sjkim#define ENGINE_set_load_privkey_function ENGINE_set_load_privkey_fn 221109998Smarkm#undef ENGINE_get_load_privkey_function 222238405Sjkim#define ENGINE_get_load_privkey_function ENGINE_get_load_privkey_fn 223238405Sjkim#undef ENGINE_unregister_pkey_asn1_meths 224238405Sjkim#define ENGINE_unregister_pkey_asn1_meths ENGINE_unreg_pkey_asn1_meths 225238405Sjkim#undef ENGINE_register_all_pkey_asn1_meths 226238405Sjkim#define ENGINE_register_all_pkey_asn1_meths ENGINE_reg_all_pkey_asn1_meths 227238405Sjkim#undef ENGINE_set_default_pkey_asn1_meths 228238405Sjkim#define ENGINE_set_default_pkey_asn1_meths ENGINE_set_def_pkey_asn1_meths 229238405Sjkim#undef ENGINE_get_pkey_asn1_meth_engine 230238405Sjkim#define ENGINE_get_pkey_asn1_meth_engine ENGINE_get_pkey_asn1_meth_eng 231194206Ssimon#undef ENGINE_set_load_ssl_client_cert_function 232194206Ssimon#define ENGINE_set_load_ssl_client_cert_function \ 233194206Ssimon ENGINE_set_ld_ssl_clnt_cert_fn 234194206Ssimon#undef ENGINE_get_ssl_client_cert_function 235194206Ssimon#define ENGINE_get_ssl_client_cert_function ENGINE_get_ssl_client_cert_fn 23668651Skris 237109998Smarkm/* Hack some long OCSP names */ 238109998Smarkm#undef OCSP_REQUEST_get_ext_by_critical 239238405Sjkim#define OCSP_REQUEST_get_ext_by_critical OCSP_REQUEST_get_ext_by_crit 240109998Smarkm#undef OCSP_BASICRESP_get_ext_by_critical 241109998Smarkm#define OCSP_BASICRESP_get_ext_by_critical OCSP_BASICRESP_get_ext_by_crit 242109998Smarkm#undef OCSP_SINGLERESP_get_ext_by_critical 243109998Smarkm#define OCSP_SINGLERESP_get_ext_by_critical OCSP_SINGLERESP_get_ext_by_crit 24468651Skris 245109998Smarkm/* Hack some long DES names */ 246109998Smarkm#undef _ossl_old_des_ede3_cfb64_encrypt 247109998Smarkm#define _ossl_old_des_ede3_cfb64_encrypt _ossl_odes_ede3_cfb64_encrypt 248109998Smarkm#undef _ossl_old_des_ede3_ofb64_encrypt 249109998Smarkm#define _ossl_old_des_ede3_ofb64_encrypt _ossl_odes_ede3_ofb64_encrypt 25068651Skris 251109998Smarkm/* Hack some long EVP names */ 252109998Smarkm#undef OPENSSL_add_all_algorithms_noconf 253109998Smarkm#define OPENSSL_add_all_algorithms_noconf OPENSSL_add_all_algo_noconf 254109998Smarkm#undef OPENSSL_add_all_algorithms_conf 255109998Smarkm#define OPENSSL_add_all_algorithms_conf OPENSSL_add_all_algo_conf 256238405Sjkim#undef EVP_PKEY_meth_set_verify_recover 257238405Sjkim#define EVP_PKEY_meth_set_verify_recover EVP_PKEY_meth_set_vrfy_recover 258109998Smarkm 259109998Smarkm/* Hack some long EC names */ 260160814Ssimon#undef EC_GROUP_set_point_conversion_form 261160814Ssimon#define EC_GROUP_set_point_conversion_form EC_GROUP_set_point_conv_form 262160814Ssimon#undef EC_GROUP_get_point_conversion_form 263160814Ssimon#define EC_GROUP_get_point_conversion_form EC_GROUP_get_point_conv_form 264160814Ssimon#undef EC_GROUP_clear_free_all_extra_data 265160814Ssimon#define EC_GROUP_clear_free_all_extra_data EC_GROUP_clr_free_all_xtra_data 266238405Sjkim#undef EC_KEY_set_public_key_affine_coordinates 267238405Sjkim#define EC_KEY_set_public_key_affine_coordinates \ 268238405Sjkim EC_KEY_set_pub_key_aff_coords 269109998Smarkm#undef EC_POINT_set_Jprojective_coordinates_GFp 270109998Smarkm#define EC_POINT_set_Jprojective_coordinates_GFp \ 271109998Smarkm EC_POINT_set_Jproj_coords_GFp 272109998Smarkm#undef EC_POINT_get_Jprojective_coordinates_GFp 273109998Smarkm#define EC_POINT_get_Jprojective_coordinates_GFp \ 274109998Smarkm EC_POINT_get_Jproj_coords_GFp 275109998Smarkm#undef EC_POINT_set_affine_coordinates_GFp 276109998Smarkm#define EC_POINT_set_affine_coordinates_GFp EC_POINT_set_affine_coords_GFp 277109998Smarkm#undef EC_POINT_get_affine_coordinates_GFp 278109998Smarkm#define EC_POINT_get_affine_coordinates_GFp EC_POINT_get_affine_coords_GFp 279109998Smarkm#undef EC_POINT_set_compressed_coordinates_GFp 280109998Smarkm#define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp 281160814Ssimon#undef EC_POINT_set_affine_coordinates_GF2m 282160814Ssimon#define EC_POINT_set_affine_coordinates_GF2m EC_POINT_set_affine_coords_GF2m 283160814Ssimon#undef EC_POINT_get_affine_coordinates_GF2m 284160814Ssimon#define EC_POINT_get_affine_coordinates_GF2m EC_POINT_get_affine_coords_GF2m 285160814Ssimon#undef EC_POINT_set_compressed_coordinates_GF2m 286160814Ssimon#define EC_POINT_set_compressed_coordinates_GF2m \ 287160814Ssimon EC_POINT_set_compr_coords_GF2m 288160814Ssimon#undef ec_GF2m_simple_group_clear_finish 289238405Sjkim#define ec_GF2m_simple_group_clear_finish ec_GF2m_simple_grp_clr_finish 290160814Ssimon#undef ec_GF2m_simple_group_check_discriminant 291160814Ssimon#define ec_GF2m_simple_group_check_discriminant ec_GF2m_simple_grp_chk_discrim 292160814Ssimon#undef ec_GF2m_simple_point_clear_finish 293238405Sjkim#define ec_GF2m_simple_point_clear_finish ec_GF2m_simple_pt_clr_finish 294160814Ssimon#undef ec_GF2m_simple_point_set_to_infinity 295238405Sjkim#define ec_GF2m_simple_point_set_to_infinity ec_GF2m_simple_pt_set_to_inf 296160814Ssimon#undef ec_GF2m_simple_points_make_affine 297238405Sjkim#define ec_GF2m_simple_points_make_affine ec_GF2m_simple_pts_make_affine 298160814Ssimon#undef ec_GF2m_simple_point_set_affine_coordinates 299160814Ssimon#define ec_GF2m_simple_point_set_affine_coordinates \ 300160814Ssimon ec_GF2m_smp_pt_set_af_coords 301160814Ssimon#undef ec_GF2m_simple_point_get_affine_coordinates 302160814Ssimon#define ec_GF2m_simple_point_get_affine_coordinates \ 303160814Ssimon ec_GF2m_smp_pt_get_af_coords 304160814Ssimon#undef ec_GF2m_simple_set_compressed_coordinates 305160814Ssimon#define ec_GF2m_simple_set_compressed_coordinates \ 306160814Ssimon ec_GF2m_smp_set_compr_coords 307109998Smarkm#undef ec_GFp_simple_group_set_curve_GFp 308109998Smarkm#define ec_GFp_simple_group_set_curve_GFp ec_GFp_simple_grp_set_curve_GFp 309109998Smarkm#undef ec_GFp_simple_group_get_curve_GFp 310109998Smarkm#define ec_GFp_simple_group_get_curve_GFp ec_GFp_simple_grp_get_curve_GFp 311109998Smarkm#undef ec_GFp_simple_group_clear_finish 312238405Sjkim#define ec_GFp_simple_group_clear_finish ec_GFp_simple_grp_clear_finish 313109998Smarkm#undef ec_GFp_simple_group_set_generator 314109998Smarkm#define ec_GFp_simple_group_set_generator ec_GFp_simple_grp_set_generator 315109998Smarkm#undef ec_GFp_simple_group_get0_generator 316109998Smarkm#define ec_GFp_simple_group_get0_generator ec_GFp_simple_grp_gt0_generator 317109998Smarkm#undef ec_GFp_simple_group_get_cofactor 318238405Sjkim#define ec_GFp_simple_group_get_cofactor ec_GFp_simple_grp_get_cofactor 319109998Smarkm#undef ec_GFp_simple_point_clear_finish 320238405Sjkim#define ec_GFp_simple_point_clear_finish ec_GFp_simple_pt_clear_finish 321109998Smarkm#undef ec_GFp_simple_point_set_to_infinity 322109998Smarkm#define ec_GFp_simple_point_set_to_infinity ec_GFp_simple_pt_set_to_inf 323109998Smarkm#undef ec_GFp_simple_points_make_affine 324238405Sjkim#define ec_GFp_simple_points_make_affine ec_GFp_simple_pts_make_affine 325109998Smarkm#undef ec_GFp_simple_set_Jprojective_coordinates_GFp 326109998Smarkm#define ec_GFp_simple_set_Jprojective_coordinates_GFp \ 327109998Smarkm ec_GFp_smp_set_Jproj_coords_GFp 328109998Smarkm#undef ec_GFp_simple_get_Jprojective_coordinates_GFp 329109998Smarkm#define ec_GFp_simple_get_Jprojective_coordinates_GFp \ 330109998Smarkm ec_GFp_smp_get_Jproj_coords_GFp 331109998Smarkm#undef ec_GFp_simple_point_set_affine_coordinates_GFp 332109998Smarkm#define ec_GFp_simple_point_set_affine_coordinates_GFp \ 333109998Smarkm ec_GFp_smp_pt_set_af_coords_GFp 334109998Smarkm#undef ec_GFp_simple_point_get_affine_coordinates_GFp 335109998Smarkm#define ec_GFp_simple_point_get_affine_coordinates_GFp \ 336109998Smarkm ec_GFp_smp_pt_get_af_coords_GFp 337109998Smarkm#undef ec_GFp_simple_set_compressed_coordinates_GFp 338109998Smarkm#define ec_GFp_simple_set_compressed_coordinates_GFp \ 339109998Smarkm ec_GFp_smp_set_compr_coords_GFp 340160814Ssimon#undef ec_GFp_simple_point_set_affine_coordinates 341160814Ssimon#define ec_GFp_simple_point_set_affine_coordinates \ 342160814Ssimon ec_GFp_smp_pt_set_af_coords 343160814Ssimon#undef ec_GFp_simple_point_get_affine_coordinates 344160814Ssimon#define ec_GFp_simple_point_get_affine_coordinates \ 345160814Ssimon ec_GFp_smp_pt_get_af_coords 346160814Ssimon#undef ec_GFp_simple_set_compressed_coordinates 347160814Ssimon#define ec_GFp_simple_set_compressed_coordinates \ 348160814Ssimon ec_GFp_smp_set_compr_coords 349160814Ssimon#undef ec_GFp_simple_group_check_discriminant 350160814Ssimon#define ec_GFp_simple_group_check_discriminant ec_GFp_simple_grp_chk_discrim 351109998Smarkm 352160814Ssimon/* Hack som long STORE names */ 353160814Ssimon#undef STORE_method_set_initialise_function 354160814Ssimon#define STORE_method_set_initialise_function STORE_meth_set_initialise_fn 355160814Ssimon#undef STORE_method_set_cleanup_function 356160814Ssimon#define STORE_method_set_cleanup_function STORE_meth_set_cleanup_fn 357160814Ssimon#undef STORE_method_set_generate_function 358160814Ssimon#define STORE_method_set_generate_function STORE_meth_set_generate_fn 359160814Ssimon#undef STORE_method_set_modify_function 360160814Ssimon#define STORE_method_set_modify_function STORE_meth_set_modify_fn 361160814Ssimon#undef STORE_method_set_revoke_function 362160814Ssimon#define STORE_method_set_revoke_function STORE_meth_set_revoke_fn 363160814Ssimon#undef STORE_method_set_delete_function 364160814Ssimon#define STORE_method_set_delete_function STORE_meth_set_delete_fn 365160814Ssimon#undef STORE_method_set_list_start_function 366160814Ssimon#define STORE_method_set_list_start_function STORE_meth_set_list_start_fn 367160814Ssimon#undef STORE_method_set_list_next_function 368160814Ssimon#define STORE_method_set_list_next_function STORE_meth_set_list_next_fn 369160814Ssimon#undef STORE_method_set_list_end_function 370160814Ssimon#define STORE_method_set_list_end_function STORE_meth_set_list_end_fn 371160814Ssimon#undef STORE_method_set_update_store_function 372160814Ssimon#define STORE_method_set_update_store_function STORE_meth_set_update_store_fn 373160814Ssimon#undef STORE_method_set_lock_store_function 374160814Ssimon#define STORE_method_set_lock_store_function STORE_meth_set_lock_store_fn 375160814Ssimon#undef STORE_method_set_unlock_store_function 376160814Ssimon#define STORE_method_set_unlock_store_function STORE_meth_set_unlock_store_fn 377160814Ssimon#undef STORE_method_get_initialise_function 378160814Ssimon#define STORE_method_get_initialise_function STORE_meth_get_initialise_fn 379160814Ssimon#undef STORE_method_get_cleanup_function 380160814Ssimon#define STORE_method_get_cleanup_function STORE_meth_get_cleanup_fn 381160814Ssimon#undef STORE_method_get_generate_function 382160814Ssimon#define STORE_method_get_generate_function STORE_meth_get_generate_fn 383160814Ssimon#undef STORE_method_get_modify_function 384160814Ssimon#define STORE_method_get_modify_function STORE_meth_get_modify_fn 385160814Ssimon#undef STORE_method_get_revoke_function 386160814Ssimon#define STORE_method_get_revoke_function STORE_meth_get_revoke_fn 387160814Ssimon#undef STORE_method_get_delete_function 388160814Ssimon#define STORE_method_get_delete_function STORE_meth_get_delete_fn 389160814Ssimon#undef STORE_method_get_list_start_function 390160814Ssimon#define STORE_method_get_list_start_function STORE_meth_get_list_start_fn 391160814Ssimon#undef STORE_method_get_list_next_function 392160814Ssimon#define STORE_method_get_list_next_function STORE_meth_get_list_next_fn 393160814Ssimon#undef STORE_method_get_list_end_function 394160814Ssimon#define STORE_method_get_list_end_function STORE_meth_get_list_end_fn 395160814Ssimon#undef STORE_method_get_update_store_function 396160814Ssimon#define STORE_method_get_update_store_function STORE_meth_get_update_store_fn 397160814Ssimon#undef STORE_method_get_lock_store_function 398160814Ssimon#define STORE_method_get_lock_store_function STORE_meth_get_lock_store_fn 399160814Ssimon#undef STORE_method_get_unlock_store_function 400160814Ssimon#define STORE_method_get_unlock_store_function STORE_meth_get_unlock_store_fn 401160814Ssimon 402238405Sjkim/* Hack some long TS names */ 403238405Sjkim#undef TS_RESP_CTX_set_status_info_cond 404238405Sjkim#define TS_RESP_CTX_set_status_info_cond TS_RESP_CTX_set_stat_info_cond 405238405Sjkim#undef TS_RESP_CTX_set_clock_precision_digits 406238405Sjkim#define TS_RESP_CTX_set_clock_precision_digits TS_RESP_CTX_set_clk_prec_digits 407238405Sjkim#undef TS_CONF_set_clock_precision_digits 408238405Sjkim#define TS_CONF_set_clock_precision_digits TS_CONF_set_clk_prec_digits 409238405Sjkim 410194206Ssimon/* Hack some long CMS names */ 411194206Ssimon#undef CMS_RecipientInfo_ktri_get0_algs 412194206Ssimon#define CMS_RecipientInfo_ktri_get0_algs CMS_RecipInfo_ktri_get0_algs 413194206Ssimon#undef CMS_RecipientInfo_ktri_get0_signer_id 414194206Ssimon#define CMS_RecipientInfo_ktri_get0_signer_id CMS_RecipInfo_ktri_get0_sigr_id 415194206Ssimon#undef CMS_OtherRevocationInfoFormat_it 416194206Ssimon#define CMS_OtherRevocationInfoFormat_it CMS_OtherRevocInfoFormat_it 417194206Ssimon#undef CMS_KeyAgreeRecipientIdentifier_it 418194206Ssimon#define CMS_KeyAgreeRecipientIdentifier_it CMS_KeyAgreeRecipIdentifier_it 419194206Ssimon#undef CMS_OriginatorIdentifierOrKey_it 420194206Ssimon#define CMS_OriginatorIdentifierOrKey_it CMS_OriginatorIdOrKey_it 421194206Ssimon#undef cms_SignerIdentifier_get0_signer_id 422194206Ssimon#define cms_SignerIdentifier_get0_signer_id cms_SignerId_get0_signer_id 423194206Ssimon 424205128Ssimon/* Hack some long DTLS1 names */ 425205128Ssimon#undef dtls1_retransmit_buffered_messages 426205128Ssimon#define dtls1_retransmit_buffered_messages dtls1_retransmit_buffered_msgs 427205128Ssimon 428238405Sjkim/* Hack some long SRP names */ 429238405Sjkim#undef SRP_generate_server_master_secret 430238405Sjkim#define SRP_generate_server_master_secret SRP_gen_server_master_secret 431238405Sjkim#undef SRP_generate_client_master_secret 432238405Sjkim#define SRP_generate_client_master_secret SRP_gen_client_master_secret 433238405Sjkim 434238405Sjkim/* Hack some long UI names */ 435238405Sjkim#undef UI_method_get_prompt_constructor 436238405Sjkim#define UI_method_get_prompt_constructor UI_method_get_prompt_constructr 437238405Sjkim#undef UI_method_set_prompt_constructor 438238405Sjkim#define UI_method_set_prompt_constructor UI_method_set_prompt_constructr 439238405Sjkim 440109998Smarkm#endif /* defined OPENSSL_SYS_VMS */ 441109998Smarkm 442109998Smarkm 443238405Sjkim/* Case insensitive linking causes problems.... */ 444238405Sjkim#if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) 44568651Skris#undef ERR_load_CRYPTO_strings 44668651Skris#define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 447109998Smarkm#undef OCSP_crlID_new 448238405Sjkim#define OCSP_crlID_new OCSP_crlID2_new 449109998Smarkm 450160814Ssimon#undef d2i_ECPARAMETERS 451238405Sjkim#define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 452160814Ssimon#undef i2d_ECPARAMETERS 453238405Sjkim#define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 454160814Ssimon#undef d2i_ECPKPARAMETERS 455238405Sjkim#define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 456160814Ssimon#undef i2d_ECPKPARAMETERS 457238405Sjkim#define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 458160814Ssimon 459109998Smarkm/* These functions do not seem to exist! However, I'm paranoid... 460109998Smarkm Original command in x509v3.h: 461109998Smarkm These functions are being redefined in another directory, 462109998Smarkm and clash when the linker is case-insensitive, so let's 463109998Smarkm hide them a little, by giving them an extra 'o' at the 464109998Smarkm beginning of the name... */ 465109998Smarkm#undef X509v3_cleanup_extensions 466238405Sjkim#define X509v3_cleanup_extensions oX509v3_cleanup_extensions 467109998Smarkm#undef X509v3_add_extension 468238405Sjkim#define X509v3_add_extension oX509v3_add_extension 469109998Smarkm#undef X509v3_add_netscape_extensions 470238405Sjkim#define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions 471109998Smarkm#undef X509v3_add_standard_extensions 472238405Sjkim#define X509v3_add_standard_extensions oX509v3_add_standard_extensions 473109998Smarkm 474238405Sjkim/* This one clashes with CMS_data_create */ 475238405Sjkim#undef cms_Data_create 476238405Sjkim#define cms_Data_create priv_cms_Data_create 477109998Smarkm 47868651Skris#endif 47968651Skris 48068651Skris 48168651Skris#endif /* ! defined HEADER_VMS_IDHACKS_H */ 482