epoc32/include/stdapis/openssl/symhacks.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 0 061f57f2323e
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
/* ====================================================================
williamr@2
     2
 * Copyright (c) 1999 The OpenSSL Project.  All rights reserved.
williamr@2
     3
 *
williamr@2
     4
 * Redistribution and use in source and binary forms, with or without
williamr@2
     5
 * modification, are permitted provided that the following conditions
williamr@2
     6
 * are met:
williamr@2
     7
 *
williamr@2
     8
 * 1. Redistributions of source code must retain the above copyright
williamr@2
     9
 *    notice, this list of conditions and the following disclaimer. 
williamr@2
    10
 *
williamr@2
    11
 * 2. Redistributions in binary form must reproduce the above copyright
williamr@2
    12
 *    notice, this list of conditions and the following disclaimer in
williamr@2
    13
 *    the documentation and/or other materials provided with the
williamr@2
    14
 *    distribution.
williamr@2
    15
 *
williamr@2
    16
 * 3. All advertising materials mentioning features or use of this
williamr@2
    17
 *    software must display the following acknowledgment:
williamr@2
    18
 *    "This product includes software developed by the OpenSSL Project
williamr@2
    19
 *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
williamr@2
    20
 *
williamr@2
    21
 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
williamr@2
    22
 *    endorse or promote products derived from this software without
williamr@2
    23
 *    prior written permission. For written permission, please contact
williamr@2
    24
 *    openssl-core@openssl.org.
williamr@2
    25
 *
williamr@2
    26
 * 5. Products derived from this software may not be called "OpenSSL"
williamr@2
    27
 *    nor may "OpenSSL" appear in their names without prior written
williamr@2
    28
 *    permission of the OpenSSL Project.
williamr@2
    29
 *
williamr@2
    30
 * 6. Redistributions of any form whatsoever must retain the following
williamr@2
    31
 *    acknowledgment:
williamr@2
    32
 *    "This product includes software developed by the OpenSSL Project
williamr@2
    33
 *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
williamr@2
    34
 *
williamr@2
    35
 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
williamr@2
    36
 * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
williamr@2
    37
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
williamr@2
    38
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
williamr@2
    39
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
williamr@2
    40
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
williamr@2
    41
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
williamr@2
    42
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
williamr@2
    43
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
williamr@2
    44
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
williamr@2
    45
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
williamr@2
    46
 * OF THE POSSIBILITY OF SUCH DAMAGE.
williamr@2
    47
 * ====================================================================
williamr@2
    48
 *
williamr@2
    49
 * This product includes cryptographic software written by Eric Young
williamr@2
    50
 * (eay@cryptsoft.com).  This product includes software written by Tim
williamr@2
    51
 * Hudson (tjh@cryptsoft.com).
williamr@2
    52
 *
williamr@2
    53
 */
williamr@2
    54
williamr@2
    55
#ifndef HEADER_SYMHACKS_H
williamr@2
    56
#define HEADER_SYMHACKS_H
williamr@2
    57
williamr@2
    58
#if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
williamr@2
    59
#define SYMBIAN
williamr@2
    60
#endif
williamr@2
    61
williamr@2
    62
#include <openssl/e_os2.h>
williamr@2
    63
williamr@2
    64
/* Hacks to solve the problem with linkers incapable of handling very long
williamr@2
    65
   symbol names.  In the case of VMS, the limit is 31 characters on VMS for
williamr@2
    66
   VAX. */
williamr@2
    67
#ifdef OPENSSL_SYS_VMS
williamr@2
    68
williamr@2
    69
/* Hack a long name in crypto/ex_data.c */
williamr@2
    70
#undef CRYPTO_get_ex_data_implementation
williamr@2
    71
#define CRYPTO_get_ex_data_implementation	CRYPTO_get_ex_data_impl
williamr@2
    72
#undef CRYPTO_set_ex_data_implementation
williamr@2
    73
#define CRYPTO_set_ex_data_implementation	CRYPTO_set_ex_data_impl
williamr@2
    74
