home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / cops_104.zip / cops_104 / src / conf.h < prev    next >
C/C++ Source or Header  |  1992-03-10  |  4KB  |  141 lines

  1. /*
  2.  * This program is copyright Alec Muffett 1991 except for some portions of
  3.  * code in "crack-fcrypt.c" which are copyright Robert Baldwin, Icarus
  4.  * Sparry and Alec Muffett.  The author(s) disclaims all responsibility or
  5.  * liability with respect to it's usage or its effect upon hardware or
  6.  * computer systems, and maintain copyright as set out in the "LICENCE"
  7.  * document which accompanies distributions of Crack v4.0 and upwards.
  8.  */
  9.  
  10. #include <stdio.h>
  11. #include <ctype.h>
  12. #include <pwd.h>
  13. #include <signal.h>
  14.  
  15. /*
  16.  * Undefine this symbol if your name is not Alec David Edward Muffett
  17.  */
  18.  
  19. #undef DEVELOPMENT_VERSION
  20.  
  21. /*
  22.  * define this symbol if you are on a system where you don't have the
  23.  * strchr() function in your standard library (usually this means you are on
  24.  * a BSD based system with no System Visms) but instead, you DO have the
  25.  * equivalent index() function.
  26.  */
  27.  
  28. #undef INDEX_NOT_STRCHR
  29.  
  30. /*
  31.  * What bytesex is your machine ? Select one of the two below, if you have
  32.  * some really weird machine - otherwise the program should be able to work
  33.  * it out itself.
  34.  */
  35.  
  36. #undef BIG_ENDIAN
  37. #undef LITTLE_ENDIAN
  38.  
  39. /* If you haven't selected one of the above options... */
  40. #if    !defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
  41.  
  42. /* Can we work out if we are little endian ? */
  43. #if     defined(vax) || defined(ns32000) || defined(sun386) || \
  44.     defined(i386) || defined(MIPSEL) || defined(BIT_ZERO_ON_RIGHT)
  45. #define LITTLE_ENDIAN        /* YES */
  46. #endif
  47.  
  48. /* Can we work out if we are bigendian ? */
  49. #if    defined(sel) || defined(pyr) || defined(mc68000) || \
  50.     defined(sparc) || defined(is68k) || defined(tahoe) || \
  51.     defined(ibm032) || defined(ibm370) || defined(MIPSEB) || \
  52.     defined(__convex__) || defined(hpux) || defined(apollo) || \
  53.     defined (BIT_ZERO_ON_LEFT) || defined(m68k) || defined(m88k) || \
  54.     defined(_IBMR2) || defined(AMIGA) /* yes, an Amiga A500... */
  55. #define BIG_ENDIAN        /* YES */
  56. #endif
  57.  
  58. /* end of trying to guess things */
  59. #endif
  60.  
  61. /* are we schitzophrenic ? */
  62. #if    defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
  63. ERROR_BAD_BIT_ORDER;        /* YES */
  64. #endif
  65.  
  66. /* are we still ignorant ? */
  67. #if    !defined(BIG_ENDIAN) && !defined(LITTLE_ENDIAN)
  68. ERROR_NO_BIT_ORDER;        /* YES */
  69. #endif
  70.  
  71.  
  72. /*
  73.  * define this if you have the macros _toupper() and _tolower(), which are
  74.  * compatible with the un-intelligent K&R versions of the toupper() and
  75.  * tolower() functions, and which do not test their input for validity.
  76.  */
  77.  
  78. #undef FAST_TOCASE
  79.  
  80. /*
  81.  * define this if you are on a Sys V type system with a uname() system call
  82.  * AND YOU HAVE NO gethostname() - it fakes up a BSD gethostname() so you can
  83.  * use CRACK_NETWORK; see crack-port.c
  84.  */
  85.  
  86. #undef CRACK_UNAME
  87.  
  88. /*
  89.  * define this if you want to search the first 1Kb segment of users
  90.  * .plan/.project/.signature files for potential passwords
  91.  */
  92.  
  93. #undef CRACK_DOTFILES
  94.  
  95. /*
  96.  * define this if you are using fcrypt() - you might not want to if fcrypt()
  97.  * doesn't work properly
  98.  */
  99.  
  100. #define FCRYPT
  101.  
  102. /*
  103.  * THE FOLLOWING SYMBOLS PERTAIN ONLY TO FCRYPT() USAGE
  104.  */
  105.  
  106. /*
  107.  * if defined, use builtin clearing in preference to using bzero(), for 4
  108.  * or 8 byte long ints.  This is most preferable, and a Good Thing.  If it
  109.  * is not defined, fcrypt() will try to use bzero().
  110.  */
  111.  
  112. #define BUILTIN_CLEAR
  113.  
  114. /*
  115.  * define this if you have a 4 byte "long_int" on RISC machines and want a
  116.  * speedup - it should not hurt CISC machines either.  Do NOT define it on a
  117.  * 8-byte int machine...
  118.  */
  119.  
  120. #undef FDES_4BYTE
  121.  
  122. /*
  123.  * define this if you are on a Cray or something with an 8-byte int, to
  124.  * enable Matthew Kaufman's fcrypt fix.  I hope it works okay, cos I can't
  125.  * test it - AEM.
  126.  */
  127.  
  128. #undef FDES_8BYTE
  129.  
  130. /*
  131.  * undef this if your compiler knows the fact that 6*x == x<<1 + x<<2
  132.  */
  133.  
  134. #undef BRAINDEAD6
  135.  
  136. /* END OF THINGS THAT NEED CONFIGURING */
  137.  
  138. #ifdef DEVELOPMENT_VERSION
  139. #define FDES_4BYTE
  140. #endif
  141.