1
0

patch-crypto_opensslconf_h 5.4 KB

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