williamr@2
    75
/* Hack a long name in crypto/asn1/a_mbstr.c */
williamr@2
    76
#undef ASN1_STRING_set_default_mask_asc
williamr@2
    77
#define ASN1_STRING_set_default_mask_asc	ASN1_STRING_set_def_mask_asc
williamr@2
    78
williamr@2
    79
#if 0 /* No longer needed, since safestack macro magic does the job */
williamr@2
    80
/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_SIGNER_INFO) */
williamr@2
    81
#undef i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO
williamr@2
    82
#define i2d_ASN1_SET_OF_PKCS7_SIGNER_INFO	i2d_ASN1_SET_OF_PKCS7_SIGINF
williamr@2
    83
#undef d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO
williamr@2
    84
#define d2i_ASN1_SET_OF_PKCS7_SIGNER_INFO	d2i_ASN1_SET_OF_PKCS7_SIGINF
williamr@2
    85
#endif
williamr@2
    86
williamr@2
    87
#if 0 /* No longer needed, since safestack macro magic does the job */
williamr@2
    88
/* Hack the names created with DECLARE_ASN1_SET_OF(PKCS7_RECIP_INFO) */
williamr@2
    89
#undef i2d_ASN1_SET_OF_PKCS7_RECIP_INFO
williamr@2
    90
#define i2d_ASN1_SET_OF_PKCS7_RECIP_INFO	i2d_ASN1_SET_OF_PKCS7_RECINF
williamr@2
    91
#undef d2i_ASN1_SET_OF_PKCS7_RECIP_INFO
williamr@2
    92
#define d2i_ASN1_SET_OF_PKCS7_RECIP_INFO	d2i_ASN1_SET_OF_PKCS7_RECINF
williamr@2
    93
#endif
williamr@2
    94
williamr@2
    95
#if 0 /* No longer needed, since safestack macro magic does the job */
williamr@2
    96
/* Hack the names created with DECLARE_ASN1_SET_OF(ACCESS_DESCRIPTION) */
williamr@2
    97
#undef i2d_ASN1_SET_OF_ACCESS_DESCRIPTION
williamr@2
    98
#define i2d_ASN1_SET_OF_ACCESS_DESCRIPTION	i2d_ASN1_SET_OF_ACC_DESC
williamr@2
    99
#undef d2i_ASN1_SET_OF_ACCESS_DESCRIPTION
williamr@2
   100
#define d2i_ASN1_SET_OF_ACCESS_DESCRIPTION	d2i_ASN1_SET_OF_ACC_DESC
williamr@2
   101
#endif
williamr@2
   102
williamr@2
   103
/* Hack the names created with DECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE) */
williamr@2
   104
#undef PEM_read_NETSCAPE_CERT_SEQUENCE
williamr@2
   105
#define PEM_read_NETSCAPE_CERT_SEQUENCE		PEM_read_NS_CERT_SEQ
williamr@2
   106
#undef PEM_write_NETSCAPE_CERT_SEQUENCE
williamr@2
   107
#define PEM_write_NETSCAPE_CERT_SEQUENCE	PEM_write_NS_CERT_SEQ
williamr@2
   108
#undef PEM_read_bio_NETSCAPE_CERT_SEQUENCE
williamr@2
   109
#define PEM_read_bio_NETSCAPE_CERT_SEQUENCE	PEM_read_bio_NS_CERT_SEQ
williamr@2
   110
#undef PEM_write_bio_NETSCAPE_CERT_SEQUENCE
williamr@2
   111
#define PEM_write_bio_NETSCAPE_CERT_SEQUENCE	PEM_write_bio_NS_CERT_SEQ
williamr@2
   112
#undef PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE
williamr@2
   113
#define PEM_write_cb_bio_NETSCAPE_CERT_SEQUENCE	PEM_write_cb_bio_NS_CERT_SEQ
williamr@2
   114
williamr@2
   115
/* Hack the names created with DECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO) */
williamr@2
   116
