Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h')
-rw-r--r--src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h
index 6ec1795d25..852a735c3d 100644
--- a/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h
+++ b/src/Native/Unix/System.Security.Cryptography.Native/pal_asn1.h
@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
#include "pal_types.h"
+#include "pal_compiler.h"
#include "opensslshim.h"
/*
@@ -20,79 +21,79 @@ enum SupportedAlgorithmNids
/*
Direct shim to OBJ_txt2obj.
*/
-extern "C" const ASN1_OBJECT* CryptoNative_ObjTxt2Obj(const char* s);
+DLLEXPORT const ASN1_OBJECT* CryptoNative_ObjTxt2Obj(const char* s);
/*
Direct shim to OBJ_obj2txt.
*/
-extern "C" int32_t CryptoNative_ObjObj2Txt(char* buf, int32_t buf_len, const ASN1_OBJECT* a);
+DLLEXPORT int32_t CryptoNative_ObjObj2Txt(char* buf, int32_t buf_len, const ASN1_OBJECT* a);
/*
Retrieves the ASN1_OBJECT for the specified friendly name.
Can return nullptr if there isn't a corresponding shared object.
*/
-extern "C" const ASN1_OBJECT* CryptoNative_GetObjectDefinitionByName(const char* friendlyName);
+DLLEXPORT const ASN1_OBJECT* CryptoNative_GetObjectDefinitionByName(const char* friendlyName);
/*
Direct shim to OBJ_sn2nid.
*/
-extern "C" int32_t CryptoNative_ObjSn2Nid(const char* sn);
+DLLEXPORT int32_t CryptoNative_ObjSn2Nid(const char* sn);
/*
Direct shim to OBJ_nid2obj.
*/
-extern "C" ASN1_OBJECT* CryptoNative_ObjNid2Obj(int32_t nid);
+DLLEXPORT ASN1_OBJECT* CryptoNative_ObjNid2Obj(int32_t nid);
/*
Direct shim to ASN1_OBJECT_free.
*/
-extern "C" void CryptoNative_Asn1ObjectFree(ASN1_OBJECT* a);
+DLLEXPORT void CryptoNative_Asn1ObjectFree(ASN1_OBJECT* a);
/*
Shims the d2i_ASN1_BIT_STRING method and makes it easier to invoke from managed code.
*/
-extern "C" ASN1_BIT_STRING* CryptoNative_DecodeAsn1BitString(const uint8_t* buf, int32_t len);
+DLLEXPORT ASN1_BIT_STRING* CryptoNative_DecodeAsn1BitString(const uint8_t* buf, int32_t len);
/*
Direct shim to ASN1_BIT_STRING_free.
*/
-extern "C" void CryptoNative_Asn1BitStringFree(ASN1_STRING* a);
+DLLEXPORT void CryptoNative_Asn1BitStringFree(ASN1_STRING* a);
/*
Shims the d2i_ASN1_OCTET_STRING method and makes it easier to invoke from managed code.
*/
-extern "C" ASN1_OCTET_STRING* CryptoNative_DecodeAsn1OctetString(const uint8_t* buf, int32_t len);
+DLLEXPORT ASN1_OCTET_STRING* CryptoNative_DecodeAsn1OctetString(const uint8_t* buf, int32_t len);
/*
Direct shim to ASN1_OCTET_STRING_new.
*/
-extern "C" ASN1_OCTET_STRING* CryptoNative_Asn1OctetStringNew();
+DLLEXPORT ASN1_OCTET_STRING* CryptoNative_Asn1OctetStringNew(void);
/*
Direct shim to ASN1_OCTET_STRING_set.
*/
-extern "C" int32_t CryptoNative_Asn1OctetStringSet(ASN1_OCTET_STRING* s, const uint8_t* data, int32_t len);
+DLLEXPORT int32_t CryptoNative_Asn1OctetStringSet(ASN1_OCTET_STRING* s, const uint8_t* data, int32_t len);
/*
Direct shim to ASN1_OCTET_STRING_free.
*/
-extern "C" void CryptoNative_Asn1OctetStringFree(ASN1_STRING* a);
+DLLEXPORT void CryptoNative_Asn1OctetStringFree(ASN1_STRING* a);
/*
Direct shim to ASN1_STRING_free.
*/
-extern "C" void CryptoNative_Asn1StringFree(ASN1_STRING* a);
+DLLEXPORT void CryptoNative_Asn1StringFree(ASN1_STRING* a);
/*
Returns the number of bytes it will take to convert
the ASN1_INTEGER to a DER format.
*/
-extern "C" int32_t CryptoNative_GetAsn1IntegerDerSize(ASN1_INTEGER* i);
+DLLEXPORT int32_t CryptoNative_GetAsn1IntegerDerSize(ASN1_INTEGER* i);
/*
Shims the i2d_ASN1_INTEGER method.
Returns the number of bytes written to buf.
*/
-extern "C" int32_t CryptoNative_EncodeAsn1Integer(ASN1_INTEGER* i, uint8_t* buf);
+DLLEXPORT int32_t CryptoNative_EncodeAsn1Integer(ASN1_INTEGER* i, uint8_t* buf);