Skip to content

Commit

Permalink
Merge branch 'gwen_fix_stdcall' from PR 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed May 22, 2015
2 parents fbd785f + 164c992 commit 2352047
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions gwen-4.13.1.patch
Expand Up @@ -63,3 +63,69 @@
#include <unistd.h>


--- a/src/crypt3/cryptkey_be.h 2014-10-12 15:12:22 +0200
+++ b/src/crypt3/cryptkey_be.h 2015-05-07 20:51:40 +0200
@@ -18,22 +18,22 @@



-typedef int (*GWEN_CRYPT_KEY_SIGN_FN)(GWEN_CRYPT_KEY *k,
+typedef GWENHYWFAR_CB int (*GWEN_CRYPT_KEY_SIGN_FN)(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pSignatureData,
uint32_t *pSignatureLen);
-typedef int (*GWEN_CRYPT_KEY_VERIFY_FN)(GWEN_CRYPT_KEY *k,
+typedef GWENHYWFAR_CB int (*GWEN_CRYPT_KEY_VERIFY_FN)(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
const uint8_t *pSignatureData,
uint32_t signatureLen);
-typedef int (*GWEN_CRYPT_KEY_ENCIPHER_FN)(GWEN_CRYPT_KEY *k,
+typedef GWENHYWFAR_CB int (*GWEN_CRYPT_KEY_ENCIPHER_FN)(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,
uint32_t *pOutLen);
-typedef int (*GWEN_CRYPT_KEY_DECIPHER_FN)(GWEN_CRYPT_KEY *k,
+typedef GWENHYWFAR_CB int (*GWEN_CRYPT_KEY_DECIPHER_FN)(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,
--- a/src/crypt3/cryptkeysym.c 2014-10-12 15:12:22 +0200
+++ b/src/crypt3/cryptkeysym.c 2015-05-07 20:51:04 +0200
@@ -29,7 +29,7 @@



-int GWEN_Crypt_KeySym_Encipher(GWEN_CRYPT_KEY *k,
+GWENHYWFAR_CB int GWEN_Crypt_KeySym_Encipher(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,
@@ -53,7 +53,7 @@



-int GWEN_Crypt_KeySym_Decipher(GWEN_CRYPT_KEY *k,
+GWENHYWFAR_CB int GWEN_Crypt_KeySym_Decipher(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,
--- a/src/crypt3/cryptkeysym_p.h 2014-10-12 15:12:22 +0200
+++ b/src/crypt3/cryptkeysym_p.h 2015-05-07 20:50:41 +0200
@@ -29,12 +29,12 @@

static GWENHYWFAR_CB void GWEN_Crypt_KeySym_freeData(void *bp, void *p);

-static int GWEN_Crypt_KeySym_Encipher(GWEN_CRYPT_KEY *k,
+static GWENHYWFAR_CB int GWEN_Crypt_KeySym_Encipher(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,
uint32_t *pOutLen);
-static int GWEN_Crypt_KeySym_Decipher(GWEN_CRYPT_KEY *k,
+static GWENHYWFAR_CB int GWEN_Crypt_KeySym_Decipher(GWEN_CRYPT_KEY *k,
const uint8_t *pInData,
uint32_t inLen,
uint8_t *pOutData,

0 comments on commit 2352047

Please sign in to comment.