#undef PEM_read_PKCS8_PRIV_KEY_INFO
williamr@2
   117
#define PEM_read_PKCS8_PRIV_KEY_INFO		PEM_read_P8_PRIV_KEY_INFO
williamr@2
   118
#undef PEM_write_PKCS8_PRIV_KEY_INFO
williamr@2
   119
#define PEM_write_PKCS8_PRIV_KEY_INFO		PEM_write_P8_PRIV_KEY_INFO
williamr@2
   120
#undef PEM_read_bio_PKCS8_PRIV_KEY_INFO
williamr@2
   121
#define PEM_read_bio_PKCS8_PRIV_KEY_INFO	PEM_read_bio_P8_PRIV_KEY_INFO
williamr@2
   122
#undef PEM_write_bio_PKCS8_PRIV_KEY_INFO
williamr@2
   123
#define PEM_write_bio_PKCS8_PRIV_KEY_INFO	PEM_write_bio_P8_PRIV_KEY_INFO
williamr@2
   124
#undef PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO
williamr@2
   125
#define PEM_write_cb_bio_PKCS8_PRIV_KEY_INFO	PEM_wrt_cb_bio_P8_PRIV_KEY_INFO
williamr@2
   126
williamr@2
   127
/* Hack other PEM names */
williamr@2
   128
#undef PEM_write_bio_PKCS8PrivateKey_nid
williamr@2
   129
#define PEM_write_bio_PKCS8PrivateKey_nid	PEM_write_bio_PKCS8PrivKey_nid
williamr@2
   130
williamr@2
   131
/* Hack some long X509 names */
williamr@2
   132
#undef X509_REVOKED_get_ext_by_critical
williamr@2
   133
#define X509_REVOKED_get_ext_by_critical	X509_REVOKED_get_ext_by_critic
williamr@2
   134
#undef X509_policy_tree_get0_user_policies
williamr@2
   135
#define X509_policy_tree_get0_user_policies	X509_pcy_tree_get0_usr_policies
williamr@2
   136
#undef X509_policy_node_get0_qualifiers
williamr@2
   137
#define X509_policy_node_get0_qualifiers	X509_pcy_node_get0_qualifiers
williamr@2
   138
#undef X509_STORE_CTX_get_explicit_policy
williamr@2
   139
#define X509_STORE_CTX_get_explicit_policy	X509_STORE_CTX_get_expl_policy
williamr@2
   140
williamr@2
   141
/* Hack some long CRYPTO names */
williamr@2
   142
#undef CRYPTO_set_dynlock_destroy_callback
williamr@2
   143
#define CRYPTO_set_dynlock_destroy_callback     CRYPTO_set_dynlock_destroy_cb
williamr@2
   144
#undef CRYPTO_set_dynlock_create_callback
williamr@2
   145
#define CRYPTO_set_dynlock_create_callback      CRYPTO_set_dynlock_create_cb
williamr@2
   146
#undef CRYPTO_set_dynlock_lock_callback
williamr@2
   147
#define CRYPTO_set_dynlock_lock_callback        CRYPTO_set_dynlock_lock_cb
williamr@2
   148
#undef CRYPTO_get_dynlock_lock_callback
williamr@2
   149
#define CRYPTO_get_dynlock_lock_callback        CRYPTO_get_dynlock_lock_cb
williamr@2
   150
#undef CRYPTO_get_dynlock_destroy_callback
williamr@2
   151
#define CRYPTO_get_dynlock_destroy_callback     CRYPTO_get_dynlock_destroy_cb
williamr@2
   152
#undef CRYPTO_get_dynlock_create_callback
williamr@2
   153
#define CRYPTO_get_dynlock_create_callback      CRYPTO_get_dynlock_create_cb
williamr@2
   154
#undef CRYPTO_set_locked_mem_ex_functions
williamr@2
   155
#define CRYPTO_set_locked_mem_ex_functions      CRYPTO_set_locked_mem_ex_funcs
williamr@2
   156
