lib/hx509: declare and apply HX509_LIB_xxx macros
libhx509 is not built according to the same export and calling conventions on Windows as the other libraries. This change declares and applies HX509_LIB_FUNCTION, HX509_LIB_NORETURN_FUNCTION, HX509_LIB_CALL and HX509_LIB_VARIABLE to lib/hx509. As a result of this change the calling convention for exported functions will be __stdcall instead of __cdecl. Change-Id: Ibc3f05e8088030ef7d13798f1d9c9b190bc57797
This commit is contained in:

committed by
Nico Williams

parent
bec4818943
commit
1dd38cc3de
@@ -49,7 +49,7 @@ extern const AlgorithmIdentifier _hx509_signature_sha384_data;
|
||||
extern const AlgorithmIdentifier _hx509_signature_sha256_data;
|
||||
extern const AlgorithmIdentifier _hx509_signature_sha1_data;
|
||||
|
||||
void
|
||||
HX509_LIB_FUNCTION void HX509_LIB_CALL
|
||||
_hx509_private_eckey_free(void *eckey)
|
||||
{
|
||||
#ifdef HAVE_HCRYPTO_W_OPENSSL
|
||||
@@ -512,7 +512,7 @@ const struct signature_alg ecdsa_with_sha1_alg = {
|
||||
|
||||
#endif /* HAVE_HCRYPTO_W_OPENSSL */
|
||||
|
||||
const AlgorithmIdentifier *
|
||||
HX509_LIB_FUNCTION const AlgorithmIdentifier * HX509_LIB_CALL
|
||||
hx509_signature_ecPublicKey(void)
|
||||
{
|
||||
#ifdef HAVE_HCRYPTO_W_OPENSSL
|
||||
@@ -522,7 +522,7 @@ hx509_signature_ecPublicKey(void)
|
||||
#endif /* HAVE_HCRYPTO_W_OPENSSL */
|
||||
}
|
||||
|
||||
const AlgorithmIdentifier *
|
||||
HX509_LIB_FUNCTION const AlgorithmIdentifier * HX509_LIB_CALL
|
||||
hx509_signature_ecdsa_with_sha256(void)
|
||||
{
|
||||
#ifdef HAVE_HCRYPTO_W_OPENSSL
|
||||
|
Reference in New Issue
Block a user