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 9296341Sdelphij * 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 56296341Sdelphij# define HEADER_SYMHACKS_H 5768651Skris 58296341Sdelphij# include <openssl/e_os2.h> 59109998Smarkm 60296341Sdelphij/* 61296341Sdelphij * Hacks to solve the problem with linkers incapable of handling very long 62296341Sdelphij * symbol names. In the case of VMS, the limit is 31 characters on VMS for 63296341Sdelphij * VAX. 64296341Sdelphij */ 65296341Sdelphij/* 66296341Sdelphij * Note that this affects util/libeay.num and util/ssleay.num... you may 67296341Sdelphij * change those manually, but that's not recommended, as those files are 68296341Sdelphij * controlled centrally and updated on Unix, and the central definition may 69296341Sdelphij * disagree with yours, which in turn may come with shareable library 70296341Sdelphij * incompatibilities. 71296341Sdelphij */ 72296341Sdelphij# ifdef OPENSSL_SYS_VMS 7368651Skris 74109998Smarkm/* Hack a long name in crypto/ex_data.c */ 75296341Sdelphij# undef CRYPTO_get_ex_data_implementation 76296341Sdelphij# define CRYPTO_get_ex_data_implementation CRYPTO_get_ex_data_impl 77296341Sdelphij# undef CRYPTO_set_ex_data_implementation 78296341Sdelphij# define CRYPTO_set_ex_data_implementation CRYPTO_set_ex_data_impl 79109998Smarkm 8068651Skris/* Hack a long name in crypto/asn1/a_mbstr.c */ 81296341Sdelphij# undef ASN1_STRING_set_default_mask_asc 82296341Sdelphij# define ASN1_STRING_set_default_mask_asc ASN1_STRING_set_def_mask_asc 8368651Skris 84296341Sdelphij# if 0 /* No longer needed, since safestack macro 85296341Sdelphij * magic does the job */ 8668651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */ 87296341Sdelphij# undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO 88296341Sdelphij# define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO i2d_ASN1_SET_OF_PKCS7_SIGINF 89296341Sdelphij# undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO 90296341Sdelphij# define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO d2i_ASN1_SET_OF_PKCS7_SIGINF 91296341Sdelphij# endif 9268651Skris 93296341Sdelphij# if 0 /* No longer needed, since safestack macro 94296341Sdelphij * magic does the job */ 9568651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */ 96296341Sdelphij# undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO 97296341Sdelphij# define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO i2d_ASN1_SET_OF_PKCS7_RECINF 98296341Sdelphij# undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO 99296341Sdelphij# define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO d2i_ASN1_SET_OF_PKCS7_RECINF 100296341Sdelphij# endif 10168651Skris 102296341Sdelphij# if 0 /* No longer needed, since safestack macro 103296341Sdelphij * magic does the job */ 10468651Skris/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */ 105296341Sdelphij# undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION 106296341Sdelphij# define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION i2d_ASN1_SET_OF_ACC_DESC 107296341Sdelphij# undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION 108296341Sdelphij# define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION d2i_ASN1_SET_OF_ACC_DESC 109296341Sdelphij# endif 11068651Skris 11168651Skris/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */ 112296341Sdelphij# undef PEM_read_NETSCAPE_CERT_SEQUENCE 113296341Sdelphij# define PEM_read_NETSCAPE_CERT_SEQUENCE PEM_read_NS_CERT_SEQ 114296341Sdelphij# undef PEM_write_NETSCAPE_CERT_SEQUENCE 115296341Sdelphij# define PEM_write_NETSCAPE_CERT_SEQUENCE PEM_write_NS_CERT_SEQ 116296341Sdelphij# undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE 117296341Sdelphij# define PEM_read_bio_NETSCAPE_CERT_SEQUENCE PEM_read_bio_NS_CERT_SEQ 118296341Sdelphij# undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE 119296341Sdelphij# define PEM_write_bio_NETSCAPE_CERT_SEQUENCE PEM_write_bio_NS_CERT_SEQ 120296341Sdelphij# undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE 121296341Sdelphij# define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE PEM_write_cb_bio_NS_CERT_SEQ 12268651Skris 12368651Skris/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */ 124296341Sdelphij# undef PEM_read_PKCS8_PRIV_KEY_INFO 125296341Sdelphij# define PEM_read_PKCS8_PRIV_KEY_INFO PEM_read_P8_PRIV_KEY_INFO 126296341Sdelphij# undef PEM_write_PKCS8_PRIV_KEY_INFO 127296341Sdelphij# define PEM_write_PKCS8_PRIV_KEY_INFO PEM_write_P8_PRIV_KEY_INFO 128296341Sdelphij# undef PEM_read_bio_PKCS8_PRIV_KEY_INFO 129296341Sdelphij# define PEM_read_bio_PKCS8_PRIV_KEY_INFO PEM_read_bio_P8_PRIV_KEY_INFO 130296341Sdelphij# undef PEM_write_bio_PKCS8_PRIV_KEY_INFO 131296341Sdelphij# define PEM_write_bio_PKCS8_PRIV_KEY_INFO PEM_write_bio_P8_PRIV_KEY_INFO 132296341Sdelphij# undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO 133296341Sdelphij# define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO PEM_wrt_cb_bio_P8_PRIV_KEY_INFO 13468651Skris 13568651Skris/* Hack other PEM names */ 136296341Sdelphij# undef PEM_write_bio_PKCS8PrivateKey_nid 137296341Sdelphij# define PEM_write_bio_PKCS8PrivateKey_nid PEM_write_bio_PKCS8PrivKey_nid 13868651Skris 13968651Skris/* Hack some long X509 names */ 140296341Sdelphij# undef X509_REVOKED_get_ext_by_critical 141296341Sdelphij# define X509_REVOKED_get_ext_by_critical X509_REVOKED_get_ext_by_critic 142296341Sdelphij# undef X509_policy_tree_get0_user_policies 143296341Sdelphij# define X509_policy_tree_get0_user_policies X509_pcy_tree_get0_usr_policies 144296341Sdelphij# undef X509_policy_node_get0_qualifiers 145296341Sdelphij# define X509_policy_node_get0_qualifiers X509_pcy_node_get0_qualifiers 146296341Sdelphij# undef X509_STORE_CTX_get_explicit_policy 147296341Sdelphij# define X509_STORE_CTX_get_explicit_policy X509_STORE_CTX_get_expl_policy 148296341Sdelphij# undef X509_STORE_CTX_get0_current_issuer 149296341Sdelphij# define X509_STORE_CTX_get0_current_issuer X509_STORE_CTX_get0_cur_issuer 15068651Skris 15168651Skris/* Hack some long CRYPTO names */ 152296341Sdelphij# undef CRYPTO_set_dynlock_destroy_callback 153296341Sdelphij# define CRYPTO_set_dynlock_destroy_callback CRYPTO_set_dynlock_destroy_cb 154296341Sdelphij# undef CRYPTO_set_dynlock_create_callback 155296341Sdelphij# define CRYPTO_set_dynlock_create_callback CRYPTO_set_dynlock_create_cb 156296341Sdelphij# undef CRYPTO_set_dynlock_lock_callback 157296341Sdelphij# define CRYPTO_set_dynlock_lock_callback CRYPTO_set_dynlock_lock_cb 158296341Sdelphij# undef CRYPTO_get_dynlock_lock_callback 159296341Sdelphij# define CRYPTO_get_dynlock_lock_callback CRYPTO_get_dynlock_lock_cb 160296341Sdelphij# undef CRYPTO_get_dynlock_destroy_callback 161296341Sdelphij# define CRYPTO_get_dynlock_destroy_callback CRYPTO_get_dynlock_destroy_cb 162296341Sdelphij# undef CRYPTO_get_dynlock_create_callback 163296341Sdelphij# define CRYPTO_get_dynlock_create_callback CRYPTO_get_dynlock_create_cb 164296341Sdelphij# undef CRYPTO_set_locked_mem_ex_functions 165296341Sdelphij# define CRYPTO_set_locked_mem_ex_functions CRYPTO_set_locked_mem_ex_funcs 166296341Sdelphij# undef CRYPTO_get_locked_mem_ex_functions 167296341Sdelphij# define CRYPTO_get_locked_mem_ex_functions CRYPTO_get_locked_mem_ex_funcs 16868651Skris 16968651Skris/* Hack some long SSL names */ 170296341Sdelphij# undef SSL_CTX_set_default_verify_paths 171296341Sdelphij# define SSL_CTX_set_default_verify_paths SSL_CTX_set_def_verify_paths 172296341Sdelphij# undef SSL_get_ex_data_X509_STORE_CTX_idx 173296341Sdelphij# define SSL_get_ex_data_X509_STORE_CTX_idx SSL_get_ex_d_X509_STORE_CTX_idx 174296341Sdelphij# undef SSL_add_file_cert_subjects_to_stack 175296341Sdelphij# define SSL_add_file_cert_subjects_to_stack SSL_add_file_cert_subjs_to_stk 176296341Sdelphij# undef SSL_add_dir_cert_subjects_to_stack 177296341Sdelphij# define SSL_add_dir_cert_subjects_to_stack SSL_add_dir_cert_subjs_to_stk 178296341Sdelphij# undef SSL_CTX_use_certificate_chain_file 179296341Sdelphij# define SSL_CTX_use_certificate_chain_file SSL_CTX_use_cert_chain_file 180296341Sdelphij# undef SSL_CTX_set_cert_verify_callback 181296341Sdelphij# define SSL_CTX_set_cert_verify_callback SSL_CTX_set_cert_verify_cb 182296341Sdelphij# undef SSL_CTX_set_default_passwd_cb_userdata 183296341Sdelphij# define SSL_CTX_set_default_passwd_cb_userdata SSL_CTX_set_def_passwd_cb_ud 184296341Sdelphij# undef SSL_COMP_get_compression_methods 185296341Sdelphij# define SSL_COMP_get_compression_methods SSL_COMP_get_compress_methods 186296341Sdelphij# undef ssl_add_clienthello_renegotiate_ext 187296341Sdelphij# define ssl_add_clienthello_renegotiate_ext ssl_add_clienthello_reneg_ext 188296341Sdelphij# undef ssl_add_serverhello_renegotiate_ext 189296341Sdelphij# define ssl_add_serverhello_renegotiate_ext ssl_add_serverhello_reneg_ext 190296341Sdelphij# undef ssl_parse_clienthello_renegotiate_ext 191296341Sdelphij# define ssl_parse_clienthello_renegotiate_ext ssl_parse_clienthello_reneg_ext 192296341Sdelphij# undef ssl_parse_serverhello_renegotiate_ext 193296341Sdelphij# define ssl_parse_serverhello_renegotiate_ext ssl_parse_serverhello_reneg_ext 194296341Sdelphij# undef SSL_srp_server_param_with_username 195296341Sdelphij# define SSL_srp_server_param_with_username SSL_srp_server_param_with_un 196296341Sdelphij# undef SSL_CTX_set_srp_client_pwd_callback 197296341Sdelphij# define SSL_CTX_set_srp_client_pwd_callback SSL_CTX_set_srp_client_pwd_cb 198296341Sdelphij# undef SSL_CTX_set_srp_verify_param_callback 199296341Sdelphij# define SSL_CTX_set_srp_verify_param_callback SSL_CTX_set_srp_vfy_param_cb 200296341Sdelphij# undef SSL_CTX_set_srp_username_callback 201296341Sdelphij# define SSL_CTX_set_srp_username_callback SSL_CTX_set_srp_un_cb 202296341Sdelphij# undef ssl_add_clienthello_use_srtp_ext 203296341Sdelphij# define ssl_add_clienthello_use_srtp_ext ssl_add_clihello_use_srtp_ext 204296341Sdelphij# undef ssl_add_serverhello_use_srtp_ext 205296341Sdelphij# define ssl_add_serverhello_use_srtp_ext ssl_add_serhello_use_srtp_ext 206296341Sdelphij# undef ssl_parse_clienthello_use_srtp_ext 207296341Sdelphij# define ssl_parse_clienthello_use_srtp_ext ssl_parse_clihello_use_srtp_ext 208296341Sdelphij# undef ssl_parse_serverhello_use_srtp_ext 209296341Sdelphij# define ssl_parse_serverhello_use_srtp_ext ssl_parse_serhello_use_srtp_ext 210296341Sdelphij# undef SSL_CTX_set_next_protos_advertised_cb 211296341Sdelphij# define SSL_CTX_set_next_protos_advertised_cb SSL_CTX_set_next_protos_adv_cb 212296341Sdelphij# undef SSL_CTX_set_next_proto_select_cb 213296341Sdelphij# define SSL_CTX_set_next_proto_select_cb SSL_CTX_set_next_proto_sel_cb 214296341Sdelphij# undef ssl3_cbc_record_digest_supported 215296341Sdelphij# define ssl3_cbc_record_digest_supported ssl3_cbc_record_digest_support 216296341Sdelphij# undef ssl_check_clienthello_tlsext_late 217296341Sdelphij# define ssl_check_clienthello_tlsext_late ssl_check_clihello_tlsext_late 218296341Sdelphij# undef ssl_check_clienthello_tlsext_early 219296341Sdelphij# define ssl_check_clienthello_tlsext_early ssl_check_clihello_tlsext_early 220205128Ssimon 22168651Skris/* Hack some long ENGINE names */ 222296341Sdelphij# undef ENGINE_get_default_BN_mod_exp_crt 223296341Sdelphij# define ENGINE_get_default_BN_mod_exp_crt ENGINE_get_def_BN_mod_exp_crt 224296341Sdelphij# undef ENGINE_set_default_BN_mod_exp_crt 225296341Sdelphij# define ENGINE_set_default_BN_mod_exp_crt ENGINE_set_def_BN_mod_exp_crt 226296341Sdelphij# undef ENGINE_set_load_privkey_function 227296341Sdelphij# define ENGINE_set_load_privkey_function ENGINE_set_load_privkey_fn 228296341Sdelphij# undef ENGINE_get_load_privkey_function 229296341Sdelphij# define ENGINE_get_load_privkey_function ENGINE_get_load_privkey_fn 230296341Sdelphij# undef ENGINE_unregister_pkey_asn1_meths 231296341Sdelphij# define ENGINE_unregister_pkey_asn1_meths ENGINE_unreg_pkey_asn1_meths 232296341Sdelphij# undef ENGINE_register_all_pkey_asn1_meths 233296341Sdelphij# define ENGINE_register_all_pkey_asn1_meths ENGINE_reg_all_pkey_asn1_meths 234296341Sdelphij# undef ENGINE_set_default_pkey_asn1_meths 235296341Sdelphij# define ENGINE_set_default_pkey_asn1_meths ENGINE_set_def_pkey_asn1_meths 236296341Sdelphij# undef ENGINE_get_pkey_asn1_meth_engine 237296341Sdelphij# define ENGINE_get_pkey_asn1_meth_engine ENGINE_get_pkey_asn1_meth_eng 238296341Sdelphij# undef ENGINE_set_load_ssl_client_cert_function 239296341Sdelphij# define ENGINE_set_load_ssl_client_cert_function \ 240296341Sdelphij ENGINE_set_ld_ssl_clnt_cert_fn 241296341Sdelphij# undef ENGINE_get_ssl_client_cert_function 242296341Sdelphij# define ENGINE_get_ssl_client_cert_function ENGINE_get_ssl_client_cert_fn 24368651Skris 244109998Smarkm/* Hack some long OCSP names */ 245296341Sdelphij# undef OCSP_REQUEST_get_ext_by_critical 246296341Sdelphij# define OCSP_REQUEST_get_ext_by_critical OCSP_REQUEST_get_ext_by_crit 247296341Sdelphij# undef OCSP_BASICRESP_get_ext_by_critical 248296341Sdelphij# define OCSP_BASICRESP_get_ext_by_critical OCSP_BASICRESP_get_ext_by_crit 249296341Sdelphij# undef OCSP_SINGLERESP_get_ext_by_critical 250296341Sdelphij# define OCSP_SINGLERESP_get_ext_by_critical OCSP_SINGLERESP_get_ext_by_crit 25168651Skris 252109998Smarkm/* Hack some long DES names */ 253296341Sdelphij# undef _ossl_old_des_ede3_cfb64_encrypt 254296341Sdelphij# define _ossl_old_des_ede3_cfb64_encrypt _ossl_odes_ede3_cfb64_encrypt 255296341Sdelphij# undef _ossl_old_des_ede3_ofb64_encrypt 256296341Sdelphij# define _ossl_old_des_ede3_ofb64_encrypt _ossl_odes_ede3_ofb64_encrypt 25768651Skris 258109998Smarkm/* Hack some long EVP names */ 259296341Sdelphij# undef OPENSSL_add_all_algorithms_noconf 260296341Sdelphij# define OPENSSL_add_all_algorithms_noconf OPENSSL_add_all_algo_noconf 261296341Sdelphij# undef OPENSSL_add_all_algorithms_conf 262296341Sdelphij# define OPENSSL_add_all_algorithms_conf OPENSSL_add_all_algo_conf 263296341Sdelphij# undef EVP_PKEY_meth_set_verify_recover 264296341Sdelphij# define EVP_PKEY_meth_set_verify_recover EVP_PKEY_meth_set_vrfy_recover 265109998Smarkm 266109998Smarkm/* Hack some long EC names */ 267296341Sdelphij# undef EC_GROUP_set_point_conversion_form 268296341Sdelphij# define EC_GROUP_set_point_conversion_form EC_GROUP_set_point_conv_form 269296341Sdelphij# undef EC_GROUP_get_point_conversion_form 270296341Sdelphij# define EC_GROUP_get_point_conversion_form EC_GROUP_get_point_conv_form 271296341Sdelphij# undef EC_GROUP_clear_free_all_extra_data 272296341Sdelphij# define EC_GROUP_clear_free_all_extra_data EC_GROUP_clr_free_all_xtra_data 273296341Sdelphij# undef EC_KEY_set_public_key_affine_coordinates 274296341Sdelphij# define EC_KEY_set_public_key_affine_coordinates \ 275296341Sdelphij EC_KEY_set_pub_key_aff_coords 276296341Sdelphij# undef EC_POINT_set_Jprojective_coordinates_GFp 277296341Sdelphij# define EC_POINT_set_Jprojective_coordinates_GFp \ 278109998Smarkm EC_POINT_set_Jproj_coords_GFp 279296341Sdelphij# undef EC_POINT_get_Jprojective_coordinates_GFp 280296341Sdelphij# define EC_POINT_get_Jprojective_coordinates_GFp \ 281109998Smarkm EC_POINT_get_Jproj_coords_GFp 282296341Sdelphij# undef EC_POINT_set_affine_coordinates_GFp 283296341Sdelphij# define EC_POINT_set_affine_coordinates_GFp EC_POINT_set_affine_coords_GFp 284296341Sdelphij# undef EC_POINT_get_affine_coordinates_GFp 285296341Sdelphij# define EC_POINT_get_affine_coordinates_GFp EC_POINT_get_affine_coords_GFp 286296341Sdelphij# undef EC_POINT_set_compressed_coordinates_GFp 287296341Sdelphij# define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp 288296341Sdelphij# undef EC_POINT_set_affine_coordinates_GF2m 289296341Sdelphij# define EC_POINT_set_affine_coordinates_GF2m EC_POINT_set_affine_coords_GF2m 290296341Sdelphij# undef EC_POINT_get_affine_coordinates_GF2m 291296341Sdelphij# define EC_POINT_get_affine_coordinates_GF2m EC_POINT_get_affine_coords_GF2m 292296341Sdelphij# undef EC_POINT_set_compressed_coordinates_GF2m 293296341Sdelphij# define EC_POINT_set_compressed_coordinates_GF2m \ 294160814Ssimon EC_POINT_set_compr_coords_GF2m 295296341Sdelphij# undef ec_GF2m_simple_group_clear_finish 296296341Sdelphij# define ec_GF2m_simple_group_clear_finish ec_GF2m_simple_grp_clr_finish 297296341Sdelphij# undef ec_GF2m_simple_group_check_discriminant 298296341Sdelphij# define ec_GF2m_simple_group_check_discriminant ec_GF2m_simple_grp_chk_discrim 299296341Sdelphij# undef ec_GF2m_simple_point_clear_finish 300296341Sdelphij# define ec_GF2m_simple_point_clear_finish ec_GF2m_simple_pt_clr_finish 301296341Sdelphij# undef ec_GF2m_simple_point_set_to_infinity 302296341Sdelphij# define ec_GF2m_simple_point_set_to_infinity ec_GF2m_simple_pt_set_to_inf 303296341Sdelphij# undef ec_GF2m_simple_points_make_affine 304296341Sdelphij# define ec_GF2m_simple_points_make_affine ec_GF2m_simple_pts_make_affine 305296341Sdelphij# undef ec_GF2m_simple_point_set_affine_coordinates 306296341Sdelphij# define ec_GF2m_simple_point_set_affine_coordinates \ 307160814Ssimon ec_GF2m_smp_pt_set_af_coords 308296341Sdelphij# undef ec_GF2m_simple_point_get_affine_coordinates 309296341Sdelphij# define ec_GF2m_simple_point_get_affine_coordinates \ 310160814Ssimon ec_GF2m_smp_pt_get_af_coords 311296341Sdelphij# undef ec_GF2m_simple_set_compressed_coordinates 312296341Sdelphij# define ec_GF2m_simple_set_compressed_coordinates \ 313160814Ssimon ec_GF2m_smp_set_compr_coords 314296341Sdelphij# undef ec_GFp_simple_group_set_curve_GFp 315296341Sdelphij# define ec_GFp_simple_group_set_curve_GFp ec_GFp_simple_grp_set_curve_GFp 316296341Sdelphij# undef ec_GFp_simple_group_get_curve_GFp 317296341Sdelphij# define ec_GFp_simple_group_get_curve_GFp ec_GFp_simple_grp_get_curve_GFp 318296341Sdelphij# undef ec_GFp_simple_group_clear_finish 319296341Sdelphij# define ec_GFp_simple_group_clear_finish ec_GFp_simple_grp_clear_finish 320296341Sdelphij# undef ec_GFp_simple_group_set_generator 321296341Sdelphij# define ec_GFp_simple_group_set_generator ec_GFp_simple_grp_set_generator 322296341Sdelphij# undef ec_GFp_simple_group_get0_generator 323296341Sdelphij# define ec_GFp_simple_group_get0_generator ec_GFp_simple_grp_gt0_generator 324296341Sdelphij# undef ec_GFp_simple_group_get_cofactor 325296341Sdelphij# define ec_GFp_simple_group_get_cofactor ec_GFp_simple_grp_get_cofactor 326296341Sdelphij# undef ec_GFp_simple_point_clear_finish 327296341Sdelphij# define ec_GFp_simple_point_clear_finish ec_GFp_simple_pt_clear_finish 328296341Sdelphij# undef ec_GFp_simple_point_set_to_infinity 329296341Sdelphij# define ec_GFp_simple_point_set_to_infinity ec_GFp_simple_pt_set_to_inf 330296341Sdelphij# undef ec_GFp_simple_points_make_affine 331296341Sdelphij# define ec_GFp_simple_points_make_affine ec_GFp_simple_pts_make_affine 332296341Sdelphij# undef ec_GFp_simple_set_Jprojective_coordinates_GFp 333296341Sdelphij# define ec_GFp_simple_set_Jprojective_coordinates_GFp \ 334109998Smarkm ec_GFp_smp_set_Jproj_coords_GFp 335296341Sdelphij# undef ec_GFp_simple_get_Jprojective_coordinates_GFp 336296341Sdelphij# define ec_GFp_simple_get_Jprojective_coordinates_GFp \ 337109998Smarkm ec_GFp_smp_get_Jproj_coords_GFp 338296341Sdelphij# undef ec_GFp_simple_point_set_affine_coordinates_GFp 339296341Sdelphij# define ec_GFp_simple_point_set_affine_coordinates_GFp \ 340109998Smarkm ec_GFp_smp_pt_set_af_coords_GFp 341296341Sdelphij# undef ec_GFp_simple_point_get_affine_coordinates_GFp 342296341Sdelphij# define ec_GFp_simple_point_get_affine_coordinates_GFp \ 343109998Smarkm ec_GFp_smp_pt_get_af_coords_GFp 344296341Sdelphij# undef ec_GFp_simple_set_compressed_coordinates_GFp 345296341Sdelphij# define ec_GFp_simple_set_compressed_coordinates_GFp \ 346109998Smarkm ec_GFp_smp_set_compr_coords_GFp 347296341Sdelphij# undef ec_GFp_simple_point_set_affine_coordinates 348296341Sdelphij# define ec_GFp_simple_point_set_affine_coordinates \ 349160814Ssimon ec_GFp_smp_pt_set_af_coords 350296341Sdelphij# undef ec_GFp_simple_point_get_affine_coordinates 351296341Sdelphij# define ec_GFp_simple_point_get_affine_coordinates \ 352160814Ssimon ec_GFp_smp_pt_get_af_coords 353296341Sdelphij# undef ec_GFp_simple_set_compressed_coordinates 354296341Sdelphij# define ec_GFp_simple_set_compressed_coordinates \ 355160814Ssimon ec_GFp_smp_set_compr_coords 356296341Sdelphij# undef ec_GFp_simple_group_check_discriminant 357296341Sdelphij# define ec_GFp_simple_group_check_discriminant ec_GFp_simple_grp_chk_discrim 358109998Smarkm 359160814Ssimon/* Hack som long STORE names */ 360296341Sdelphij# undef STORE_method_set_initialise_function 361296341Sdelphij# define STORE_method_set_initialise_function STORE_meth_set_initialise_fn 362296341Sdelphij# undef STORE_method_set_cleanup_function 363296341Sdelphij# define STORE_method_set_cleanup_function STORE_meth_set_cleanup_fn 364296341Sdelphij# undef STORE_method_set_generate_function 365296341Sdelphij# define STORE_method_set_generate_function STORE_meth_set_generate_fn 366296341Sdelphij# undef STORE_method_set_modify_function 367296341Sdelphij# define STORE_method_set_modify_function STORE_meth_set_modify_fn 368296341Sdelphij# undef STORE_method_set_revoke_function 369296341Sdelphij# define STORE_method_set_revoke_function STORE_meth_set_revoke_fn 370296341Sdelphij# undef STORE_method_set_delete_function 371296341Sdelphij# define STORE_method_set_delete_function STORE_meth_set_delete_fn 372296341Sdelphij# undef STORE_method_set_list_start_function 373296341Sdelphij# define STORE_method_set_list_start_function STORE_meth_set_list_start_fn 374296341Sdelphij# undef STORE_method_set_list_next_function 375296341Sdelphij# define STORE_method_set_list_next_function STORE_meth_set_list_next_fn 376296341Sdelphij# undef STORE_method_set_list_end_function 377296341Sdelphij# define STORE_method_set_list_end_function STORE_meth_set_list_end_fn 378296341Sdelphij# undef STORE_method_set_update_store_function 379296341Sdelphij# define STORE_method_set_update_store_function STORE_meth_set_update_store_fn 380296341Sdelphij# undef STORE_method_set_lock_store_function 381296341Sdelphij# define STORE_method_set_lock_store_function STORE_meth_set_lock_store_fn 382296341Sdelphij# undef STORE_method_set_unlock_store_function 383296341Sdelphij# define STORE_method_set_unlock_store_function STORE_meth_set_unlock_store_fn 384296341Sdelphij# undef STORE_method_get_initialise_function 385296341Sdelphij# define STORE_method_get_initialise_function STORE_meth_get_initialise_fn 386296341Sdelphij# undef STORE_method_get_cleanup_function 387296341Sdelphij# define STORE_method_get_cleanup_function STORE_meth_get_cleanup_fn 388296341Sdelphij# undef STORE_method_get_generate_function 389296341Sdelphij# define STORE_method_get_generate_function STORE_meth_get_generate_fn 390296341Sdelphij# undef STORE_method_get_modify_function 391296341Sdelphij# define STORE_method_get_modify_function STORE_meth_get_modify_fn 392296341Sdelphij# undef STORE_method_get_revoke_function 393296341Sdelphij# define STORE_method_get_revoke_function STORE_meth_get_revoke_fn 394296341Sdelphij# undef STORE_method_get_delete_function 395296341Sdelphij# define STORE_method_get_delete_function STORE_meth_get_delete_fn 396296341Sdelphij# undef STORE_method_get_list_start_function 397296341Sdelphij# define STORE_method_get_list_start_function STORE_meth_get_list_start_fn 398296341Sdelphij# undef STORE_method_get_list_next_function 399296341Sdelphij# define STORE_method_get_list_next_function STORE_meth_get_list_next_fn 400296341Sdelphij# undef STORE_method_get_list_end_function 401296341Sdelphij# define STORE_method_get_list_end_function STORE_meth_get_list_end_fn 402296341Sdelphij# undef STORE_method_get_update_store_function 403296341Sdelphij# define STORE_method_get_update_store_function STORE_meth_get_update_store_fn 404296341Sdelphij# undef STORE_method_get_lock_store_function 405296341Sdelphij# define STORE_method_get_lock_store_function STORE_meth_get_lock_store_fn 406296341Sdelphij# undef STORE_method_get_unlock_store_function 407296341Sdelphij# define STORE_method_get_unlock_store_function STORE_meth_get_unlock_store_fn 408160814Ssimon 409238405Sjkim/* Hack some long TS names */ 410296341Sdelphij# undef TS_RESP_CTX_set_status_info_cond 411296341Sdelphij# define TS_RESP_CTX_set_status_info_cond TS_RESP_CTX_set_stat_info_cond 412296341Sdelphij# undef TS_RESP_CTX_set_clock_precision_digits 413296341Sdelphij# define TS_RESP_CTX_set_clock_precision_digits TS_RESP_CTX_set_clk_prec_digits 414296341Sdelphij# undef TS_CONF_set_clock_precision_digits 415296341Sdelphij# define TS_CONF_set_clock_precision_digits TS_CONF_set_clk_prec_digits 416238405Sjkim 417194206Ssimon/* Hack some long CMS names */ 418296341Sdelphij# undef CMS_RecipientInfo_ktri_get0_algs 419296341Sdelphij# define CMS_RecipientInfo_ktri_get0_algs CMS_RecipInfo_ktri_get0_algs 420296341Sdelphij# undef CMS_RecipientInfo_ktri_get0_signer_id 421296341Sdelphij# define CMS_RecipientInfo_ktri_get0_signer_id CMS_RecipInfo_ktri_get0_sigr_id 422296341Sdelphij# undef CMS_OtherRevocationInfoFormat_it 423296341Sdelphij# define CMS_OtherRevocationInfoFormat_it CMS_OtherRevocInfoFormat_it 424296341Sdelphij# undef CMS_KeyAgreeRecipientIdentifier_it 425296341Sdelphij# define CMS_KeyAgreeRecipientIdentifier_it CMS_KeyAgreeRecipIdentifier_it 426296341Sdelphij# undef CMS_OriginatorIdentifierOrKey_it 427296341Sdelphij# define CMS_OriginatorIdentifierOrKey_it CMS_OriginatorIdOrKey_it 428296341Sdelphij# undef cms_SignerIdentifier_get0_signer_id 429296341Sdelphij# define cms_SignerIdentifier_get0_signer_id cms_SignerId_get0_signer_id 430194206Ssimon 431205128Ssimon/* Hack some long DTLS1 names */ 432296341Sdelphij# undef dtls1_retransmit_buffered_messages 433296341Sdelphij# define dtls1_retransmit_buffered_messages dtls1_retransmit_buffered_msgs 434205128Ssimon 435238405Sjkim/* Hack some long SRP names */ 436296341Sdelphij# undef SRP_generate_server_master_secret 437296341Sdelphij# define SRP_generate_server_master_secret SRP_gen_server_master_secret 438296341Sdelphij# undef SRP_generate_client_master_secret 439296341Sdelphij# define SRP_generate_client_master_secret SRP_gen_client_master_secret 440238405Sjkim 441238405Sjkim/* Hack some long UI names */ 442296341Sdelphij# undef UI_method_get_prompt_constructor 443296341Sdelphij# define UI_method_get_prompt_constructor UI_method_get_prompt_constructr 444296341Sdelphij# undef UI_method_set_prompt_constructor 445296341Sdelphij# define UI_method_set_prompt_constructor UI_method_set_prompt_constructr 446238405Sjkim 447296341Sdelphij# endif /* defined OPENSSL_SYS_VMS */ 448109998Smarkm 449238405Sjkim/* Case insensitive linking causes problems.... */ 450296341Sdelphij# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) 451296341Sdelphij# undef ERR_load_CRYPTO_strings 452296341Sdelphij# define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 453296341Sdelphij# undef OCSP_crlID_new 454296341Sdelphij# define OCSP_crlID_new OCSP_crlID2_new 455109998Smarkm 456296341Sdelphij# undef d2i_ECPARAMETERS 457296341Sdelphij# define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 458296341Sdelphij# undef i2d_ECPARAMETERS 459296341Sdelphij# define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 460296341Sdelphij# undef d2i_ECPKPARAMETERS 461296341Sdelphij# define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 462296341Sdelphij# undef i2d_ECPKPARAMETERS 463296341Sdelphij# define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 464160814Ssimon 465296341Sdelphij/* 466296341Sdelphij * These functions do not seem to exist! However, I'm paranoid... Original 467296341Sdelphij * command in x509v3.h: These functions are being redefined in another 468296341Sdelphij * directory, and clash when the linker is case-insensitive, so let's hide 469296341Sdelphij * them a little, by giving them an extra 'o' at the beginning of the name... 470296341Sdelphij */ 471296341Sdelphij# undef X509v3_cleanup_extensions 472296341Sdelphij# define X509v3_cleanup_extensions oX509v3_cleanup_extensions 473296341Sdelphij# undef X509v3_add_extension 474296341Sdelphij# define X509v3_add_extension oX509v3_add_extension 475296341Sdelphij# undef X509v3_add_netscape_extensions 476296341Sdelphij# define X509v3_add_netscape_extensions oX509v3_add_netscape_extensions 477296341Sdelphij# undef X509v3_add_standard_extensions 478296341Sdelphij# define X509v3_add_standard_extensions oX509v3_add_standard_extensions 479109998Smarkm 480238405Sjkim/* This one clashes with CMS_data_create */ 481296341Sdelphij# undef cms_Data_create 482296341Sdelphij# define cms_Data_create priv_cms_Data_create 483109998Smarkm 484296341Sdelphij# endif 48568651Skris 486296341Sdelphij#endif /* ! defined HEADER_VMS_IDHACKS_H */ 487