Changes in v9fs broke pipesrv. Fix it.
[npfs.git] / libnpauth / ossl.h
blobb86f64da933ff216beb2127ee9ced9fd8462039d
2 #ifdef _WIN32
3 // all OpenSSL functions are CDECL, although none of the headers
4 // have annotations for this. As a quick workaround, we use CPP
5 // to add annotations.
6 // We can't simply force all functions to be CDECL because we want
7 // to be able to link against other libraries that may not be CDECL
8 #define DECL __cdecl
9 #define DES_set_key_checked DECL DES_set_key_checked
10 #define DES_set_odd_parity DECL DES_set_odd_parity
11 #define DES_ecb_encrypt DECL DES_ecb_encrypt
12 #define RAND_bytes DECL RAND_bytes
13 #endif
15 #include <openssl/rand.h>
16 #include <openssl/des.h>
18 #ifdef _WIN32
19 #undef DECL
20 #define DECL
21 #endif