Skip to content

Commit

Permalink
lt23 test
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Jan 1, 2024
1 parent bb301f0 commit 58ca2dc
Show file tree
Hide file tree
Showing 84 changed files with 323 additions and 1,228 deletions.
34 changes: 30 additions & 4 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,34 @@ else ()
${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libnative.so)
endif ()

#add_library(libssl
# STATIC
# IMPORTED)
#
#set_target_properties( # Specifies the target library.
# libssl
#
# # Specifies the parameter you want to define.
# PROPERTIES IMPORTED_LOCATION
#
# # Provides the path to the library you want to import.
# ${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libssl.so)
#
#add_library(libcrypto
# SHARED
# IMPORTED)
#
#set_target_properties( # Specifies the target library.
# libcrypto
#
# # Specifies the parameter you want to define.
# PROPERTIES IMPORTED_LOCATION
#
# # Provides the path to the library you want to import.
# ${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libcrypto.so)

add_library(libssl
SHARED
STATIC
IMPORTED)

set_target_properties( # Specifies the target library.
Expand All @@ -61,10 +87,10 @@ set_target_properties( # Specifies the target library.
PROPERTIES IMPORTED_LOCATION

# Provides the path to the library you want to import.
${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libssl.so)
${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libssl.a)

add_library(libcrypto
SHARED
STATIC
IMPORTED)

set_target_properties( # Specifies the target library.
Expand All @@ -74,7 +100,7 @@ set_target_properties( # Specifies the target library.
PROPERTIES IMPORTED_LOCATION

# Provides the path to the library you want to import.
${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libcrypto.so)
${CMAKE_SOURCE_DIR}/src/main/cpp/${ANDROID_ABI}/libcrypto.a)

find_library( # Defines the name of the path variable that stores the
# location of the NDK library.
Expand Down
Binary file added app/src/main/cpp/arm64-v8a/libcrypto.a
Binary file not shown.
Binary file modified app/src/main/cpp/arm64-v8a/libcrypto.so
Binary file not shown.
Binary file modified app/src/main/cpp/arm64-v8a/libnative.so
Binary file not shown.
Binary file added app/src/main/cpp/arm64-v8a/libssl.a
Binary file not shown.
Binary file modified app/src/main/cpp/arm64-v8a/libssl.so
Binary file not shown.
Binary file added app/src/main/cpp/armeabi-v7a/libcrypto.a
Binary file not shown.
Binary file modified app/src/main/cpp/armeabi-v7a/libcrypto.so
Binary file not shown.
Binary file modified app/src/main/cpp/armeabi-v7a/libnative.so
Binary file not shown.
Binary file added app/src/main/cpp/armeabi-v7a/libssl.a
Binary file not shown.
Binary file modified app/src/main/cpp/armeabi-v7a/libssl.so
Binary file not shown.
8 changes: 3 additions & 5 deletions app/src/main/cpp/include/openssl/asn1.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* WARNING: do not edit!
* Generated by Makefile from include/openssl/asn1.h.in
* Generated by Makefile from openssl-3.1.4/include/openssl/asn1.h.in
*
* Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -158,7 +158,7 @@ SKM_DEFINE_STACK_OF_INTERNAL(X509_ALGOR, X509_ALGOR, X509_ALGOR)



# define ASN1_STRING_FLAG_BITS_LEFT 0x08 /* Set if 0x07 has bits left value */
# define ASN1_STRING_FLAG_BITS_LEFT 0x08/* Set if 0x07 has bits left value */
/*
* This indicates that the ASN1_STRING is not a real value but just a place
* holder for the location where indefinite length constructed data should be
Expand Down Expand Up @@ -999,8 +999,6 @@ int ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num,
unsigned char *data, int max_len);

void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);
void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it,
OSSL_LIB_CTX *libctx, const char *propq);

ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it,
ASN1_OCTET_STRING **oct);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/cpp/include/openssl/asn1t.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* WARNING: do not edit!
* Generated by Makefile from include/openssl/asn1t.h.in
* Generated by Makefile from openssl-3.1.4/include/openssl/asn1t.h.in
*
* Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
*
Expand Down
10 changes: 1 addition & 9 deletions app/src/main/cpp/include/openssl/async.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down Expand Up @@ -80,14 +80,6 @@ int ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);

int ASYNC_is_capable(void);

typedef void *(*ASYNC_stack_alloc_fn)(size_t *num);
typedef void (*ASYNC_stack_free_fn)(void *addr);

int ASYNC_set_mem_functions(ASYNC_stack_alloc_fn alloc_fn,
ASYNC_stack_free_fn free_fn);
void ASYNC_get_mem_functions(ASYNC_stack_alloc_fn *alloc_fn,
ASYNC_stack_free_fn *free_fn);

int ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,
int (*func)(void *), void *args, size_t size);
int ASYNC_pause_job(void);
Expand Down
Loading

0 comments on commit 58ca2dc

Please sign in to comment.