avoid crash on Windows
authorBodo Möller <bodo@openssl.org>
Fri, 9 Aug 2002 08:16:11 +0000 (08:16 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 9 Aug 2002 08:16:11 +0000 (08:16 +0000)
Submitted by: Lynn Gazis <lgazis@rainbow.com>

CHANGES
crypto/engine/vendor_defns/cswift.h

diff --git a/CHANGES b/CHANGES
index d89398adf093b3e7457a001b4603edab0187e8c5..263ac1d67d7de513a067a8519fe336bd4ee74b10 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,9 @@
 
  Changes between 0.9.6f and 0.9.6g  [xx XXX xxxx]
 
-  *) 
+  *) [In 0.9.6g-engine release:]
+     Fix crypto/engine/vendor_defns/cswift.h for WIN32 (use '_stdcall').
+     [Lynn Gazis <lgazis@rainbow.com>]
 
  Changes between 0.9.6e and 0.9.6f  [8 Aug 2002]
 
index 0af14a1a92e384cacf01793d6aeb0177447d12c8..dd5b1e6778b010c020cb8fd3366f8a43dcab8221 100644 (file)
@@ -196,6 +196,19 @@ typedef SW_U32 SW_CONTEXT_HANDLE; /* opaque context handle */
 
 /* Now the OpenSSL bits, these function types are the for the function
  * pointers that will bound into the Rainbow shared libraries. */
+/********** Peng's modification begins **********/
+#if defined(WIN32) /* For WIN32 platform */
+typedef SW_STATUS _stdcall t_swAcquireAccContext(SW_CONTEXT_HANDLE *hac);
+typedef SW_STATUS _stdcall t_swAttachKeyParam(SW_CONTEXT_HANDLE hac,
+                               SW_PARAM *key_params);
+typedef SW_STATUS _stdcall t_swSimpleRequest(SW_CONTEXT_HANDLE hac,
+                               SW_COMMAND_CODE cmd,
+                               SW_LARGENUMBER pin[],
+                               SW_U32 pin_count,
+                               SW_LARGENUMBER pout[],
+                               SW_U32 pout_count);
+typedef SW_STATUS _stdcall t_swReleaseAccContext(SW_CONTEXT_HANDLE hac);
+#else /* For other platforms */
 typedef SW_STATUS t_swAcquireAccContext(SW_CONTEXT_HANDLE *hac);
 typedef SW_STATUS t_swAttachKeyParam(SW_CONTEXT_HANDLE hac,
                                SW_PARAM *key_params);
@@ -206,6 +219,9 @@ typedef SW_STATUS t_swSimpleRequest(SW_CONTEXT_HANDLE hac,
                                SW_LARGENUMBER pout[],
                                SW_U32 pout_count);
 typedef SW_STATUS t_swReleaseAccContext(SW_CONTEXT_HANDLE hac);
+#endif
+/********** Peng's modification ends **********/
+
 
 #ifdef __cplusplus
 }