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.

164 lines
4.2 KiB

  1. --- ./crypto/dyncrypt.c.orig 2004-09-06 00:46:26.897473048 +0200
  2. +++ ./crypto/dyncrypt.c 2004-09-06 00:56:58.905393240 +0200
  3. @@ -439,7 +439,7 @@
  4. {
  5. BYTE buffer[8];
  6. int crypted;
  7. - GCRY_CIPHER_HD hd;
  8. + gcry_cipher_hd_t hd;
  9. BYTE k[8];
  10. #ifdef OPTION_KM_DEBUG
  11. @@ -458,7 +458,7 @@
  12. }
  13. /* Open a cipher handle */
  14. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0)))
  15. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB, 0))
  16. {
  17. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  18. return;
  19. @@ -535,7 +535,7 @@
  20. {
  21. BYTE buffer[8];
  22. int crypted;
  23. - GCRY_CIPHER_HD hd;
  24. + gcry_cipher_hd_t hd;
  25. BYTE k[24];
  26. #ifdef OPTION_KM_DEBUG
  27. @@ -554,7 +554,7 @@
  28. }
  29. /* Open the cipher handle */
  30. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0)))
  31. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0))
  32. {
  33. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  34. return;
  35. @@ -635,7 +635,7 @@
  36. {
  37. BYTE buffer[8];
  38. int crypted;
  39. - GCRY_CIPHER_HD hd;
  40. + gcry_cipher_hd_t hd;
  41. BYTE k[24];
  42. #ifdef OPTION_KM_DEBUG
  43. @@ -654,7 +654,7 @@
  44. }
  45. /* Open the cipher handle */
  46. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0)))
  47. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB, 0))
  48. {
  49. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  50. return;
  51. @@ -756,7 +756,7 @@
  52. BYTE buffer[8];
  53. int crypted;
  54. BYTE cv[8];
  55. - GCRY_CIPHER_HD hd;
  56. + gcry_cipher_hd_t hd;
  57. BYTE k[8];
  58. UNREFERENCED(r1);
  59. @@ -777,7 +777,7 @@
  60. }
  61. /* Open a cipher handle */
  62. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0)))
  63. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0))
  64. {
  65. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  66. return;
  67. @@ -852,7 +852,7 @@
  68. BYTE buffer[8];
  69. int crypted;
  70. BYTE cv[8];
  71. - GCRY_CIPHER_HD hd;
  72. + gcry_cipher_hd_t hd;
  73. BYTE k[24];
  74. UNREFERENCED(r1);
  75. @@ -873,7 +873,7 @@
  76. }
  77. /* Open a cipher handle */
  78. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  79. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  80. {
  81. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  82. return;
  83. @@ -952,7 +952,7 @@
  84. BYTE buffer[8];
  85. int crypted;
  86. BYTE cv[8];
  87. - GCRY_CIPHER_HD hd;
  88. + gcry_cipher_hd_t hd;
  89. BYTE k[24];
  90. UNREFERENCED(r1);
  91. @@ -973,7 +973,7 @@
  92. }
  93. /* Open a cipher handle */
  94. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  95. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  96. {
  97. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  98. return;
  99. @@ -1070,7 +1070,7 @@
  100. BYTE buffer[8];
  101. int crypted;
  102. BYTE cv[8];
  103. - GCRY_CIPHER_HD hd;
  104. + gcry_cipher_hd_t hd;
  105. BYTE k[8];
  106. #ifdef OPTION_KMC_DEBUG
  107. @@ -1089,7 +1089,7 @@
  108. }
  109. /* Open a cipher handle */
  110. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0)))
  111. + if(gcry_cipher_open(&hd, GCRY_CIPHER_DES, GCRY_CIPHER_MODE_CBC, 0))
  112. {
  113. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  114. return;
  115. @@ -1190,7 +1190,7 @@
  116. BYTE buffer[8];
  117. int crypted;
  118. BYTE cv[8];
  119. - GCRY_CIPHER_HD hd;
  120. + gcry_cipher_hd_t hd;
  121. BYTE k[24];
  122. #ifdef OPTION_KMC_DEBUG
  123. @@ -1209,7 +1209,7 @@
  124. }
  125. /* Open a cipher handle */
  126. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  127. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  128. {
  129. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  130. return;
  131. @@ -1314,7 +1314,7 @@
  132. BYTE buffer[8];
  133. int crypted;
  134. BYTE cv[8];
  135. - GCRY_CIPHER_HD hd;
  136. + gcry_cipher_hd_t hd;
  137. BYTE k[24];
  138. #ifdef OPTION_KMC_DEBUG
  139. @@ -1333,7 +1333,7 @@
  140. }
  141. /* Open a cipher handle */
  142. - if(!(hd = gcry_cipher_open(GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0)))
  143. + if(gcry_cipher_open(&hd, GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC, 0))
  144. {
  145. logmsg(" %s(%d): gcry_cypher_open(): %s\n", __FILE__, __LINE__, gcry_strerror(-1));
  146. return;