#undef CRYPTO_get_locked_mem_ex_functions
williamr@2
   157
#define CRYPTO_get_locked_mem_ex_functions      CRYPTO_get_locked_mem_ex_funcs
williamr@2
   158
williamr@2
   159
/* Hack some long SSL names */
williamr@2
   160
#undef SSL_CTX_set_default_verify_paths
williamr@2
   161
#define SSL_CTX_set_default_verify_paths        SSL_CTX_set_def_verify_paths
williamr@2
   162
#undef SSL_get_ex_data_X509_STORE_CTX_idx
williamr@2
   163
#define SSL_get_ex_data_X509_STORE_CTX_idx      SSL_get_ex_d_X509_STORE_CTX_idx
williamr@2
   164
#undef SSL_add_file_cert_subjects_to_stack
williamr@2
   165
#define SSL_add_file_cert_subjects_to_stack     SSL_add_file_cert_subjs_to_stk
williamr@2
   166
#undef SSL_add_dir_cert_subjects_to_stack
williamr@2
   167
#define SSL_add_dir_cert_subjects_to_stack      SSL_add_dir_cert_subjs_to_stk
williamr@2
   168
#undef SSL_CTX_use_certificate_chain_file
williamr@2
   169
#define SSL_CTX_use_certificate_chain_file      SSL_CTX_use_cert_chain_file
williamr@2
   170
#undef SSL_CTX_set_cert_verify_callback
williamr@2
   171
#define SSL_CTX_set_cert_verify_callback        SSL_CTX_set_cert_verify_cb
williamr@2
   172
#undef SSL_CTX_set_default_passwd_cb_userdata
williamr@2
   173
#define SSL_CTX_set_default_passwd_cb_userdata  SSL_CTX_set_def_passwd_cb_ud
williamr@2
   174
#undef SSL_COMP_get_compression_methods
williamr@2
   175
#define SSL_COMP_get_compression_methods	SSL_COMP_get_compress_methods
williamr@2
   176
williamr@2
   177
/* Hack some long ENGINE names */
williamr@2
   178
#undef ENGINE_get_default_BN_mod_exp_crt
williamr@2
   179
#define ENGINE_get_default_BN_mod_exp_crt	ENGINE_get_def_BN_mod_exp_crt
williamr@2
   180
#undef ENGINE_set_default_BN_mod_exp_crt
williamr@2
   181
#define ENGINE_set_default_BN_mod_exp_crt	ENGINE_set_def_BN_mod_exp_crt
williamr@2
   182
#undef ENGINE_set_load_privkey_function
williamr@2
   183
#define ENGINE_set_load_privkey_function        ENGINE_set_load_privkey_fn
williamr@2
   184
#undef ENGINE_get_load_privkey_function
williamr@2
   185
#define ENGINE_get_load_privkey_function        ENGINE_get_load_privkey_fn
williamr@2
   186
williamr@2
   187
/* Hack some long OCSP names */
williamr@2
   188
#undef OCSP_REQUEST_get_ext_by_critical
williamr@2
   189
#define OCSP_REQUEST_get_ext_by_critical        OCSP_REQUEST_get_ext_by_crit
williamr@2
   190
#undef OCSP_BASICRESP_get_ext_by_critical
williamr@2
   191
#define OCSP_BASICRESP_get_ext_by_critical      OCSP_BASICRESP_get_ext_by_crit
williamr@2
   192
#undef OCSP_SINGLERESP_get_ext_by_critical
williamr@2
   193
#define OCSP_SINGLERESP_get_ext_by_critical     OCSP_SINGLERESP_get_ext_by_crit
williamr@2
   194
williamr@2
   195
/* Hack some long DES names */
williamr@2
   196
#undef _ossl_old_des_ede3_cfb64_encrypt
williamr@2
   197
#define _ossl_old_des_ede3_cfb64_encrypt	_ossl_odes_ede3_cfb64_encrypt
williamr@2
   198
