From 0a4436da006e35a7cb31ab00dbed3e62a5127065 Mon Sep 17 00:00:00 2001 From: Luca Saiu Date: Wed, 12 Jan 2022 13:28:20 +0100 Subject: [PATCH] make ASN1Message_from_message ASN1Message_to_message public, install map_asn1.h --- src/Makefile | 5 +++-- src/map_asn1.c | 2 ++ src/map_asn1.h | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 33cbb2c5..b5eaaf33 100644 --- a/src/Makefile +++ b/src/Makefile @@ -119,8 +119,9 @@ HEADERS_TO_INSTALL = \ timestamp.h identity_list.h bloblist.h stringpair.h message.h mime.h group.h \ cryptotech.h sync_api.h pEp_string.h openpgp_compat.h engine_sql.h \ labeled_int_list.h key_reset.h base64.h sync_codec.h distribution_codec.h \ - storage_codec.h status_to_string.h keyreset_command.h platform.h \ - platform_unix.h platform_windows.h platform_zos.h \ + storage_codec.h status_to_string.h keyreset_command.h \ + map_asn1.h \ + platform.h platform_unix.h platform_windows.h platform_zos.h \ transport.h growing_buf.h $(wildcard ../asn.1/*.h) # CAVEAT: diff --git a/src/map_asn1.c b/src/map_asn1.c index cf643121..0baa7503 100644 --- a/src/map_asn1.c +++ b/src/map_asn1.c @@ -837,6 +837,7 @@ enomem: return NULL; } +DYNAMIC_API ASN1Message_t *ASN1Message_from_message( message *msg, ASN1Message_t *result, @@ -1078,6 +1079,7 @@ enomem: return NULL; } +DYNAMIC_API message *ASN1Message_to_message( ASN1Message_t *msg, message *result, diff --git a/src/map_asn1.h b/src/map_asn1.h index 83ac8c3f..47cff5c3 100644 --- a/src/map_asn1.h +++ b/src/map_asn1.h @@ -346,6 +346,7 @@ bloblist_t *PBlobList_to_bloblist( * */ +DYNAMIC_API ASN1Message_t *ASN1Message_from_message( message *msg, ASN1Message_t *result, @@ -371,6 +372,7 @@ ASN1Message_t *ASN1Message_from_message( * */ +DYNAMIC_API message *ASN1Message_to_message( ASN1Message_t *msg, message *result,