AnyConnect Secure Mobility Client 5.0.01242

include/ClientIfcCommon.h

00001 /**************************************************************************
00002 *   Copyright (c) 2022 Cisco Systems, Inc.
00003 *   All Rights Reserved. Cisco Highly Confidential.
00004 ***************************************************************************
00005 * 
00006 *   File:   ClientIfcCommon.h
00007 *   Author: Chris Fitzgerald
00008 *   Date:   03/2022
00009 * 
00010 ***************************************************************************
00011 *   Client Interface Common defines for the Client API.
00012 ***************************************************************************/
00013 #ifndef _CLIENTIFCCOMMON_
00014 #define _CLIENTIFCCOMMON_
00015 
00016 /*
00017  * SCRIPTING_SUPPORTED, INTERPROCESS_COMMUNICATION_SUPPORTED macro is a copy of corresponding
00018  * #define from GenDefs.h. Any change in #define for the macro in GenDefs.h must propogated to
00019  * this header file too. We duplicate this definition here due to the manner in which we distribute
00020  * our code to partners; we cannot include GenDefs.h from here.
00021  */
00022 #if !defined(PLATFORM_APPLE_SSLVPN) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_WIN_APP)
00023 #define SCRIPTING_SUPPORTED
00024 #endif
00025 #if !defined(PLATFORM_WIN_APP)
00026 #define INTERPROCESS_COMMUNICATION_SUPPORTED
00027 #endif
00028 
00029 /*
00030  * SCEP_CERTIFICATE_ENROLLMENT_SUPPORTED macro is a copy of corresponding #define from GenDefs.h.
00031  * Any change in #define for the macro in GenDefs.h must propogated to this header file too. We
00032  * duplicate this definition here due to the manner in which we distribute our code to partners;
00033  * we cannot include GenDefs.h from here.
00034  */
00035 #if defined(_WIN32) || defined(_WIN32_WCE) || defined(PLATFORM_DARWIN) || defined(PLATFORM_LINUX) || defined(PLATFORM_ANDROID) || defined(PLATFORM_APPLE_SSLVPN)
00036 #define SCEP_CERTIFICATE_ENROLLMENT_SUPPORTED
00037 #endif
00038 
00039 /*
00040  * HOST_DATA_SUPPORTED macro is a copy of corresponding #define from GenDefs.h. Any change
00041  * in #define for the macro in GenDefs.h must propogated to this header file too. We duplicate
00042  * this definition here due to the manner in which we distribute our code to partners;
00043  * we cannot include GenDefs.h from here.
00044  */
00045 #if defined(PLATFORM_ANDROID) || defined(PLATFORM_APPLE_SSLVPN) || defined(PLATFORM_CHROMEBOOK)
00046 #define HOST_DATA_SUPPORTED
00047 #endif
00048 
00049 /*
00050  * MANUAL_PKCS12_IMPORT_SUPPORTED macro is a copy of corresponding #define from GenDefs.h.
00051  * Any change in #define for the macro in GenDefs.h must propogated to this header file too.
00052  * We duplicate this definition here due to the manner in which we distribute our
00053  * code to partners; we cannot include GenDefs.h from here.
00054  */
00055 #if defined(PLATFORM_APPLE_SSLVPN) || defined(PLATFORM_ANDROID) || defined(PRODUCT_TYPE_SSA)
00056 #define MANUAL_PKCS12_IMPORT_SUPPORTED
00057 #endif
00058 
00059 /*
00060  * PROGRAM_DATA_IMPORT_SUPPORTED macro is a copy of corresponding #define from GenDefs.h.
00061  * Any change in #define for the macro in GenDefs.h must propogated to this header file too.
00062  * We duplicate this definition here due to the manner in which we distribute our
00063  * code to partners; we cannot include GenDefs.h from here.
00064  */
00065 #if defined(PLATFORM_ANDROID)
00066 #define PROGRAM_DATA_IMPORT_SUPPORTED
00067 #endif
00068 
00069 /*
00070  * CREDENTIAL_PREFILL_SUPPORTED macro is a copy of corresponding #define from GenDefs.h.
00071  * Any change in #define for the macro in GenDefs.h must propogated to this header file too.
00072  * We duplicate this definition here due to the manner in which we distribute our
00073  * code to partners; we cannot include GenDefs.h from here.
00074  */
00075 #if defined(PLATFORM_ANDROID)
00076 #define CREDENTIAL_PREFILL_SUPPORTED
00077 #endif
00078 
00079 #if defined(MANUAL_PKCS12_IMPORT_SUPPORTED) && !defined(__GENDEFS_H)
00080 #if defined(HAVE_STDINT_H)
00081 #include <stdint.h>
00082 #else
00083 typedef unsigned char uint8_t;
00084 #endif // HAVE_STDINT_H
00085 #endif // MANUAL_PKCS12_IMPORT_SUPPORTED
00086 
00087 #if defined(PLATFORM_WIN_APP)
00088 typedef unsigned char uint8_t;
00089 #endif
00090 
00091 
00092 #endif // _CLIENTIFCCOMMON_