#undef _ossl_old_des_ede3_ofb64_encrypt
williamr@2
   199
#define _ossl_old_des_ede3_ofb64_encrypt	_ossl_odes_ede3_ofb64_encrypt
williamr@2
   200
williamr@2
   201
/* Hack some long EVP names */
williamr@2
   202
#undef OPENSSL_add_all_algorithms_noconf
williamr@2
   203
#define OPENSSL_add_all_algorithms_noconf	OPENSSL_add_all_algo_noconf
williamr@2
   204
#undef OPENSSL_add_all_algorithms_conf
williamr@2
   205
#define OPENSSL_add_all_algorithms_conf		OPENSSL_add_all_algo_conf
williamr@2
   206
williamr@2
   207
/* Hack some long EC names */
williamr@2
   208
#undef EC_GROUP_set_point_conversion_form
williamr@2
   209
#define EC_GROUP_set_point_conversion_form	EC_GROUP_set_point_conv_form
williamr@2
   210
#undef EC_GROUP_get_point_conversion_form
williamr@2
   211
#define EC_GROUP_get_point_conversion_form	EC_GROUP_get_point_conv_form
williamr@2
   212
#undef EC_GROUP_clear_free_all_extra_data
williamr@2
   213
#define EC_GROUP_clear_free_all_extra_data	EC_GROUP_clr_free_all_xtra_data
williamr@2
   214
#undef EC_POINT_set_Jprojective_coordinates_GFp
williamr@2
   215
#define EC_POINT_set_Jprojective_coordinates_GFp \
williamr@2
   216
                                                EC_POINT_set_Jproj_coords_GFp
williamr@2
   217
#undef EC_POINT_get_Jprojective_coordinates_GFp
williamr@2
   218
#define EC_POINT_get_Jprojective_coordinates_GFp \
williamr@2
   219
                                                EC_POINT_get_Jproj_coords_GFp
williamr@2
   220
#undef EC_POINT_set_affine_coordinates_GFp
williamr@2
   221
#define EC_POINT_set_affine_coordinates_GFp     EC_POINT_set_affine_coords_GFp
williamr@2
   222
#undef EC_POINT_get_affine_coordinates_GFp
williamr@2
   223
#define EC_POINT_get_affine_coordinates_GFp     EC_POINT_get_affine_coords_GFp
williamr@2
   224
#undef EC_POINT_set_compressed_coordinates_GFp
williamr@2
   225
#define EC_POINT_set_compressed_coordinates_GFp EC_POINT_set_compr_coords_GFp
williamr@2
   226
#undef EC_POINT_set_affine_coordinates_GF2m
williamr@2
   227
#define EC_POINT_set_affine_coordinates_GF2m    EC_POINT_set_affine_coords_GF2m
williamr@2
   228
#undef EC_POINT_get_affine_coordinates_GF2m
williamr@2
   229
#define EC_POINT_get_affine_coordinates_GF2m    EC_POINT_get_affine_coords_GF2m
williamr@2
   230
#undef EC_POINT_set_compressed_coordinates_GF2m
williamr@2
   231
#define EC_POINT_set_compressed_coordinates_GF2m \
williamr@2
   232
                                                EC_POINT_set_compr_coords_GF2m
williamr@2
   233
#undef ec_GF2m_simple_group_clear_finish
williamr@2
   234
#define ec_GF2m_simple_group_clear_finish        ec_GF2m_simple_grp_clr_finish
williamr@2
   235
#undef ec_GF2m_simple_group_check_discriminant
williamr@2
   236
#define ec_GF2m_simple_group_check_discriminant	ec_GF2m_simple_grp_chk_discrim
williamr@2
   237
#undef ec_GF2m_simple_point_clear_finish
williamr@2
   238
#define ec_GF2m_simple_point_clear_finish        ec_GF2m_simple_pt_clr_finish
williamr@2
   239
#undef ec_GF2m_simple_point_set_to_infinity
williamr@2
   240
