mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
5.1 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/clifford/hercules/crypto.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./crypto/dyncrypt.c.orig 2004-09-06 00:46:26.897473048 +0200
  20. +++ ./crypto/dyncrypt.c 2004-09-06 00:56:58.905393240 +0200
  21. @@ -439,7 +439,7 @@
  22. {
  23. BYTE buffer[8];
  24. int crypted;
  25. - GCRY_CIPHER_HD hd;
  26. + gcry_cipher_hd_t hd;
  27. BYTE k[8];
  28. #ifdef OPTION_KM_DEBUG
  29. @@ -458,7 +458,7 @@
  30. }
  31. /* Open a cipher handle */
  32. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0)))
  33. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0))
  34. {
  35. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  36. return;
  37. @@ -535,7 +535,7 @@
  38. {
  39. BYTE buffer[8];
  40. int crypted;
  41. - GCRY_CIPHER_HD hd;
  42. + gcry_cipher_hd_t hd;
  43. BYTE k[24];
  44. #ifdef OPTION_KM_DEBUG
  45. @@ -554,7 +554,7 @@
  46. }
  47. /* Open the cipher handle */
  48. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0)))
  49. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0))
  50. {
  51. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  52. return;
  53. @@ -635,7 +635,7 @@
  54. {
  55. BYTE buffer[8];
  56. int crypted;
  57. - GCRY_CIPHER_HD hd;
  58. + gcry_cipher_hd_t hd;
  59. BYTE k[24];
  60. #ifdef OPTION_KM_DEBUG
  61. @@ -654,7 +654,7 @@
  62. }
  63. /* Open the cipher handle */
  64. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0)))
  65. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0))
  66. {
  67. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  68. return;
  69. @@ -756,7 +756,7 @@
  70. BYTE buffer[8];
  71. int crypted;
  72. BYTE cv[8];
  73. - GCRY_CIPHER_HD hd;
  74. + gcry_cipher_hd_t hd;
  75. BYTE k[8];
  76. UNREFERENCED(r1);
  77. @@ -777,7 +777,7 @@
  78. }
  79. /* Open a cipher handle */
  80. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0)))
  81. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0))
  82. {
  83. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  84. return;
  85. @@ -852,7 +852,7 @@
  86. BYTE buffer[8];
  87. int crypted;
  88. BYTE cv[8];
  89. - GCRY_CIPHER_HD hd;
  90. + gcry_cipher_hd_t hd;
  91. BYTE k[24];
  92. UNREFERENCED(r1);
  93. @@ -873,7 +873,7 @@
  94. }
  95. /* Open a cipher handle */
  96. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  97. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  98. {
  99. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  100. return;
  101. @@ -952,7 +952,7 @@
  102. BYTE buffer[8];
  103. int crypted;
  104. BYTE cv[8];
  105. - GCRY_CIPHER_HD hd;
  106. + gcry_cipher_hd_t hd;
  107. BYTE k[24];
  108. UNREFERENCED(r1);
  109. @@ -973,7 +973,7 @@
  110. }
  111. /* Open a cipher handle */
  112. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  113. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  114. {
  115. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  116. return;
  117. @@ -1070,7 +1070,7 @@
  118. BYTE buffer[8];
  119. int crypted;
  120. BYTE cv[8];
  121. - GCRY_CIPHER_HD hd;
  122. + gcry_cipher_hd_t hd;
  123. BYTE k[8];
  124. #ifdef OPTION_KMC_DEBUG
  125. @@ -1089,7 +1089,7 @@
  126. }
  127. /* Open a cipher handle */
  128. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0)))
  129. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0))
  130. {
  131. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  132. return;
  133. @@ -1190,7 +1190,7 @@
  134. BYTE buffer[8];
  135. int crypted;
  136. BYTE cv[8];
  137. - GCRY_CIPHER_HD hd;
  138. + gcry_cipher_hd_t hd;
  139. BYTE k[24];
  140. #ifdef OPTION_KMC_DEBUG
  141. @@ -1209,7 +1209,7 @@
  142. }
  143. /* Open a cipher handle */
  144. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  145. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  146. {
  147. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  148. return;
  149. @@ -1314,7 +1314,7 @@
  150. BYTE buffer[8];
  151. int crypted;
  152. BYTE cv[8];
  153. - GCRY_CIPHER_HD hd;
  154. + gcry_cipher_hd_t hd;
  155. BYTE k[24];
  156. #ifdef OPTION_KMC_DEBUG
  157. @@ -1333,7 +1333,7 @@
  158. }
  159. /* Open a cipher handle */
  160. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  161. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  162. {
  163. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  164. return;