Source release 17.1.2

This commit is contained in:
John "Juce" Bruce
2023-06-23 15:37:42 -07:00
parent a10f13a2dc
commit 2baa7c6e2b
353 changed files with 12903 additions and 2305 deletions

View File

@@ -4,6 +4,7 @@
'asm_target_arch%': 'none',
'has_nasm%': 'false',
'nasm_path%': 'nasm.exe',
'use_msan%': 'false',
},
'target_defaults': {
@@ -67,8 +68,10 @@
# This massive, nested conditional block will select the correct batch
# of assembly language files for the current OS and CPU architecture, or
# it will turn off assembly language files entirely if the
# |asm_target_arch| has been set to "none".
['asm_target_arch=="none" or (OS=="win" and has_nasm!="true")', {
# |asm_target_arch| has been set to "none", |use_msan| has been set to
# "true", or NASM is not available on Windows.
['asm_target_arch=="none" or use_msan=="true" or (OS=="win" and \
has_nasm!="true")', {
'defines': [
'OPENSSL_NO_ASM',
],

20
third_party/cn-cbor.gypi vendored Normal file
View File

@@ -0,0 +1,20 @@
{
'sources': [
'cn-cbor/src/cn-cbor.c',
'cn-cbor/src/cn-error.c',
'cn-cbor/src/cn-encoder.c',
'cn-cbor/src/cn-get.c',
'cn-cbor/src/cn-print.c',
'cn-cbor/src/cn-create.c',
],
'include_dirs': [
'cn-cbor/src',
'cn-cbor/include',
],
'direct_dependent_settings': {
'include_dirs': [
'cn-cbor/src',
'cn-cbor/include',
],
}
}

49
third_party/cose-c.gyp vendored Normal file
View File

@@ -0,0 +1,49 @@
{
'variables': {
'privacy_crypto_impl%': 'boringssl',
'boringssl_libcrypto_path%': 'boringssl/boringssl.gyp:crypto',
},
'targets': [
{
'target_name': 'cose-c',
'type': 'static_library',
'sources': [
'COSE-C/src/Cose.cpp',
'COSE-C/src/cbor.cpp',
'COSE-C/src/CoseKey.cpp',
'COSE-C/src/Sign.cpp',
'COSE-C/src/Sign1.cpp',
'COSE-C/src/openssl.cpp',
],
'includes': [
'cn-cbor.gypi',
'../util/libcrypto_dependency.gypi',
],
'include_dirs': [
'COSE-C/include',
'COSE-C/src',
'open-dice/third_party/cose-c/include',
],
'defines': [
'UNIT_TEST',
'COSE_C_USE_OPENSSL',
# vanilla COSE-C does not build with boringssl due to lack of ccm. We
# do not use the COSE-C functions that call these ccm ciphers, so just
# redefining the symbols to avoid headache
'EVP_aes_128_ccm()=EVP_aes_128_gcm()',
'EVP_aes_256_ccm()=EVP_aes_256_gcm()',
'EVP_aes_192_ccm()=EVP_aes_192_gcm()',
'EVP_CTRL_CCM_SET_L=0x14',
'EVP_CTRL_CCM_GET_TAG=EVP_CTRL_GCM_GET_TAG',
'EVP_CTRL_CCM_SET_TAG=EVP_CTRL_GCM_SET_TAG',
],
'direct_dependent_settings': {
'include_dirs': [
'COSE-C/include',
'COSE-C/src',
'open-dice/third_party/cose-c/include',
],
}
},
],
}