#define ec_GF2m_simple_point_set_to_infinity     ec_GF2m_simple_pt_set_to_inf
williamr@2
   241
#undef ec_GF2m_simple_points_make_affine
williamr@2
   242
#define ec_GF2m_simple_points_make_affine        ec_GF2m_simple_pts_make_affine
williamr@2
   243
#undef ec_GF2m_simple_point_set_affine_coordinates
williamr@2
   244
#define ec_GF2m_simple_point_set_affine_coordinates \
williamr@2
   245
                                                ec_GF2m_smp_pt_set_af_coords
williamr@2
   246
#undef ec_GF2m_simple_point_get_affine_coordinates
williamr@2
   247
#define ec_GF2m_simple_point_get_affine_coordinates \
williamr@2
   248
                                                ec_GF2m_smp_pt_get_af_coords
williamr@2
   249
#undef ec_GF2m_simple_set_compressed_coordinates
williamr@2
   250
#define ec_GF2m_simple_set_compressed_coordinates \
williamr@2
   251
                                                ec_GF2m_smp_set_compr_coords
williamr@2
   252
#undef ec_GFp_simple_group_set_curve_GFp
williamr@2
   253
#define ec_GFp_simple_group_set_curve_GFp       ec_GFp_simple_grp_set_curve_GFp
williamr@2
   254
#undef ec_GFp_simple_group_get_curve_GFp
williamr@2
   255
#define ec_GFp_simple_group_get_curve_GFp       ec_GFp_simple_grp_get_curve_GFp
williamr@2
   256
#undef ec_GFp_simple_group_clear_finish
williamr@2
   257
#define ec_GFp_simple_group_clear_finish        ec_GFp_simple_grp_clear_finish
williamr@2
   258
#undef ec_GFp_simple_group_set_generator
williamr@2
   259
#define ec_GFp_simple_group_set_generator       ec_GFp_simple_grp_set_generator
williamr@2
   260
#undef ec_GFp_simple_group_get0_generator
williamr@2
   261
#define ec_GFp_simple_group_get0_generator      ec_GFp_simple_grp_gt0_generator
williamr@2
   262
#undef ec_GFp_simple_group_get_cofactor
williamr@2
   263
#define ec_GFp_simple_group_get_cofactor        ec_GFp_simple_grp_get_cofactor
williamr@2
   264
#undef ec_GFp_simple_point_clear_finish
williamr@2
   265
#define ec_GFp_simple_point_clear_finish        ec_GFp_simple_pt_clear_finish
williamr@2
   266
#undef ec_GFp_simple_point_set_to_infinity
williamr@2
   267
#define ec_GFp_simple_point_set_to_infinity     ec_GFp_simple_pt_set_to_inf
williamr@2
   268
#undef ec_GFp_simple_points_make_affine
williamr@2
   269
#define ec_GFp_simple_points_make_affine        ec_GFp_simple_pts_make_affine
williamr@2
   270
#undef ec_GFp_simple_group_get_curve_GFp
williamr@2
   271
#define ec_GFp_simple_group_get_curve_GFp       ec_GFp_simple_grp_get_curve_GFp
williamr@2
   272
#undef ec_GFp_simple_set_Jprojective_coordinates_GFp
williamr@2
   273
#define ec_GFp_simple_set_Jprojective_coordinates_GFp \
williamr@2
   274
                                                ec_GFp_smp_set_Jproj_coords_GFp
williamr@2
   275
#undef ec_GFp_simple_get_Jprojective_coordinates_GFp
williamr@2
   276
#define ec_GFp_simple_get_Jprojective_coordinates_GFp \
williamr@2
   277
                                                ec_GFp_smp_get_Jproj_coords_GFp
williamr@2
   278
#undef ec_GFp_simple_point_set_affine_coordinates_GFp
williamr@2
   279
#define ec_GFp_simple_point_set_affine_coordinates_GFp \
williamr@2
   280
                                                ec_GFp_smp_pt_set_af_coords_GFp
williamr@2
   281
