3 // all OpenSSL functions are CDECL, although none of the headers
4 // have annotations for this. As a quick workaround, we use CPP
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
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
15 #include <openssl/rand.h>
16 #include <openssl/des.h>