patch-crypto_opensslconf_h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. --- openssl-1.0.1i.orig/crypto/opensslconf.h 2014-08-06 23:18:45.000000000 +0200
  2. +++ openssl-1.0.1i/crypto/opensslconf.h 2014-08-07 10:03:55.000000000 +0200
  3. @@ -5,12 +5,27 @@
  4. #ifndef OPENSSL_DOING_MAKEDEPEND
  5. +#ifndef OPENSSL_NO_AES192
  6. +# define OPENSSL_NO_AES192
  7. +#endif
  8. +#ifndef OPENSSL_NO_CAMELLIA
  9. +# define OPENSSL_NO_CAMELLIA
  10. +#endif
  11. +#ifndef OPENSSL_NO_CAST
  12. +# define OPENSSL_NO_CAST
  13. +#endif
  14. #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  15. # define OPENSSL_NO_EC_NISTP_64_GCC_128
  16. #endif
  17. +#ifndef OPENSSL_NO_ENGINES
  18. +# define OPENSSL_NO_ENGINES
  19. +#endif
  20. #ifndef OPENSSL_NO_GMP
  21. # define OPENSSL_NO_GMP
  22. #endif
  23. +#ifndef OPENSSL_NO_IDEA
  24. +# define OPENSSL_NO_IDEA
  25. +#endif
  26. #ifndef OPENSSL_NO_JPAKE
  27. # define OPENSSL_NO_JPAKE
  28. #endif
  29. @@ -20,15 +35,27 @@
  30. #ifndef OPENSSL_NO_MD2
  31. # define OPENSSL_NO_MD2
  32. #endif
  33. +#ifndef OPENSSL_NO_MDC2
  34. +# define OPENSSL_NO_MDC2
  35. +#endif
  36. #ifndef OPENSSL_NO_RC5
  37. # define OPENSSL_NO_RC5
  38. #endif
  39. #ifndef OPENSSL_NO_RFC3779
  40. # define OPENSSL_NO_RFC3779
  41. #endif
  42. +#ifndef OPENSSL_NO_RIPEMD
  43. +# define OPENSSL_NO_RIPEMD
  44. +#endif
  45. #ifndef OPENSSL_NO_SCTP
  46. # define OPENSSL_NO_SCTP
  47. #endif
  48. +#ifndef OPENSSL_NO_SHA0
  49. +# define OPENSSL_NO_SHA0
  50. +#endif
  51. +#ifndef OPENSSL_NO_SMIME
  52. +# define OPENSSL_NO_SMIME
  53. +#endif
  54. #ifndef OPENSSL_NO_STORE
  55. # define OPENSSL_NO_STORE
  56. #endif
  57. @@ -38,8 +65,14 @@
  58. #endif /* OPENSSL_DOING_MAKEDEPEND */
  59. -#ifndef OPENSSL_NO_DYNAMIC_ENGINE
  60. -# define OPENSSL_NO_DYNAMIC_ENGINE
  61. +#ifndef OPENSSL_THREADS
  62. +# define OPENSSL_THREADS
  63. +#endif
  64. +#ifndef OPENSSL_NO_ERR
  65. +# define OPENSSL_NO_ERR
  66. +#endif
  67. +#ifndef OPENSSL_NO_STATIC_ENGINE
  68. +# define OPENSSL_NO_STATIC_ENGINE
  69. #endif
  70. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  71. @@ -47,12 +80,27 @@
  72. who haven't had the time to do the appropriate changes in their
  73. applications. */
  74. #ifdef OPENSSL_ALGORITHM_DEFINES
  75. +# if defined(OPENSSL_NO_AES192) && !defined(NO_AES192)
  76. +# define NO_AES192
  77. +# endif
  78. +# if defined(OPENSSL_NO_CAMELLIA) && !defined(NO_CAMELLIA)
  79. +# define NO_CAMELLIA
  80. +# endif
  81. +# if defined(OPENSSL_NO_CAST) && !defined(NO_CAST)
  82. +# define NO_CAST
  83. +# endif
  84. # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
  85. # define NO_EC_NISTP_64_GCC_128
  86. # endif
  87. +# if defined(OPENSSL_NO_ENGINES) && !defined(NO_ENGINES)
  88. +# define NO_ENGINES
  89. +# endif
  90. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  91. # define NO_GMP
  92. # endif
  93. +# if defined(OPENSSL_NO_IDEA) && !defined(NO_IDEA)
  94. +# define NO_IDEA
  95. +# endif
  96. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  97. # define NO_JPAKE
  98. # endif
  99. @@ -62,15 +110,27 @@
  100. # if defined(OPENSSL_NO_MD2) && !defined(NO_MD2)
  101. # define NO_MD2
  102. # endif
  103. +# if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
  104. +# define NO_MDC2
  105. +# endif
  106. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  107. # define NO_RC5
  108. # endif
  109. # if defined(OPENSSL_NO_RFC3779) && !defined(NO_RFC3779)
  110. # define NO_RFC3779
  111. # endif
  112. +# if defined(OPENSSL_NO_RIPEMD) && !defined(NO_RIPEMD)
  113. +# define NO_RIPEMD
  114. +# endif
  115. # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
  116. # define NO_SCTP
  117. # endif
  118. +# if defined(OPENSSL_NO_SHA0) && !defined(NO_SHA0)
  119. +# define NO_SHA0
  120. +# endif
  121. +# if defined(OPENSSL_NO_SMIME) && !defined(NO_SMIME)
  122. +# define NO_SMIME
  123. +# endif
  124. # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
  125. # define NO_STORE
  126. # endif
  127. @@ -86,8 +146,8 @@
  128. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  129. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  130. -#define ENGINESDIR "/usr/local/ssl/lib/engines"
  131. -#define OPENSSLDIR "/usr/local/ssl"
  132. +#define ENGINESDIR "/usr/lib/engines"
  133. +#define OPENSSLDIR "/etc/ssl"
  134. #endif
  135. #endif
  136. @@ -118,14 +178,14 @@
  137. * - Intel P6 because partial register stalls are very expensive;
  138. * - elder Alpha because it lacks byte load/store instructions;
  139. */
  140. -#define RC4_INT unsigned int
  141. +#define RC4_INT unsigned char
  142. #endif
  143. #if !defined(RC4_CHUNK)
  144. /*
  145. * This enables code handling data aligned at natural CPU word
  146. * boundary. See crypto/rc4/rc4_enc.c for further details.
  147. */
  148. -#undef RC4_CHUNK
  149. +#define RC4_CHUNK unsigned long
  150. #endif
  151. #endif
  152. @@ -133,13 +193,13 @@
  153. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  154. * %20 speed up (longs are 8 bytes, int's are 4). */
  155. #ifndef DES_LONG
  156. -#define DES_LONG unsigned long
  157. +#define DES_LONG unsigned int
  158. #endif
  159. #endif
  160. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  161. #define CONFIG_HEADER_BN_H
  162. -#undef BN_LLONG
  163. +#define BN_LLONG
  164. /* Should we define BN_DIV2W here? */
  165. @@ -158,7 +218,7 @@
  166. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  167. #define CONFIG_HEADER_BF_LOCL_H
  168. -#undef BF_PTR
  169. +#define BF_PTR
  170. #endif /* HEADER_BF_LOCL_H */
  171. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  172. @@ -188,7 +248,7 @@ YOU SHOULD NOT HAVE BOTH DES_RISC1 AND D
  173. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  174. * Very mucy CPU dependant */
  175. #ifndef DES_UNROLL
  176. -#undef DES_UNROLL
  177. +#define DES_UNROLL
  178. #endif
  179. /* These default values were supplied by