#undef ec_GFp_simple_point_get_affine_coordinates_GFp
williamr@2
   282
#define ec_GFp_simple_point_get_affine_coordinates_GFp \
williamr@2
   283
                                                ec_GFp_smp_pt_get_af_coords_GFp
williamr@2
   284
#undef ec_GFp_simple_set_compressed_coordinates_GFp
williamr@2
   285
#define ec_GFp_simple_set_compressed_coordinates_GFp \
williamr@2
   286
                                                ec_GFp_smp_set_compr_coords_GFp
williamr@2
   287
#undef ec_GFp_simple_point_set_affine_coordinates
williamr@2
   288
#define ec_GFp_simple_point_set_affine_coordinates \
williamr@2
   289
                                                ec_GFp_smp_pt_set_af_coords
williamr@2
   290
#undef ec_GFp_simple_point_get_affine_coordinates
williamr@2
   291
#define ec_GFp_simple_point_get_affine_coordinates \
williamr@2
   292
                                                ec_GFp_smp_pt_get_af_coords
williamr@2
   293
#undef ec_GFp_simple_set_compressed_coordinates
williamr@2
   294
#define ec_GFp_simple_set_compressed_coordinates \
williamr@2
   295
                                                ec_GFp_smp_set_compr_coords
williamr@2
   296
#undef ec_GFp_simple_group_check_discriminant
williamr@2
   297
#define ec_GFp_simple_group_check_discriminant	ec_GFp_simple_grp_chk_discrim
williamr@2
   298
williamr@2
   299
/* Hack som long STORE names */
williamr@2
   300
#undef STORE_method_set_initialise_function
williamr@2
   301
#define STORE_method_set_initialise_function	STORE_meth_set_initialise_fn
williamr@2
   302
#undef STORE_method_set_cleanup_function
williamr@2
   303
#define STORE_method_set_cleanup_function	STORE_meth_set_cleanup_fn
williamr@2
   304
#undef STORE_method_set_generate_function
williamr@2
   305
#define STORE_method_set_generate_function	STORE_meth_set_generate_fn
williamr@2
   306
#undef STORE_method_set_modify_function
williamr@2
   307
#define STORE_method_set_modify_function	STORE_meth_set_modify_fn
williamr@2
   308
#undef STORE_method_set_revoke_function
williamr@2
   309
#define STORE_method_set_revoke_function	STORE_meth_set_revoke_fn
williamr@2
   310
#undef STORE_method_set_delete_function
williamr@2
   311
#define STORE_method_set_delete_function	STORE_meth_set_delete_fn
williamr@2
   312
#undef STORE_method_set_list_start_function
williamr@2
   313
#define STORE_method_set_list_start_function	STORE_meth_set_list_start_fn
williamr@2
   314
#undef STORE_method_set_list_next_function
williamr@2
   315
#define STORE_method_set_list_next_function	STORE_meth_set_list_next_fn
williamr@2
   316
#undef STORE_method_set_list_end_function
williamr@2
   317
#define STORE_method_set_list_end_function	STORE_meth_set_list_end_fn
williamr@2
   318
#undef STORE_method_set_update_store_function
williamr@2
   319
#define STORE_method_set_update_store_function	STORE_meth_set_update_store_fn
williamr@2
   320
#undef STORE_method_set_lock_store_function
williamr@2
   321
#define STORE_method_set_lock_store_function	STORE_meth_set_lock_store_fn
williamr@2
   322
#undef STORE_method_set_unlock_store_function
williamr@2
   323
#define STORE_method_set_unlock_store_function	STORE_meth_set_unlock_store_fn
williamr@2
   324
#undef STORE_method_get_initialise_function
williamr@2
   325
#define STORE_method_get_initialise_function	STORE_meth_get_initialise_fn
williamr@2
   326
#undef STORE_method_get_cleanup_function
williamr@2
   327
#define STORE_method_get_cleanup_function	STORE_meth_get_cleanup_fn
williamr@2
   328
#undef STORE_method_get_generate_function
williamr@2
   329
