xref: /aosp_15_r20/external/curl/packages/vms/gnv_conftest.c_first (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker/* File: GNV$CONFTEST.C_FIRST
2*6236dae4SAndroid Build Coastguard Worker *
3*6236dae4SAndroid Build Coastguard Worker * Copyright (C) John Malmberg
4*6236dae4SAndroid Build Coastguard Worker *
5*6236dae4SAndroid Build Coastguard Worker * Permission to use, copy, modify, and/or distribute this software for any
6*6236dae4SAndroid Build Coastguard Worker * purpose with or without fee is hereby granted, provided that the above
7*6236dae4SAndroid Build Coastguard Worker * copyright notice and this permission notice appear in all copies.
8*6236dae4SAndroid Build Coastguard Worker *
9*6236dae4SAndroid Build Coastguard Worker * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*6236dae4SAndroid Build Coastguard Worker * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*6236dae4SAndroid Build Coastguard Worker * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*6236dae4SAndroid Build Coastguard Worker * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*6236dae4SAndroid Build Coastguard Worker * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*6236dae4SAndroid Build Coastguard Worker * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15*6236dae4SAndroid Build Coastguard Worker * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*6236dae4SAndroid Build Coastguard Worker *
17*6236dae4SAndroid Build Coastguard Worker * SPDX-License-Identifier: ISC
18*6236dae4SAndroid Build Coastguard Worker *
19*6236dae4SAndroid Build Coastguard Worker */
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard Worker/* This is needed for Configure tests to get the correct exit status */
22*6236dae4SAndroid Build Coastguard Workervoid __posix_exit(int __status);
23*6236dae4SAndroid Build Coastguard Worker#define exit(__p1) __posix_exit(__p1)
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard Worker/* Fake pass the test to find a standard ldap routine that we know is */
26*6236dae4SAndroid Build Coastguard Worker/* present on VMS, but with the wrong case for the symbol */
27*6236dae4SAndroid Build Coastguard Workerchar ldap_url_parse(void) {return 0;}
28*6236dae4SAndroid Build Coastguard Worker
29*6236dae4SAndroid Build Coastguard Worker/* These are to pass the test that does not use headers */
30*6236dae4SAndroid Build Coastguard Worker/* Because configure does an #undef which keeps us from using #define */
31*6236dae4SAndroid Build Coastguard Worker/* char CRYPTO_add_lock(void) {return 0;} */
32*6236dae4SAndroid Build Coastguard Workerchar SSL_connect(void) {return 0;}
33*6236dae4SAndroid Build Coastguard Workerchar ENGINE_init(void) {return 0;}
34*6236dae4SAndroid Build Coastguard Workerchar RAND_status(void) {return 0;}
35*6236dae4SAndroid Build Coastguard Worker/* char RAND_screen(void) {return 0;} In headers, but not present */
36*6236dae4SAndroid Build Coastguard Workerchar CRYPTO_cleanup_all_ex_data(void) {return 0;}
37*6236dae4SAndroid Build Coastguard Workerchar SSL_get_shutdown(void) {return 0;}
38*6236dae4SAndroid Build Coastguard Workerchar ENGINE_load_builtin_engines (void) {return 0;}
39*6236dae4SAndroid Build Coastguard Worker
40*6236dae4SAndroid Build Coastguard Worker/* And these are to pass the test that uses headers. */
41*6236dae4SAndroid Build Coastguard Worker/* Because the HP OpenSSL transfer vectors are currently in Upper case only */
42*6236dae4SAndroid Build Coastguard Worker#pragma message disable macroredef
43*6236dae4SAndroid Build Coastguard Worker#define CRYPTO_add_lock CRYPTO_ADD_LOCK
44*6236dae4SAndroid Build Coastguard Worker#define SSL_connect SSL_CONNECT
45*6236dae4SAndroid Build Coastguard Worker#define ENGINE_init ENGINE_INIT
46*6236dae4SAndroid Build Coastguard Worker#define RAND_status RAND_STATUS
47*6236dae4SAndroid Build Coastguard Worker/* #define RAND_screen RAND_SCREEN */
48*6236dae4SAndroid Build Coastguard Worker#define CRYPTO_cleanup_all_ex_data CRYPTO_CLEANUP_ALL_EX_DATA
49*6236dae4SAndroid Build Coastguard Worker#define SSL_get_shutdown SSL_GET_SHUTDOWN
50*6236dae4SAndroid Build Coastguard Worker#define ENGINE_load_builtin_engines ENGINE_LOAD_BUILTIN_ENGINES
51*6236dae4SAndroid Build Coastguard Worker
52*6236dae4SAndroid Build Coastguard Worker/* Can not use the #define macro to fix the case on CRYPTO_lock because */
53*6236dae4SAndroid Build Coastguard Worker/* there is a macro CRYPTO_LOCK that is a number */
54*6236dae4SAndroid Build Coastguard Worker
55*6236dae4SAndroid Build Coastguard Worker/* After all the work to get configure to pass the CRYPTO_LOCK tests,
56*6236dae4SAndroid Build Coastguard Worker * it turns out that VMS does not have the CRYPTO_LOCK symbol in the
57*6236dae4SAndroid Build Coastguard Worker * transfer vector, even though it is in the header file.
58*6236dae4SAndroid Build Coastguard Worker */
59