1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 /* 9 * $Header: /src/master/dx/src/exec/dpexec/license.h,v 1.5 2000/08/11 15:28:12 davidt Exp $ 10 */ 11 12 #include <dxconfig.h> 13 14 #ifndef _LICENSE_H 15 #define _LICENSE_H 16 17 #define AUTH_MSG_LEN 1024 18 19 #define GOT_CONCURRENT 0xafe3 20 #define GOT_NODELOCKED 0xb673 21 #define GOT_NONE 0x0000 22 23 #define KEY1 "a9" 24 #define KEY2 "Pp" 25 #define ANYWHERE_HOSTID "00000000" 26 27 #define HOST_LEN 301 28 #define KEY_LEN 27 29 30 31 #ifndef TRUE 32 #define TRUE 1 33 #endif 34 #ifndef FALSE 35 #define FALSE 0 36 #endif 37 38 typedef enum 39 { 40 NOLIC = 0, /* Used as a flag by _dxd_exForcedLicense */ 41 DXLIC = 0xde1d, /* Standard DX (development) license */ 42 MPLIC = 0xfe45, /* DX SMP license */ 43 RTLIC = 0x4398, /* DX Run-time (no VPE) license */ 44 RTLIBLIC = 0x24a3 /* DX Run-time libraries (libDXcallm.a) license */ 45 } lictype; 46 47 Error ExGetLicense(lictype ltype, int forceNetLS); 48 Error ExGetPrimaryLicense(); 49 void _dxf_ExReleaseLicense(); 50 int _dxfCheckLicenseChild(int child); 51 52 #endif /* _LICENSE_H */ 53