#define STORE_method_get_generate_function	STORE_meth_get_generate_fn
williamr@2
   330
#undef STORE_method_get_modify_function
williamr@2
   331
#define STORE_method_get_modify_function	STORE_meth_get_modify_fn
williamr@2
   332
#undef STORE_method_get_revoke_function
williamr@2
   333
#define STORE_method_get_revoke_function	STORE_meth_get_revoke_fn
williamr@2
   334
#undef STORE_method_get_delete_function
williamr@2
   335
#define STORE_method_get_delete_function	STORE_meth_get_delete_fn
williamr@2
   336
#undef STORE_method_get_list_start_function
williamr@2
   337
#define STORE_method_get_list_start_function	STORE_meth_get_list_start_fn
williamr@2
   338
#undef STORE_method_get_list_next_function
williamr@2
   339
#define STORE_method_get_list_next_function	STORE_meth_get_list_next_fn
williamr@2
   340
#undef STORE_method_get_list_end_function
williamr@2
   341
#define STORE_method_get_list_end_function	STORE_meth_get_list_end_fn
williamr@2
   342
#undef STORE_method_get_update_store_function
williamr@2
   343
#define STORE_method_get_update_store_function	STORE_meth_get_update_store_fn
williamr@2
   344
#undef STORE_method_get_lock_store_function
williamr@2
   345
#define STORE_method_get_lock_store_function	STORE_meth_get_lock_store_fn
williamr@2
   346
#undef STORE_method_get_unlock_store_function
williamr@2
   347
#define STORE_method_get_unlock_store_function	STORE_meth_get_unlock_store_fn
williamr@2
   348
williamr@2
   349
#endif /* defined OPENSSL_SYS_VMS */
williamr@2
   350
williamr@2
   351
williamr@2
   352
/* Case insensiteve linking causes problems.... */
williamr@2
   353
#if defined(OPENSSL_SYS_WIN16) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2)
williamr@2
   354
#undef ERR_load_CRYPTO_strings
williamr@2
   355
#define ERR_load_CRYPTO_strings			ERR_load_CRYPTOlib_strings
williamr@2
   356
#undef OCSP_crlID_new
williamr@2
   357
#define OCSP_crlID_new                          OCSP_crlID2_new
williamr@2
   358
williamr@2
   359
#undef d2i_ECPARAMETERS
williamr@2
   360
#define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS
williamr@2
   361
#undef i2d_ECPARAMETERS
williamr@2
   362
#define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS
williamr@2
   363
#undef d2i_ECPKPARAMETERS
williamr@2
   364
#define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS
williamr@2
   365
#undef i2d_ECPKPARAMETERS
williamr@2
   366
#define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS
williamr@2
   367
williamr@2
   368
/* These functions do not seem to exist!  However, I'm paranoid...
williamr@2
   369
   Original command in x509v3.h:
williamr@2
   370
   These functions are being redefined in another directory,
williamr@2
   371
   and clash when the linker is case-insensitive, so let's
williamr@2
   372
   hide them a little, by giving them an extra 'o' at the
williamr@2
   373
   beginning of the name... */
williamr@2
   374
#undef X509v3_cleanup_extensions
williamr@2
   375
#define X509v3_cleanup_extensions               oX509v3_cleanup_extensions
williamr@2
   376
#undef X509v3_add_extension
williamr@2
   377
#define X509v3_add_extension                    oX509v3_add_extension
williamr@2
   378
#undef X509v3_add_netscape_extensions
williamr@2
   379
#define X509v3_add_netscape_extensions          oX509v3_add_netscape_extensions
williamr@2
   380
#undef X509v3_add_standard_extensions
williamr@2
   381
#define X509v3_add_standard_extensions          oX509v3_add_standard_extensions
williamr@2
   382
williamr@2
   383
williamr@2
   384
#endif
williamr@2
   385
williamr@2
   386
williamr@2
   387
#endif /* ! defined HEADER_VMS_IDHACKS_H */