diff options
| author | LiZhuoheng <114734429+zohanzephyr@users.noreply.github.com> | 2024-06-06 15:48:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 09:48:31 +0200 |
| commit | 67d587cd9bfd5d8594df7ec1ba78ebe002b7dbee (patch) | |
| tree | 5c35f3dd8faa34366ba552ffeab7adb26d9f3062 /src | |
| parent | 9e97e96b87547154585c5e0f8c96d3bf63545ab8 (diff) | |
| download | box64-67d587cd9bfd5d8594df7ec1ba78ebe002b7dbee.tar.gz box64-67d587cd9bfd5d8594df7ec1ba78ebe002b7dbee.zip | |
Wrapped libtasn1-6 (#1563)
Diffstat (limited to 'src')
| -rw-r--r-- | src/library_list.h | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibtasn1defs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibtasn1types.h | 17 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibtasn1undefs.h | 8 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 3 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 1 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibtasn1.c | 17 | ||||
| -rw-r--r-- | src/wrapped/wrappedlibtasn1_private.h | 46 |
9 files changed, 103 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h index bf3f2b99..e6d1e96a 100644 --- a/src/library_list.h +++ b/src/library_list.h @@ -258,6 +258,7 @@ GO("libanl.so.1", anl) GO("libpsl.so.5", psl5) GO("libssh2.so.1", libssh2) GO("libp11-kit.so.0", p11kit) +GO("libtasn1.so.6", libtasn1) #ifdef ANDROID GO("libc.so", libc) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index f6484226..385e36aa 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -2044,6 +2044,7 @@ #() iFppipip #() iFppippi #() iFppippu +#() iFppippp #() iFppIppp #() iFppuiii #() iFppuIII @@ -4777,6 +4778,7 @@ wrappedlibssl3: - SSL_callback_ctrl - iFlpppp: - SSL_get_ex_new_index +wrappedlibtasn1: wrappedlibtinfo: - iFpip: - tputs diff --git a/src/wrapped/generated/wrappedlibtasn1defs.h b/src/wrapped/generated/wrappedlibtasn1defs.h new file mode 100644 index 00000000..6a4d7bdc --- /dev/null +++ b/src/wrapped/generated/wrappedlibtasn1defs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibtasn1DEFS_H_ +#define __wrappedlibtasn1DEFS_H_ + + +#endif // __wrappedlibtasn1DEFS_H_ diff --git a/src/wrapped/generated/wrappedlibtasn1types.h b/src/wrapped/generated/wrappedlibtasn1types.h new file mode 100644 index 00000000..02a76bb5 --- /dev/null +++ b/src/wrapped/generated/wrappedlibtasn1types.h @@ -0,0 +1,17 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibtasn1TYPES_H_ +#define __wrappedlibtasn1TYPES_H_ + +#ifndef LIBNAME +#error You should only #include this file inside a wrapped*.c file +#endif +#ifndef ADDED_FUNCTIONS +#define ADDED_FUNCTIONS() +#endif + + +#define SUPER() ADDED_FUNCTIONS() + +#endif // __wrappedlibtasn1TYPES_H_ diff --git a/src/wrapped/generated/wrappedlibtasn1undefs.h b/src/wrapped/generated/wrappedlibtasn1undefs.h new file mode 100644 index 00000000..0e9c1681 --- /dev/null +++ b/src/wrapped/generated/wrappedlibtasn1undefs.h @@ -0,0 +1,8 @@ +/******************************************************************* + * File automatically generated by rebuild_wrappers.py (v2.4.0.21) * + *******************************************************************/ +#ifndef __wrappedlibtasn1UNDEFS_H_ +#define __wrappedlibtasn1UNDEFS_H_ + + +#endif // __wrappedlibtasn1UNDEFS_H_ diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 605707e6..37fd5864 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -2082,6 +2082,7 @@ typedef int32_t (*iFppipiL_t)(void*, void*, int32_t, void*, int32_t, uintptr_t); typedef int32_t (*iFppipip_t)(void*, void*, int32_t, void*, int32_t, void*); typedef int32_t (*iFppippi_t)(void*, void*, int32_t, void*, void*, int32_t); typedef int32_t (*iFppippu_t)(void*, void*, int32_t, void*, void*, uint32_t); +typedef int32_t (*iFppippp_t)(void*, void*, int32_t, void*, void*, void*); typedef int32_t (*iFppIppp_t)(void*, void*, int64_t, void*, void*, void*); typedef int32_t (*iFppuiii_t)(void*, void*, uint32_t, int32_t, int32_t, int32_t); typedef int32_t (*iFppuIII_t)(void*, void*, uint32_t, int64_t, int64_t, int64_t); @@ -5165,6 +5166,7 @@ void iFppipiL(x64emu_t *emu, uintptr_t fcn) { iFppipiL_t fn = (iFppipiL_t)fcn; R void iFppipip(x64emu_t *emu, uintptr_t fcn) { iFppipip_t fn = (iFppipip_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (int32_t)R_R8, (void*)R_R9); } void iFppippi(x64emu_t *emu, uintptr_t fcn) { iFppippi_t fn = (iFppippi_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (int32_t)R_R9); } void iFppippu(x64emu_t *emu, uintptr_t fcn) { iFppippu_t fn = (iFppippu_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (uint32_t)R_R9); } +void iFppippp(x64emu_t *emu, uintptr_t fcn) { iFppippp_t fn = (iFppippp_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (int32_t)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); } void iFppIppp(x64emu_t *emu, uintptr_t fcn) { iFppIppp_t fn = (iFppIppp_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (int64_t)R_RDX, (void*)R_RCX, (void*)R_R8, (void*)R_R9); } void iFppuiii(x64emu_t *emu, uintptr_t fcn) { iFppuiii_t fn = (iFppuiii_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (uint32_t)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (int32_t)R_R9); } void iFppuIII(x64emu_t *emu, uintptr_t fcn) { iFppuIII_t fn = (iFppuIII_t)fcn; R_RAX=(int32_t)fn((void*)R_RDI, (void*)R_RSI, (uint32_t)R_RDX, (int64_t)R_RCX, (int64_t)R_R8, (int64_t)R_R9); } @@ -7879,6 +7881,7 @@ int isSimpleWrapper(wrapper_t fun) { if (fun == &iFppipip) return 1; if (fun == &iFppippi) return 1; if (fun == &iFppippu) return 1; + if (fun == &iFppippp) return 1; if (fun == &iFppIppp) return 1; if (fun == &iFppuiii) return 1; if (fun == &iFppuIII) return 1; diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index d9ef2a1b..e2883b2d 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -2082,6 +2082,7 @@ void iFppipiL(x64emu_t *emu, uintptr_t fnc); void iFppipip(x64emu_t *emu, uintptr_t fnc); void iFppippi(x64emu_t *emu, uintptr_t fnc); void iFppippu(x64emu_t *emu, uintptr_t fnc); +void iFppippp(x64emu_t *emu, uintptr_t fnc); void iFppIppp(x64emu_t *emu, uintptr_t fnc); void iFppuiii(x64emu_t *emu, uintptr_t fnc); void iFppuIII(x64emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedlibtasn1.c b/src/wrapped/wrappedlibtasn1.c new file mode 100644 index 00000000..29fba961 --- /dev/null +++ b/src/wrapped/wrappedlibtasn1.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#define _GNU_SOURCE /* See feature_test_macros(7) */ +#include <dlfcn.h> + +#include "wrappedlibs.h" + +#include "wrapper.h" +#include "bridge.h" +#include "librarian/library_private.h" +#include "x64emu.h" + +const char* libtasn1Name = "libtasn1.so.6"; +#define LIBNAME libtasn1 + +#include "wrappedlib_init.h" diff --git a/src/wrapped/wrappedlibtasn1_private.h b/src/wrapped/wrappedlibtasn1_private.h new file mode 100644 index 00000000..392bf5a5 --- /dev/null +++ b/src/wrapped/wrappedlibtasn1_private.h @@ -0,0 +1,46 @@ +#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA)) +error Meh... +#endif + +GO(asn1_array2tree, iFppp) +GO(asn1_bit_der, iFpppp) +GO(asn1_check_version, pFp) +//GO(asn1_copy_node, +//GO(asn1_create_element, +GO(asn1_decode_simple_ber, iFpLp) +GO(asn1_decode_simple_der, iFpLp) +GO(asn1_delete_element, iFp) +GO(asn1_delete_structure, iFp) +GO(asn1_delete_structure2, iFpp) +//GO(asn1_der_coding, +GO(asn1_der_decoding, iFppip) +GO(asn1_der_decoding2, iFppip) +GO(asn1_der_decoding_element, iFppip) +GO(asn1_der_decoding_startEnd, iFppippp) +//GO(asn1_dup_node, +GO(asn1_encode_simple_der, iFppppp) +//GO(asn1_expand_any_defined_by, +//GO(asn1_expand_octet_string, +//GO(asn1_find_node, +GO(asn1_find_structure_from_oid, iFpp) +//GO(asn1_get_bit_der, +GO(asn1_get_length_ber, iFpip) +GO(asn1_get_length_der, iFpip) +//GO(asn1_get_object_id_der, +//GO(asn1_get_octet_der, +//GO(asn1_get_tag_der, +//GO(asn1_length_der, +//GO(asn1_number_of_elements, +GO(asn1_object_id_der, iFppp) +GO(asn1_octet_der, iFpipp) +//GO(asn1_parser2array, +//GO(asn1_parser2tree, +GO(asn1_perror, vFpi) +//GO(asn1_print_structure, +//GO(asn1_read_node_value, +GO(asn1_read_tag, iFpip) +//GO(asn1_read_value, +//GO(asn1_read_value_type, +GO(asn1_strerror, pFi) +//GO(asn1_write_value, + |