Switch every component over to being a static library

This commit is contained in:
Andrew Hyatt 2017-08-07 15:25:37 -07:00
parent 0435b20ca0
commit c67c1b26db
35 changed files with 978 additions and 1014 deletions

View File

@ -3,15 +3,16 @@ project(Security)
set(CMAKE_CXX_STANDARD 14)
add_compile_options(
-nostdinc
-nostdinc++
-Wno-gcc-compat
-Wno-ignored-attributes
-Wno-unused-command-line-argument
#-Wno-unused-command-line-argument
-Wno-c++11-extensions
-Wno-error=c++11-narrowing
)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -nostdinc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -nostdinc")
add_definitions(
-DNDEBUG=1
-D__KEYCHAINCORE__=1

View File

@ -34,8 +34,6 @@ add_subdirectory(utilities)
set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "57740.51.3")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-flat_namespace,-undefined,suppress")
add_framework(Security
FAT
CURRENT_VERSION
@ -48,47 +46,7 @@ add_framework(Security
../../coretls/coretls_cfhelpers/tls_helpers_identity.c
../../coretls/lib/sslMemory.c
#$<TARGET_OBJECTS:libsecurity_asn1>
#$<TARGET_OBJECTS:libSecItemShimOSX>
$<TARGET_OBJECTS:libSecOtrOSX>
#$<TARGET_OBJECTS:libSecTrustOSX>
#$<TARGET_OBJECTS:libSecureObjectSync>
$<TARGET_OBJECTS:liblogging>
$<TARGET_OBJECTS:libsecipc_client>
$<TARGET_OBJECTS:libsecurity_apple_csp>
$<TARGET_OBJECTS:libsecurity_apple_cspdl>
$<TARGET_OBJECTS:libsecurity_apple_file_dl>
$<TARGET_OBJECTS:libsecurity_apple_x509_cl>
#$<TARGET_OBJECTS:libsecurity_apple_x509_tp>
$<TARGET_OBJECTS:libsecurity_authorization>
$<TARGET_OBJECTS:libsecurity_cdsa_client>
$<TARGET_OBJECTS:libsecurity_cdsa_plugin>
$<TARGET_OBJECTS:libsecurity_cdsa_utilities>
#$<TARGET_OBJECTS:libsecurity_cdsa_utils>
$<TARGET_OBJECTS:libsecurity_checkpw>
$<TARGET_OBJECTS:libsecurity_cms>
$<TARGET_OBJECTS:libsecurity_codesigning>
$<TARGET_OBJECTS:libsecurity_comcryption>
$<TARGET_OBJECTS:libsecurity_cryptkit>
$<TARGET_OBJECTS:libsecurity_cssm>
$<TARGET_OBJECTS:libsecurity_filedb>
#$<TARGET_OBJECTS:libsecurity_keychain>
$<TARGET_OBJECTS:libsecurity_keychain_DER>
$<TARGET_OBJECTS:libsecurity_manifest>
$<TARGET_OBJECTS:libsecurity_mds>
$<TARGET_OBJECTS:libsecurity_ocspd>
$<TARGET_OBJECTS:libsecurity_pkcs12>
$<TARGET_OBJECTS:libsecurity_sd_cspdl>
$<TARGET_OBJECTS:libsecurity_smime>
#$<TARGET_OBJECTS:libsecurity_ssl>
$<TARGET_OBJECTS:libsecurity_transform>
$<TARGET_OBJECTS:libsecurity_translocate>
$<TARGET_OBJECTS:libsecurity_utilities>
$<TARGET_OBJECTS:libsecurityd_client>
$<TARGET_OBJECTS:libutilities>
DEPENDENCIES
system
#coretls_cfhelpers
objc
pam.2
@ -100,12 +58,44 @@ add_framework(Security
CoreFoundation
# Static libraries
#libsecurity_asn1
#libSecItemShimOSX
#libSecTrustOSX
#libSecureObjectSync
#libsecurity_cdsa_utils
#libsecurity_apple_x509_tp
#libsecurity_keychain
#libsecurity_ssl
security_asn1
SecItemShimOSX
SecOtrOSX
SecTrustOSX
SecureObjectSync
logging
secipc_client
security_apple_csp
security_apple_cspdl
security_apple_file_dl
security_apple_x509_cl
security_apple_x509_tp
security_authorization
security_cdsa_client
security_cdsa_plugin
security_cdsa_utilities
security_cdsa_utils
security_checkpw
security_cms
security_codesigning
security_comcryption
security_cryptkit
security_cssm
security_filedb
#security_keychain
security_keychain_DER
security_manifest
security_mds
security_ocspd
security_pkcs12
security_sd_cspdl
security_smime
security_ssl
security_transform
security_translocate
security_utilities
securityd_client
utilities
)
set_property(TARGET Security APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-undefined,dynamic_lookup")

View File

@ -10,130 +10,130 @@ add_definitions(
-DASC_CSP_ENABLE
)
add_library(libsecurity_apple_csp OBJECT
lib/pkcs12Derive.cpp
open_ssl/misc/rc2_skey.c
open_ssl/bn/bn_exp.c
open_ssl/rsa/rsa_pk1.c
lib/SHA1_MD5_Object.cpp
open_ssl/dh/dh_lib.c
lib/cryptkitcsp.cpp
open_ssl/bn/bn_gcd.c
open_ssl/dh/dh_err.c
open_ssl/bn/bn_blind.c
open_ssl/buffer/buf_err.c
open_ssl/buffer/buffer.c
lib/DH_utils.cpp
lib/miscAlgFactory.cpp
open_ssl/bn/bn_asm.c
lib/FEEKeys.cpp
open_ssl/dsa/dsa_sign.c
lib/gladmanContext.cpp
lib/BlockCryptor.cpp
lib/RSA_DSA_signature.cpp
open_ssl/bn/bn_recp.c
open_ssl/bn/bn_sqr.c
lib/RSA_DSA_utils.cpp
lib/FEECSPUtils.cpp
open_ssl/dsa/dsa_err.c
open_ssl/misc/rc5_enc.c
open_ssl/bn/bn_prime.c
lib/aescsp.cpp
lib/bsafeAsymmetric.cpp
open_ssl/bf/bf_ecb.c
lib/HMACSHA1.c
open_ssl/rsa/rsa_ssl.c
lib/bsafeKeyGen.cpp
lib/DH_keys.cpp
open_ssl/bn/bn_shift.c
open_ssl/bn/bn_mpi.c
open_ssl/bn/bn_mul.c
open_ssl/dh/dh_gen.c
lib/RSA_asymmetric.cpp
open_ssl/rsa/rsa_chk.c
lib/MacContext.cpp
lib/MD2Object.cpp
lib/vRijndael-alg-ref.c
lib/AppleCSPContext.cpp
open_ssl/dsa/dsa_asn1.c
lib/boxes-ref.c
open_ssl/opensslUtils/opensslUtils.cpp
lib/deriveKey.cpp
lib/rc2Context.cpp
lib/opensshWrap.cpp
lib/SHA2_Object.cpp
open_ssl/bn/bn_print.c
lib/rijndaelApi.c
lib/DigestContext.cpp
open_ssl/misc/rc5_skey.c
open_ssl/lhash/lhash.c
open_ssl/dh/dh_key.c
open_ssl/err/err.c
lib/AppleCSPKeys.cpp
open_ssl/mem.c
lib/FEEAsymmetricContext.cpp
lib/miscalgorithms.cpp
lib/DH_exchange.cpp
lib/YarrowConnection.cpp
open_ssl/bn/bn_mont.c
lib/wrapKey.cpp
lib/SignatureContext.cpp
lib/opensshCoding.cpp
open_ssl/dsa/dsa_gen.c
lib/RSA_DSA_csp.cpp
lib/bfContext.cpp
lib/desContext.cpp
open_ssl/misc/rc2_cbc.c
open_ssl/bn/bn_rand.c
open_ssl/dh/dh_check.c
lib/AppleCSP.cpp
open_ssl/dsa/dsa_lib.c
open_ssl/bio/bio_lib.c
open_ssl/ex_data.c
open_ssl/dsa/dsa_key.c
open_ssl/bn/bn_lib.c
open_ssl/bf/bf_skey.c
open_ssl/rsa/rsa_lib.c
lib/AppleCSPBuiltin.cpp
lib/ascContext.cpp
open_ssl/bio/bss_file.c
open_ssl/err/err_prn.c
open_ssl/rsa/rsa_none.c
open_ssl/cryptlib.c
lib/DH_csp.cpp
open_ssl/bn/bn_exp2.c
lib/RSA_DSA_keys.cpp
lib/bsafePKCS1.cpp
lib/AppleCSPUtils.cpp
open_ssl/rsa/rsa_err.c
lib/castContext.cpp
lib/pkcs8.cpp
lib/wrapKeyCms.cpp
open_ssl/bn/bn_err.c
open_ssl/opensslUtils/opensslAsn1.cpp
open_ssl/bn/bn_add.c
lib/rc4Context.cpp
lib/bsafeContext.cpp
lib/FEESignatureObject.cpp
open_ssl/dsa/dsa_vrf.c
open_ssl/bn/bn_word.c
lib/rijndael-alg-ref.c
lib/memory.cpp
lib/pbkdDigest.cpp
lib/rc5Context.cpp
lib/pbkdf2.c
lib/cspdebugging.c
open_ssl/rsa/rsa_eay.c
open_ssl/rsa/rsa_gen.c
lib/bsafeSymmetric.cpp
open_ssl/stack/stack.c
open_ssl/bn/bn_ctx.c
open_ssl/rsa/rsa_sign.c
open_ssl/rsa/rsa_null.c
open_ssl/bf/bf_enc.c
open_ssl/rsa/rsa_saos.c
lib/algmaker.cpp
open_ssl/bn/bn_div.c
open_ssl/dsa/dsa_ossl.c
add_darling_static_library(security_apple_csp FAT
SOURCES
lib/pkcs12Derive.cpp
open_ssl/misc/rc2_skey.c
open_ssl/bn/bn_exp.c
open_ssl/rsa/rsa_pk1.c
lib/SHA1_MD5_Object.cpp
open_ssl/dh/dh_lib.c
lib/cryptkitcsp.cpp
open_ssl/bn/bn_gcd.c
open_ssl/dh/dh_err.c
open_ssl/bn/bn_blind.c
open_ssl/buffer/buf_err.c
open_ssl/buffer/buffer.c
lib/DH_utils.cpp
lib/miscAlgFactory.cpp
open_ssl/bn/bn_asm.c
lib/FEEKeys.cpp
open_ssl/dsa/dsa_sign.c
lib/gladmanContext.cpp
lib/BlockCryptor.cpp
lib/RSA_DSA_signature.cpp
open_ssl/bn/bn_recp.c
open_ssl/bn/bn_sqr.c
lib/RSA_DSA_utils.cpp
lib/FEECSPUtils.cpp
open_ssl/dsa/dsa_err.c
open_ssl/misc/rc5_enc.c
open_ssl/bn/bn_prime.c
lib/aescsp.cpp
lib/bsafeAsymmetric.cpp
open_ssl/bf/bf_ecb.c
lib/HMACSHA1.c
open_ssl/rsa/rsa_ssl.c
lib/bsafeKeyGen.cpp
lib/DH_keys.cpp
open_ssl/bn/bn_shift.c
open_ssl/bn/bn_mpi.c
open_ssl/bn/bn_mul.c
open_ssl/dh/dh_gen.c
lib/RSA_asymmetric.cpp
open_ssl/rsa/rsa_chk.c
lib/MacContext.cpp
lib/MD2Object.cpp
lib/vRijndael-alg-ref.c
lib/AppleCSPContext.cpp
open_ssl/dsa/dsa_asn1.c
lib/boxes-ref.c
open_ssl/opensslUtils/opensslUtils.cpp
lib/deriveKey.cpp
lib/rc2Context.cpp
lib/opensshWrap.cpp
lib/SHA2_Object.cpp
open_ssl/bn/bn_print.c
lib/rijndaelApi.c
lib/DigestContext.cpp
open_ssl/misc/rc5_skey.c
open_ssl/lhash/lhash.c
open_ssl/dh/dh_key.c
open_ssl/err/err.c
lib/AppleCSPKeys.cpp
open_ssl/mem.c
lib/FEEAsymmetricContext.cpp
lib/miscalgorithms.cpp
lib/DH_exchange.cpp
lib/YarrowConnection.cpp
open_ssl/bn/bn_mont.c
lib/wrapKey.cpp
lib/SignatureContext.cpp
lib/opensshCoding.cpp
open_ssl/dsa/dsa_gen.c
lib/RSA_DSA_csp.cpp
lib/bfContext.cpp
lib/desContext.cpp
open_ssl/misc/rc2_cbc.c
open_ssl/bn/bn_rand.c
open_ssl/dh/dh_check.c
lib/AppleCSP.cpp
open_ssl/dsa/dsa_lib.c
open_ssl/bio/bio_lib.c
open_ssl/ex_data.c
open_ssl/dsa/dsa_key.c
open_ssl/bn/bn_lib.c
open_ssl/bf/bf_skey.c
open_ssl/rsa/rsa_lib.c
lib/AppleCSPBuiltin.cpp
lib/ascContext.cpp
open_ssl/bio/bss_file.c
open_ssl/err/err_prn.c
open_ssl/rsa/rsa_none.c
open_ssl/cryptlib.c
lib/DH_csp.cpp
open_ssl/bn/bn_exp2.c
lib/RSA_DSA_keys.cpp
lib/bsafePKCS1.cpp
lib/AppleCSPUtils.cpp
open_ssl/rsa/rsa_err.c
lib/castContext.cpp
lib/pkcs8.cpp
lib/wrapKeyCms.cpp
open_ssl/bn/bn_err.c
open_ssl/opensslUtils/opensslAsn1.cpp
open_ssl/bn/bn_add.c
lib/rc4Context.cpp
lib/bsafeContext.cpp
lib/FEESignatureObject.cpp
open_ssl/dsa/dsa_vrf.c
open_ssl/bn/bn_word.c
lib/rijndael-alg-ref.c
lib/memory.cpp
lib/pbkdDigest.cpp
lib/rc5Context.cpp
lib/pbkdf2.c
lib/cspdebugging.c
open_ssl/rsa/rsa_eay.c
open_ssl/rsa/rsa_gen.c
lib/bsafeSymmetric.cpp
open_ssl/stack/stack.c
open_ssl/bn/bn_ctx.c
open_ssl/rsa/rsa_sign.c
open_ssl/rsa/rsa_null.c
open_ssl/bf/bf_enc.c
open_ssl/rsa/rsa_saos.c
lib/algmaker.cpp
open_ssl/bn/bn_div.c
open_ssl/dsa/dsa_ossl.c
)
make_fat(libsecurity_apple_csp)

View File

@ -9,16 +9,16 @@ add_definitions(
-DASC_CSP_ENABLE
)
add_library(libsecurity_apple_cspdl OBJECT
lib/SSCSPSession.cpp
lib/SSDLSession.cpp
lib/SSKey.cpp
lib/SSContext.cpp
lib/SSCSPDLSession.cpp
lib/CSPDLPlugin.cpp
lib/SSDatabase.cpp
lib/CSPDLDatabase.cpp
lib/SSFactory.cpp
lib/AppleCSPDLBuiltin.cpp
add_darling_static_library(security_apple_cspdl FAT
SOURCES
lib/SSCSPSession.cpp
lib/SSDLSession.cpp
lib/SSKey.cpp
lib/SSContext.cpp
lib/SSCSPDLSession.cpp
lib/CSPDLPlugin.cpp
lib/SSDatabase.cpp
lib/CSPDLDatabase.cpp
lib/SSFactory.cpp
lib/AppleCSPDLBuiltin.cpp
)
make_fat(libsecurity_apple_cspdl)

View File

@ -2,8 +2,8 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_apple_file_dl OBJECT
lib/AppleDLBuiltin.cpp
lib/AppleFileDL.cpp
add_darling_static_library(security_apple_file_dl FAT
SOURCES
lib/AppleDLBuiltin.cpp
lib/AppleFileDL.cpp
)
make_fat(libsecurity_apple_file_dl)

View File

@ -2,27 +2,27 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_apple_x509_cl OBJECT
lib/AppleX509CL.cpp
lib/clNssUtils.cpp
lib/DecodedItem.cpp
lib/clNameUtils.cpp
lib/Session_Cert.cpp
lib/CLFieldsCommon.cpp
lib/DecodedCert.cpp
lib/AppleX509CLBuiltin.cpp
lib/CertFields.cpp
lib/AppleX509CLSession.cpp
lib/CSPAttacher.cpp
lib/CLCrlExtensions.cpp
lib/AppleX509CLPlugin.cpp
lib/CLCachedEntry.cpp
lib/DecodedCrl.cpp
lib/CrlFields.cpp
lib/Session_CSR.cpp
lib/Session_CRL.cpp
lib/DecodedExtensions.cpp
lib/CLCertExtensions.cpp
lib/Session_Crypto.cpp
add_darling_static_library(security_apple_x509_cl FAT
SOURCES
lib/AppleX509CL.cpp
lib/clNssUtils.cpp
lib/DecodedItem.cpp
lib/clNameUtils.cpp
lib/Session_Cert.cpp
lib/CLFieldsCommon.cpp
lib/DecodedCert.cpp
lib/AppleX509CLBuiltin.cpp
lib/CertFields.cpp
lib/AppleX509CLSession.cpp
lib/CSPAttacher.cpp
lib/CLCrlExtensions.cpp
lib/AppleX509CLPlugin.cpp
lib/CLCachedEntry.cpp
lib/DecodedCrl.cpp
lib/CrlFields.cpp
lib/Session_CSR.cpp
lib/Session_CRL.cpp
lib/DecodedExtensions.cpp
lib/CLCertExtensions.cpp
lib/Session_Crypto.cpp
)
make_fat(libsecurity_apple_x509_cl)

View File

@ -2,24 +2,24 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_darling_static_library(libsecurity_apple_x509_tp
lib/TPDatabase.cpp
lib/TPCertInfo.cpp
lib/AppleTP.cpp
lib/ocspRequest.cpp
lib/TPNetwork.cpp
lib/tpCrlVerify.cpp
lib/AppleTPSession.cpp
lib/cuEnc64.c
lib/tpPolicies.cpp
lib/AppleX509TPBuiltin.cpp
lib/tpOcspVerify.cpp
lib/TPCrlInfo.cpp
lib/tpTime.c
lib/certGroupUtils.cpp
lib/tpOcspCache.cpp
lib/tpCertGroup.cpp
lib/tpOcspCertVfy.cpp
lib/tpCredRequest.cpp
add_darling_static_library(security_apple_x509_tp FAT
SOURCES
lib/TPDatabase.cpp
lib/TPCertInfo.cpp
lib/AppleTP.cpp
lib/ocspRequest.cpp
lib/TPNetwork.cpp
lib/tpCrlVerify.cpp
lib/AppleTPSession.cpp
lib/cuEnc64.c
lib/tpPolicies.cpp
lib/AppleX509TPBuiltin.cpp
lib/tpOcspVerify.cpp
lib/TPCrlInfo.cpp
lib/tpTime.c
lib/certGroupUtils.cpp
lib/tpOcspCache.cpp
lib/tpCertGroup.cpp
lib/tpOcspCertVfy.cpp
lib/tpCredRequest.cpp
)
#make_fat(libsecurity_apple_x509_tp)

View File

@ -2,29 +2,29 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
add_darling_static_library(libsecurity_asn1
lib/X509Templates.c
lib/keyTemplates.c
lib/SecAsn1Templates.c
lib/osKeyTemplates.c
lib/nsprPortX.c
lib/nameTemplates.c
lib/pkcs7Templates.c
lib/plarena.c
lib/secasn1e.c
lib/SecNssCoder.cpp
lib/oidsalg.c
lib/ocspTemplates.c
lib/certExtensionTemplates.c
lib/secport.c
lib/nssUtils.c
lib/pkcs12Templates.c
lib/csrTemplates.c
lib/oidsattr.c
lib/secErrorStr.c
lib/oidsocsp.c
lib/secasn1d.c
lib/SecAsn1Coder.c
lib/secasn1u.c
add_darling_static_library(security_asn1 FAT
SOURCES
lib/X509Templates.c
lib/keyTemplates.c
lib/SecAsn1Templates.c
lib/osKeyTemplates.c
lib/nsprPortX.c
lib/nameTemplates.c
lib/pkcs7Templates.c
lib/plarena.c
lib/secasn1e.c
lib/SecNssCoder.cpp
lib/oidsalg.c
lib/ocspTemplates.c
lib/certExtensionTemplates.c
lib/secport.c
lib/nssUtils.c
lib/pkcs12Templates.c
lib/csrTemplates.c
lib/oidsattr.c
lib/secErrorStr.c
lib/oidsocsp.c
lib/secasn1d.c
lib/SecAsn1Coder.c
lib/secasn1u.c
)
#make_fat(libsecurity_asn1)

View File

@ -2,11 +2,11 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_authorization OBJECT
lib/trampolineServer.cpp
lib/Authorization++.cpp
lib/Authorization.c
../authd/authutilities.c
lib/trampolineClient.cpp
add_darling_static_library(security_authorization FAT
SOURCES
lib/trampolineServer.cpp
lib/Authorization++.cpp
lib/Authorization.c
../authd/authutilities.c
lib/trampolineClient.cpp
)
make_fat(libsecurity_authorization)

View File

@ -2,28 +2,28 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_cdsa_client OBJECT
lib/dlclient.cpp
lib/mdsclient.cpp
lib/tpclient.cpp
lib/cssmclient.cpp
lib/cryptoclient.cpp
lib/aclclient.cpp
lib/DLDBList.cpp
lib/clclient.cpp
lib/signclient.cpp
lib/genkey.cpp
lib/macclient.cpp
lib/wrapkey.cpp
lib/keychainacl.cpp
lib/dliterators.cpp
lib/mds_standard.cpp
lib/dl_standard.cpp
lib/securestorage.cpp
lib/keyclient.cpp
lib/dlquery.cpp
lib/cspclient.cpp
lib/dlclientpriv.cpp
lib/multidldb.cpp
add_darling_static_library(security_cdsa_client FAT
SOURCES
lib/dlclient.cpp
lib/mdsclient.cpp
lib/tpclient.cpp
lib/cssmclient.cpp
lib/cryptoclient.cpp
lib/aclclient.cpp
lib/DLDBList.cpp
lib/clclient.cpp
lib/signclient.cpp
lib/genkey.cpp
lib/macclient.cpp
lib/wrapkey.cpp
lib/keychainacl.cpp
lib/dliterators.cpp
lib/mds_standard.cpp
lib/dl_standard.cpp
lib/securestorage.cpp
lib/keyclient.cpp
lib/dlquery.cpp
lib/cspclient.cpp
lib/dlclientpriv.cpp
lib/multidldb.cpp
)
make_fat(libsecurity_cdsa_client)

View File

@ -2,19 +2,19 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_cdsa_plugin OBJECT
lib/ACabstractsession.cpp
lib/CSPabstractsession.cpp
lib/DLabstractsession.cpp
lib/DatabaseSession.cpp
lib/CSPsession.cpp
lib/csputilities.cpp
lib/DbContext.cpp
lib/Database.cpp
lib/pluginsession.cpp
lib/cssmplugin.cpp
lib/TPabstractsession.cpp
lib/DLsession.cpp
lib/CLabstractsession.cpp
add_darling_static_library(security_cdsa_plugin FAT
SOURCES
lib/ACabstractsession.cpp
lib/CSPabstractsession.cpp
lib/DLabstractsession.cpp
lib/DatabaseSession.cpp
lib/CSPsession.cpp
lib/csputilities.cpp
lib/DbContext.cpp
lib/Database.cpp
lib/pluginsession.cpp
lib/cssmplugin.cpp
lib/TPabstractsession.cpp
lib/DLsession.cpp
lib/CLabstractsession.cpp
)
make_fat(libsecurity_cdsa_plugin)

View File

@ -2,47 +2,47 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_cdsa_utilities OBJECT
../../gen/KeySchema.cpp
../../gen/Schema.cpp
lib/callback.cpp
lib/acl_secret.cpp
lib/osxverifier.cpp
lib/handletemplates.cpp
lib/cssmdates.cpp
lib/acl_preauth.cpp
lib/cssmcred.cpp
lib/acl_password.cpp
lib/cssmtrust.cpp
lib/cssmlist.cpp
lib/objectacl.cpp
lib/cssmalloc.cpp
lib/cssmdbname.cpp
lib/acl_protectedpw.cpp
lib/handleobject.cpp
lib/uniformrandom.cpp
lib/acl_prompted.cpp
lib/acl_codesigning.cpp
lib/cssmerrors.cpp
lib/cssmwalkers.cpp
lib/AuthorizationData.cpp
lib/db++.cpp
lib/walkers.cpp
lib/cssmpods.cpp
lib/cssmdata.cpp
lib/acl_threshold.cpp
lib/cssmacl.cpp
lib/cssmdb.cpp
lib/aclsubject.cpp
lib/cssmkey.cpp
lib/cssmendian.cpp
lib/cssmcert.cpp
lib/acl_process.cpp
lib/context.cpp
lib/acl_comment.cpp
lib/acl_any.cpp
lib/cssmaclpod.cpp
lib/u32handleobject.cpp
lib/constdata.cpp
add_darling_static_library(security_cdsa_utilities FAT
SOURCES
../../gen/KeySchema.cpp
../../gen/Schema.cpp
lib/callback.cpp
lib/acl_secret.cpp
lib/osxverifier.cpp
lib/handletemplates.cpp
lib/cssmdates.cpp
lib/acl_preauth.cpp
lib/cssmcred.cpp
lib/acl_password.cpp
lib/cssmtrust.cpp
lib/cssmlist.cpp
lib/objectacl.cpp
lib/cssmalloc.cpp
lib/cssmdbname.cpp
lib/acl_protectedpw.cpp
lib/handleobject.cpp
lib/uniformrandom.cpp
lib/acl_prompted.cpp
lib/acl_codesigning.cpp
lib/cssmerrors.cpp
lib/cssmwalkers.cpp
lib/AuthorizationData.cpp
lib/db++.cpp
lib/walkers.cpp
lib/cssmpods.cpp
lib/cssmdata.cpp
lib/acl_threshold.cpp
lib/cssmacl.cpp
lib/cssmdb.cpp
lib/aclsubject.cpp
lib/cssmkey.cpp
lib/cssmendian.cpp
lib/cssmcert.cpp
lib/acl_process.cpp
lib/context.cpp
lib/acl_comment.cpp
lib/acl_any.cpp
lib/cssmaclpod.cpp
lib/u32handleobject.cpp
lib/constdata.cpp
)
make_fat(libsecurity_cdsa_utilities)

View File

@ -2,14 +2,14 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_darling_static_library(libsecurity_cdsa_utils
lib/cuPem.cpp
lib/cuEnc64.c
lib/cuCdsaUtils.cpp
lib/cuDbUtils.cpp
lib/cuOidParser.cpp
lib/cuPrintCert.cpp
lib/cuTimeStr.cpp
lib/cuFileIo.c
add_darling_static_library(security_cdsa_utils FAT
SOURCES
lib/cuPem.cpp
lib/cuEnc64.c
lib/cuCdsaUtils.cpp
lib/cuDbUtils.cpp
lib/cuOidParser.cpp
lib/cuPrintCert.cpp
lib/cuTimeStr.cpp
lib/cuFileIo.c
)
#make_fat(libsecurity_cdsa_utils)

View File

@ -1,4 +1,4 @@
add_library(libsecurity_checkpw OBJECT
lib/checkpw.c
add_darling_static_library(security_checkpw FAT
SOURCES
lib/checkpw.c
)
make_fat(libsecurity_checkpw)

View File

@ -1,6 +1,6 @@
add_library(libsecurity_cms OBJECT
lib/CMSDecoder.cpp
lib/CMSEncoder.cpp
lib/CMSUtils.cpp
add_darling_static_library(security_cms FAT
SOURCES
lib/CMSDecoder.cpp
lib/CMSEncoder.cpp
lib/CMSUtils.cpp
)
make_fat(libsecurity_cms)

View File

@ -3,87 +3,87 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_codesigning OBJECT
antlr2/src/ANTLRUtil.cpp
antlr2/src/ASTFactory.cpp
antlr2/src/ASTNULLType.cpp
antlr2/src/ASTRefCount.cpp
antlr2/src/BaseAST.cpp
antlr2/src/BitSet.cpp
antlr2/src/CharBuffer.cpp
antlr2/src/CharScanner.cpp
lib/Code.cpp
lib/CodeSigner.cpp
antlr2/src/CommonAST.cpp
antlr2/src/CommonASTWithHiddenTokens.cpp
antlr2/src/CommonHiddenStreamToken.cpp
antlr2/src/CommonToken.cpp
antlr2/src/InputBuffer.cpp
antlr2/src/LLkParser.cpp
antlr2/src/MismatchedCharException.cpp
antlr2/src/MismatchedTokenException.cpp
antlr2/src/NoViableAltException.cpp
antlr2/src/NoViableAltForCharException.cpp
antlr2/src/Parser.cpp
antlr2/src/RecognitionException.cpp
lib/RequirementLexer.cpp
lib/RequirementParser.cpp
lib/Requirements.cpp
lib/SecAssessment.cpp
lib/SecCode.cpp
lib/SecCodeHost.cpp
lib/SecCodeSigner.cpp
lib/SecRequirement.cpp
lib/SecStaticCode.cpp
lib/SecTask.c
lib/StaticCode.cpp
antlr2/src/String.cpp
antlr2/src/Token.cpp
antlr2/src/TokenBuffer.cpp
antlr2/src/TokenRefCount.cpp
antlr2/src/TokenStreamBasicFilter.cpp
antlr2/src/TokenStreamHiddenTokenFilter.cpp
antlr2/src/TokenStreamRewriteEngine.cpp
antlr2/src/TokenStreamSelector.cpp
antlr2/src/TreeParser.cpp
lib/antlrplugin.cpp
lib/bundlediskrep.cpp
lib/cdbuilder.cpp
lib/codedirectory.cpp
lib/cs.cpp
lib/csdatabase.cpp
lib/cserror.cpp
lib/csgeneric.cpp
lib/cskernel.cpp
lib/csprocess.cpp
lib/csutilities.cpp
lib/detachedrep.cpp
lib/dirscanner.cpp
lib/diskimagerep.cpp
lib/diskrep.cpp
lib/drmaker.cpp
lib/evaluationmanager.cpp
lib/filediskrep.cpp
lib/kerneldiskrep.cpp
lib/machorep.cpp
lib/opaquewhitelist.cpp
lib/piddiskrep.cpp
lib/policydb.cpp
lib/policyengine.cpp
lib/quarantine++.cpp
lib/reqdumper.cpp
lib/reqinterp.cpp
lib/reqmaker.cpp
lib/reqparser.cpp
lib/reqreader.cpp
lib/requirement.cpp
lib/resources.cpp
lib/sigblob.cpp
lib/signer.cpp
lib/signerutils.cpp
lib/singlediskrep.cpp
lib/slcrep.cpp
lib/xar++.cpp
lib/xpcengine.cpp
add_darling_static_library(security_codesigning FAT
SOURCES
antlr2/src/ANTLRUtil.cpp
antlr2/src/ASTFactory.cpp
antlr2/src/ASTNULLType.cpp
antlr2/src/ASTRefCount.cpp
antlr2/src/BaseAST.cpp
antlr2/src/BitSet.cpp
antlr2/src/CharBuffer.cpp
antlr2/src/CharScanner.cpp
lib/Code.cpp
lib/CodeSigner.cpp
antlr2/src/CommonAST.cpp
antlr2/src/CommonASTWithHiddenTokens.cpp
antlr2/src/CommonHiddenStreamToken.cpp
antlr2/src/CommonToken.cpp
antlr2/src/InputBuffer.cpp
antlr2/src/LLkParser.cpp
antlr2/src/MismatchedCharException.cpp
antlr2/src/MismatchedTokenException.cpp
antlr2/src/NoViableAltException.cpp
antlr2/src/NoViableAltForCharException.cpp
antlr2/src/Parser.cpp
antlr2/src/RecognitionException.cpp
lib/RequirementLexer.cpp
lib/RequirementParser.cpp
lib/Requirements.cpp
lib/SecAssessment.cpp
lib/SecCode.cpp
lib/SecCodeHost.cpp
lib/SecCodeSigner.cpp
lib/SecRequirement.cpp
lib/SecStaticCode.cpp
lib/SecTask.c
lib/StaticCode.cpp
antlr2/src/String.cpp
antlr2/src/Token.cpp
antlr2/src/TokenBuffer.cpp
antlr2/src/TokenRefCount.cpp
antlr2/src/TokenStreamBasicFilter.cpp
antlr2/src/TokenStreamHiddenTokenFilter.cpp
antlr2/src/TokenStreamRewriteEngine.cpp
antlr2/src/TokenStreamSelector.cpp
antlr2/src/TreeParser.cpp
lib/antlrplugin.cpp
lib/bundlediskrep.cpp
lib/cdbuilder.cpp
lib/codedirectory.cpp
lib/cs.cpp
lib/csdatabase.cpp
lib/cserror.cpp
lib/csgeneric.cpp
lib/cskernel.cpp
lib/csprocess.cpp
lib/csutilities.cpp
lib/detachedrep.cpp
lib/dirscanner.cpp
lib/diskimagerep.cpp
lib/diskrep.cpp
lib/drmaker.cpp
lib/evaluationmanager.cpp
lib/filediskrep.cpp
lib/kerneldiskrep.cpp
lib/machorep.cpp
lib/opaquewhitelist.cpp
lib/piddiskrep.cpp
lib/policydb.cpp
lib/policyengine.cpp
lib/quarantine++.cpp
lib/reqdumper.cpp
lib/reqinterp.cpp
lib/reqmaker.cpp
lib/reqparser.cpp
lib/reqreader.cpp
lib/requirement.cpp
lib/resources.cpp
lib/sigblob.cpp
lib/signer.cpp
lib/signerutils.cpp
lib/singlediskrep.cpp
lib/slcrep.cpp
lib/xar++.cpp
lib/xpcengine.cpp
)
make_fat(libsecurity_codesigning)

View File

@ -222,7 +222,7 @@ OSStatus SecCodeMapMemory(SecStaticCodeRef codeRef, SecCSFlags flags)
checkFlags(flags);
SecPointer<SecStaticCode> code = SecStaticCode::requiredStatic(codeRef);
if (const CodeDirectory *cd = code->codeDirectory(false)) {
fsignatures args = { code->diskRep()->signingBase(), (void *)cd, cd->length() };
fsignatures args = { static_cast<off_t>(code->diskRep()->signingBase()), (void *)cd, cd->length() };
UnixError::check(::fcntl(code->diskRep()->fd(), F_ADDSIGS, &args));
} else
MacOSError::throwMe(errSecCSUnsigned);

View File

@ -1,5 +1,5 @@
add_library(libsecurity_comcryption OBJECT
lib/comcryption.c
lib/comcryptPriv.c
add_darling_static_library(security_comcryption FAT
SOURCES
lib/comcryption.c
lib/comcryptPriv.c
)
make_fat(libsecurity_comcryption)

View File

@ -2,30 +2,30 @@ add_definitions(
-DCK_SECURITY_BUILD
)
add_library(libsecurity_cryptkit OBJECT
lib/CryptKitAsn1.cpp
lib/CryptKitDER.cpp
lib/HmacSha1Legacy.c
lib/byteRep.c
lib/ckSHA1.c
lib/ckutilities.c
lib/curveParams.c
lib/elliptic.c
lib/ellipticProj.c
lib/enc64.c
lib/engineNSA127.c
lib/falloc.c
lib/feeDES.c
lib/feeDigitalSignature.c
lib/feeECDSA.c
lib/feeFEED.c
lib/feeFEEDExp.c
lib/feeHash.c
lib/feePublicKey.c
lib/feeRandom.c
lib/giantIntegers.c
lib/giantPort_PPC.c
lib/giantPort_PPC_Gnu.S
lib/platform.c
add_darling_static_library(security_cryptkit FAT
SOURCES
lib/CryptKitAsn1.cpp
lib/CryptKitDER.cpp
lib/HmacSha1Legacy.c
lib/byteRep.c
lib/ckSHA1.c
lib/ckutilities.c
lib/curveParams.c
lib/elliptic.c
lib/ellipticProj.c
lib/enc64.c
lib/engineNSA127.c
lib/falloc.c
lib/feeDES.c
lib/feeDigitalSignature.c
lib/feeECDSA.c
lib/feeFEED.c
lib/feeFEEDExp.c
lib/feeHash.c
lib/feePublicKey.c
lib/feeRandom.c
lib/giantIntegers.c
lib/giantPort_PPC.c
lib/giantPort_PPC_Gnu.S
lib/platform.c
)
make_fat(libsecurity_cryptkit)

View File

@ -2,22 +2,22 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_cssm OBJECT
lib/attachment.cpp
lib/modloader.cpp
lib/cspattachment.cpp
lib/cssmcontext.cpp
lib/oidsalg.c
lib/modload_plugin.cpp
lib/oidscrl.cpp
lib/attachfactory.cpp
lib/cssmmds.cpp
lib/modload_static.cpp
lib/transition.cpp
lib/cssm.cpp
lib/oidscert.cpp
lib/module.cpp
lib/guids.cpp
lib/manager.cpp
add_darling_static_library(security_cssm FAT
SOURCES
lib/attachment.cpp
lib/modloader.cpp
lib/cspattachment.cpp
lib/cssmcontext.cpp
lib/oidsalg.c
lib/modload_plugin.cpp
lib/oidscrl.cpp
lib/attachfactory.cpp
lib/cssmmds.cpp
lib/modload_static.cpp
lib/transition.cpp
lib/cssm.cpp
lib/oidscert.cpp
lib/module.cpp
lib/guids.cpp
lib/manager.cpp
)
make_fat(libsecurity_cssm)

View File

@ -2,15 +2,15 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_filedb OBJECT
lib/DbQuery.cpp
lib/AtomicFile.cpp
lib/AppleDatabase.cpp
lib/MetaRecord.cpp
lib/DbIndex.cpp
lib/DbValue.cpp
lib/SelectionPredicate.cpp
lib/MetaAttribute.cpp
lib/ReadWriteSection.cpp
add_darling_static_library(security_filedb FAT
SOURCES
lib/DbQuery.cpp
lib/AtomicFile.cpp
lib/AppleDatabase.cpp
lib/MetaRecord.cpp
lib/DbIndex.cpp
lib/DbValue.cpp
lib/SelectionPredicate.cpp
lib/MetaAttribute.cpp
lib/ReadWriteSection.cpp
)
make_fat(libsecurity_filedb)

View File

@ -3,122 +3,95 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/libDER
)
add_darling_static_library(libsecurity_keychain
lib/ACL.cpp
lib/Access.cpp
lib/CCallbackMgr.cp
lib/Certificate.cpp
lib/CertificateRequest.cpp
lib/CertificateValues.cpp
lib/DLDBListCFPref.cpp
lib/DynamicDLDBList.cpp
lib/ExtendedAttribute.cpp
lib/Globals.cpp
lib/Identity.cpp
lib/IdentityCursor.cpp
lib/Item.cpp
lib/KCCursor.cpp
lib/KCEventNotifier.cpp
lib/KCUtilities.cpp
lib/KeyItem.cpp
lib/Keychains.cpp
lib/Password.cpp
lib/Policies.cpp
lib/PolicyCursor.cpp
lib/PrimaryKey.cpp
lib/SecACL.cpp
lib/SecAccess.cpp
lib/SecBase.cpp
lib/SecBase64P.c
lib/SecCFTypes.cpp
lib/SecCertificate.cpp
lib/SecCertificateBundle.cpp
lib/SecCertificateP.c
lib/SecCertificateRequest.cpp
lib/SecExport.cpp
lib/SecExternalRep.cpp
lib/SecFDERecoveryAsymmetricCrypto.cpp
lib/SecFrameworkP.c
lib/SecIdentity.cpp
lib/SecIdentitySearch.cpp
lib/SecImport.cpp
lib/SecImportExport.c
lib/SecImportExportAgg.cpp
lib/SecImportExportCrypto.cpp
lib/SecImportExportOpenSSH.cpp
lib/SecImportExportPem.cpp
lib/SecImportExportPkcs8.cpp
lib/SecImportExportUtils.cpp
lib/SecItem.cpp
lib/SecItemConstants.c
lib/SecKey.cpp
lib/SecKeychain.cpp
lib/SecKeychainAddIToolsPassword.cpp
lib/SecKeychainItem.cpp
lib/SecKeychainItemExtendedAttributes.cpp
lib/SecKeychainSearch.cpp
lib/SecNetscapeTemplates.cpp
lib/SecPassword.cpp
lib/SecPkcs8Templates.cpp
lib/SecPolicy.cpp
lib/SecPolicySearch.cpp
lib/SecRandom.c
lib/SecRecoveryPassword.c
lib/SecTrust.cpp
lib/SecTrustOSXEntryPoints.cpp
lib/SecTrustSettings.cpp
lib/SecTrustedApplication.cpp
lib/SecWrappedKeys.cpp
lib/StorageManager.cpp
lib/TokenLogin.cpp
lib/Trust.cpp
lib/TrustAdditions.cpp
lib/TrustItem.cpp
lib/TrustRevocation.cpp
lib/TrustSettings.cpp
lib/TrustSettingsUtils.cpp
lib/TrustStore.cpp
lib/TrustedApplication.cpp
lib/UnlockReferralItem.cpp
lib/cssmdatetime.cpp
lib/defaultcreds.cpp
lib/tsaDERUtilities.c
)
set(auto_sources
Admin.cpp
auto_gdb_interface.cpp
auto_impl_utilities.c
auto_weak.cpp
auto_zone.cpp
Bitmap.cpp
BlockRef.cpp
ClearStack.cpp
Definitions.cpp
Environment.cpp
InUseEnumerator.cpp
Large.cpp
PointerHash.cpp
Region.cpp
Subzone.cpp
SubzonePartition.cpp
Thread.cpp
ThreadLocalCollector.cpp
WriteBarrier.cpp
ZoneCollectionChecking.cpp
ZoneCollectors.cpp
ZoneCompaction.cpp
Zone.cpp
ZoneDump.cpp
add_darling_static_library(security_keychain FAT
SOURCES
lib/ACL.cpp
lib/Access.cpp
lib/CCallbackMgr.cp
lib/Certificate.cpp
lib/CertificateRequest.cpp
lib/CertificateValues.cpp
lib/DLDBListCFPref.cpp
lib/DynamicDLDBList.cpp
lib/ExtendedAttribute.cpp
lib/Globals.cpp
lib/Identity.cpp
lib/IdentityCursor.cpp
lib/Item.cpp
lib/KCCursor.cpp
lib/KCEventNotifier.cpp
lib/KCUtilities.cpp
lib/KeyItem.cpp
lib/Keychains.cpp
lib/Password.cpp
lib/Policies.cpp
lib/PolicyCursor.cpp
lib/PrimaryKey.cpp
lib/SecACL.cpp
lib/SecAccess.cpp
lib/SecBase.cpp
lib/SecBase64P.c
lib/SecCFTypes.cpp
lib/SecCertificate.cpp
lib/SecCertificateBundle.cpp
lib/SecCertificateP.c
lib/SecCertificateRequest.cpp
lib/SecExport.cpp
lib/SecExternalRep.cpp
lib/SecFDERecoveryAsymmetricCrypto.cpp
lib/SecFrameworkP.c
lib/SecIdentity.cpp
lib/SecIdentitySearch.cpp
lib/SecImport.cpp
lib/SecImportExport.c
lib/SecImportExportAgg.cpp
lib/SecImportExportCrypto.cpp
lib/SecImportExportOpenSSH.cpp
lib/SecImportExportPem.cpp
lib/SecImportExportPkcs8.cpp
lib/SecImportExportUtils.cpp
lib/SecItem.cpp
lib/SecItemConstants.c
lib/SecKey.cpp
lib/SecKeychain.cpp
lib/SecKeychainAddIToolsPassword.cpp
lib/SecKeychainItem.cpp
lib/SecKeychainItemExtendedAttributes.cpp
lib/SecKeychainSearch.cpp
lib/SecNetscapeTemplates.cpp
lib/SecPassword.cpp
lib/SecPkcs8Templates.cpp
lib/SecPolicy.cpp
lib/SecPolicySearch.cpp
lib/SecRandom.c
lib/SecRecoveryPassword.c
lib/SecTrust.cpp
lib/SecTrustOSXEntryPoints.cpp
lib/SecTrustSettings.cpp
lib/SecTrustedApplication.cpp
lib/SecWrappedKeys.cpp
lib/StorageManager.cpp
lib/TokenLogin.cpp
lib/Trust.cpp
lib/TrustAdditions.cpp
lib/TrustItem.cpp
lib/TrustRevocation.cpp
lib/TrustSettings.cpp
lib/TrustSettingsUtils.cpp
lib/TrustStore.cpp
lib/TrustedApplication.cpp
lib/UnlockReferralItem.cpp
lib/cssmdatetime.cpp
lib/defaultcreds.cpp
lib/tsaDERUtilities.c
)
#make_fat(libsecurity_keychain)
add_library(libsecurity_keychain_DER OBJECT
libDER/libDER/DER_Decode.c
libDER/libDER/DER_Encode.c
libDER/libDER/DER_Keys.c
libDER/libDER/DER_Digest.c
libDER/libDER/oids.c
libDER/libDER/DER_CertCrl.c
add_darling_static_library(security_keychain_DER FAT
SOURCES
libDER/libDER/DER_Decode.c
libDER/libDER/DER_Encode.c
libDER/libDER/DER_Keys.c
libDER/libDER/DER_Digest.c
libDER/libDER/oids.c
libDER/libDER/DER_CertCrl.c
)
make_fat(libsecurity_keychain_DER)

View File

@ -2,14 +2,14 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_manifest OBJECT
lib/ManifestSigner.cpp
lib/Manifest.cpp
lib/SecManifest.cpp
lib/SecureDownloadInternal.c
lib/SecureDownload.cpp
lib/ManifestInternal.cpp
lib/Download.cpp
lib/AppleManifest.cpp
add_darling_static_library(security_manifest FAT
SOURCES
lib/ManifestSigner.cpp
lib/Manifest.cpp
lib/SecManifest.cpp
lib/SecureDownloadInternal.c
lib/SecureDownload.cpp
lib/ManifestInternal.cpp
lib/Download.cpp
lib/AppleManifest.cpp
)
make_fat(libsecurity_manifest)

View File

@ -2,15 +2,15 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_mds OBJECT
lib/MDSDictionary.cpp
lib/MDSDatabase.cpp
lib/MDSAttrParser.cpp
lib/MDSSchema.cpp
lib/MDSModule.cpp
lib/MDSAttrUtils.cpp
lib/MDSAttrStrings.cpp
lib/MDSSession.cpp
lib/mdsapi.cpp
add_darling_static_library(security_mds FAT
SOURCES
lib/MDSDictionary.cpp
lib/MDSDatabase.cpp
lib/MDSAttrParser.cpp
lib/MDSSchema.cpp
lib/MDSModule.cpp
lib/MDSAttrUtils.cpp
lib/MDSAttrStrings.cpp
lib/MDSSession.cpp
lib/mdsapi.cpp
)
make_fat(libsecurity_mds)

View File

@ -2,14 +2,14 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/common
)
add_library(libsecurity_ocspd OBJECT
mig/ocspd_client.cpp
common/ocspdDbSchema.cpp
mig/ocspd.defs
common/ocspResponse.cpp
mig/ocspd_server.cpp
client/ocspdClient.cpp
common/ocspExtensions.cpp
common/ocspdUtils.cpp
add_darling_static_library(security_ocspd FAT
SOURCES
mig/ocspd_client.cpp
common/ocspdDbSchema.cpp
mig/ocspd.defs
common/ocspResponse.cpp
mig/ocspd_server.cpp
client/ocspdClient.cpp
common/ocspExtensions.cpp
common/ocspdUtils.cpp
)
make_fat(libsecurity_ocspd)

View File

@ -1,14 +1,14 @@
add_library(libsecurity_pkcs12 OBJECT
lib/pkcs12Crypto.cpp
lib/pkcs12Utils.cpp
lib/pkcs12Decode.cpp
lib/pkcs12BagAttrs.cpp
lib/pkcs12Coder.cpp
lib/pkcs12Encode.cpp
lib/SecPkcs12.cpp
lib/pkcs12SafeBag.cpp
lib/pkcs12Keychain.cpp
lib/pkcs7Templates.cpp
lib/pkcs12Templates.cpp
add_darling_static_library(security_pkcs12 FAT
SOURCES
lib/pkcs12Crypto.cpp
lib/pkcs12Utils.cpp
lib/pkcs12Decode.cpp
lib/pkcs12BagAttrs.cpp
lib/pkcs12Coder.cpp
lib/pkcs12Encode.cpp
lib/SecPkcs12.cpp
lib/pkcs12SafeBag.cpp
lib/pkcs12Keychain.cpp
lib/pkcs7Templates.cpp
lib/pkcs12Templates.cpp
)
make_fat(libsecurity_pkcs12)

View File

@ -2,15 +2,15 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_sd_cspdl OBJECT
lib/SDCSPSession.cpp
lib/SDCSPDLDatabase.cpp
lib/SDDLSession.cpp
lib/SDContext.cpp
lib/SDCSPDLSession.cpp
lib/SDFactory.cpp
lib/SDKey.cpp
lib/SDCSPDLPlugin.cpp
lib/SDCSPDLBuiltin.cpp
add_darling_static_library(security_sd_cspdl FAT
SOURCES
lib/SDCSPSession.cpp
lib/SDCSPDLDatabase.cpp
lib/SDDLSession.cpp
lib/SDContext.cpp
lib/SDCSPDLSession.cpp
lib/SDFactory.cpp
lib/SDKey.cpp
lib/SDCSPDLPlugin.cpp
lib/SDCSPDLBuiltin.cpp
)
make_fat(libsecurity_sd_cspdl)

View File

@ -2,35 +2,35 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_smime OBJECT
lib/cert.c
lib/cmsarray.c
lib/cmsasn1.c
lib/cmsattr.c
lib/cmscinfo.c
lib/cmscipher.c
lib/SecCMS.c
lib/cmsdecode.c
lib/cmsdigdata.c
lib/cmsdigest.c
lib/cmsencdata.c
lib/cmsencode.c
lib/cmsenvdata.c
lib/cmsmessage.c
lib/cmspubkey.c
lib/cmsrecinfo.c
lib/cmsreclist.c
lib/cmssigdata.c
lib/cmssiginfo.c
lib/cmsutil.c
lib/cryptohi.c
lib/plhash.c
lib/secalgid.c
lib/secitem.c
lib/secoid.c
lib/smimeutil.c
lib/siginfoUtils.cpp
lib/tsaTemplates.c
lib/tsaSupport.c
add_darling_static_library(security_smime FAT
SOURCES
lib/cert.c
lib/cmsarray.c
lib/cmsasn1.c
lib/cmsattr.c
lib/cmscinfo.c
lib/cmscipher.c
lib/SecCMS.c
lib/cmsdecode.c
lib/cmsdigdata.c
lib/cmsdigest.c
lib/cmsencdata.c
lib/cmsencode.c
lib/cmsenvdata.c
lib/cmsmessage.c
lib/cmspubkey.c
lib/cmsrecinfo.c
lib/cmsreclist.c
lib/cmssigdata.c
lib/cmssiginfo.c
lib/cmsutil.c
lib/cryptohi.c
lib/plhash.c
lib/secalgid.c
lib/secitem.c
lib/secoid.c
lib/smimeutil.c
lib/siginfoUtils.cpp
lib/tsaTemplates.c
lib/tsaSupport.c
)
make_fat(libsecurity_smime)

View File

@ -2,15 +2,15 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_darling_static_library(libsecurity_ssl
lib/sslRecord.c
lib/sslContext.c
lib/tlsCallbacks.c
lib/SSLRecordInternal.c
lib/sslKeychain.c
lib/sslMemory.c
lib/sslTransport.c
lib/sslCipherSpecs.c
lib/sslCrypto.c
add_darling_static_library(security_ssl FAT
SOURCES
lib/sslRecord.c
lib/sslContext.c
lib/tlsCallbacks.c
lib/SSLRecordInternal.c
lib/sslKeychain.c
lib/sslMemory.c
lib/sslTransport.c
lib/sslCipherSpecs.c
lib/sslCrypto.c
)
#make_fat(libsecurity_ssl)

View File

@ -2,35 +2,35 @@ add_definitions(
-DCOM_APPLE_SECURITY_SANE_INCLUDES
)
add_library(libsecurity_transform OBJECT
lib/c++utils.cpp
lib/Source.cpp
lib/EncryptTransform.cpp
lib/SecSignVerifyTransform.c
lib/GroupTransform.cpp
lib/SecCustomTransform.cpp
lib/SecExternalSourceTransform.cpp
lib/StreamSource.cpp
lib/SecGroupTransform.cpp
lib/misc.c
lib/SecEncryptTransform.cpp
lib/Digest.cpp
lib/SecMaskGenerationFunctionTransform.c
lib/LinkedList.cpp
lib/CoreFoundationBasics.cpp
lib/SingleShotSource.cpp
lib/CEncryptDecrypt.c
lib/SecNullTransform.cpp
lib/NullTransform.cpp
lib/EncodeDecodeTransforms.c
lib/SecTransform.cpp
lib/Transform.cpp
lib/TransformFactory.cpp
lib/EncryptTransformUtilities.cpp
lib/SecTransformReadTransform.cpp
lib/Monitor.cpp
lib/SecDigestTransform.cpp
lib/SecCollectTransform.cpp
lib/Utilities.cpp
add_darling_static_library(security_transform FAT
SOURCES
lib/c++utils.cpp
lib/Source.cpp
lib/EncryptTransform.cpp
lib/SecSignVerifyTransform.c
lib/GroupTransform.cpp
lib/SecCustomTransform.cpp
lib/SecExternalSourceTransform.cpp
lib/StreamSource.cpp
lib/SecGroupTransform.cpp
lib/misc.c
lib/SecEncryptTransform.cpp
lib/Digest.cpp
lib/SecMaskGenerationFunctionTransform.c
lib/LinkedList.cpp
lib/CoreFoundationBasics.cpp
lib/SingleShotSource.cpp
lib/CEncryptDecrypt.c
lib/SecNullTransform.cpp
lib/NullTransform.cpp
lib/EncodeDecodeTransforms.c
lib/SecTransform.cpp
lib/Transform.cpp
lib/TransformFactory.cpp
lib/EncryptTransformUtilities.cpp
lib/SecTransformReadTransform.cpp
lib/Monitor.cpp
lib/SecDigestTransform.cpp
lib/SecCollectTransform.cpp
lib/Utilities.cpp
)
make_fat(libsecurity_transform)

View File

@ -1,12 +1,12 @@
add_library(libsecurity_translocate OBJECT
lib/SecTranslocate.cpp
lib/SecTranslocateShared.cpp
lib/SecTranslocateLSNotification.cpp
lib/SecTranslocateUtilities.cpp
lib/SecTranslocateDANotification.cpp
lib/SecTranslocateServer.cpp
lib/SecTranslocateInterface.cpp
lib/SecTranslocateClient.cpp
lib/SecTranslocateXPCServer.cpp
add_darling_static_library(security_translocate FAT
SOURCES
lib/SecTranslocate.cpp
lib/SecTranslocateShared.cpp
lib/SecTranslocateLSNotification.cpp
lib/SecTranslocateUtilities.cpp
lib/SecTranslocateDANotification.cpp
lib/SecTranslocateServer.cpp
lib/SecTranslocateInterface.cpp
lib/SecTranslocateClient.cpp
lib/SecTranslocateXPCServer.cpp
)
make_fat(libsecurity_translocate)

View File

@ -2,67 +2,67 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurity_utilities OBJECT
lib/cfmach++.cpp
lib/hashing.cpp
lib/devrandom.cpp
lib/headermap.cpp
lib/pcsc++.cpp
lib/ccaudit.cpp
lib/cfmunge.cpp
lib/url.cpp
lib/seccfobject.cpp
lib/superblob.cpp
lib/dyldcache.cpp
lib/buffers.cpp
lib/simpleprefs.cpp
lib/logging.cpp
lib/threading.cpp
lib/tqueue.cpp
lib/timeflow.cpp
lib/trackingallocator.cpp
lib/utilities.cpp
lib/machserver.cpp
lib/cfutilities.cpp
lib/mach_notify.c
lib/crc.c
lib/hosts.cpp
lib/sqlite++.cpp
lib/dispatch.cpp
lib/selector.cpp
lib/inetreply.cpp
lib/fdsel.cpp
lib/fdmover.cpp
lib/socks++4.cpp
lib/FileLockTransaction.cpp
lib/socks++5.cpp
lib/blob.cpp
lib/typedvalue.cpp
lib/ip++.cpp
lib/errors.cpp
lib/endian.cpp
lib/transactions.cpp
lib/unix++.cpp
lib/coderepository.cpp
lib/iodevices.cpp
lib/alloc.cpp
lib/vproc++.cpp
lib/muscle++.cpp
lib/adornments.cpp
lib/debugging_internal.cpp
lib/streams.cpp
lib/cfclass.cpp
lib/mach++.cpp
lib/unixchild.cpp
lib/CSPDLTransaction.cpp
lib/macho++.cpp
lib/bufferfifo.cpp
lib/socks++.cpp
lib/osxcode.cpp
lib/globalizer.cpp
lib/powerwatch.cpp
lib/daemon.cpp
lib/machrunloopserver.cpp
lib/kq++.cpp
add_darling_static_library(security_utilities FAT
SOURCES
lib/cfmach++.cpp
lib/hashing.cpp
lib/devrandom.cpp
lib/headermap.cpp
lib/pcsc++.cpp
lib/ccaudit.cpp
lib/cfmunge.cpp
lib/url.cpp
lib/seccfobject.cpp
lib/superblob.cpp
lib/dyldcache.cpp
lib/buffers.cpp
lib/simpleprefs.cpp
lib/logging.cpp
lib/threading.cpp
lib/tqueue.cpp
lib/timeflow.cpp
lib/trackingallocator.cpp
lib/utilities.cpp
lib/machserver.cpp
lib/cfutilities.cpp
lib/mach_notify.c
lib/crc.c
lib/hosts.cpp
lib/sqlite++.cpp
lib/dispatch.cpp
lib/selector.cpp
lib/inetreply.cpp
lib/fdsel.cpp
lib/fdmover.cpp
lib/socks++4.cpp
lib/FileLockTransaction.cpp
lib/socks++5.cpp
lib/blob.cpp
lib/typedvalue.cpp
lib/ip++.cpp
lib/errors.cpp
lib/endian.cpp
lib/transactions.cpp
lib/unix++.cpp
lib/coderepository.cpp
lib/iodevices.cpp
lib/alloc.cpp
lib/vproc++.cpp
lib/muscle++.cpp
lib/adornments.cpp
lib/debugging_internal.cpp
lib/streams.cpp
lib/cfclass.cpp
lib/mach++.cpp
lib/unixchild.cpp
lib/CSPDLTransaction.cpp
lib/macho++.cpp
lib/bufferfifo.cpp
lib/socks++.cpp
lib/osxcode.cpp
lib/globalizer.cpp
lib/powerwatch.cpp
lib/daemon.cpp
lib/machrunloopserver.cpp
lib/kq++.cpp
)
make_fat(libsecurity_utilities)

View File

@ -3,25 +3,25 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/lib
)
add_library(libsecurityd_client OBJECT
lib/dictionary.cpp
lib/sec_xdr.c
lib/sec_xdr_array.c
lib/sec_xdr_reference.c
lib/sec_xdrmem.c
lib/sec_xdr_sizeof.c
lib/xdr_auth.c
lib/xdr_cssm.c
lib/xdr_dldb.cpp
lib/SharedMemoryClient.cpp
lib/eventlistener.cpp
lib/ssblob.cpp
lib/ssclient.cpp
lib/sstransit.cpp
lib/transition.cpp
mig/ucspClient.cpp
mig/ucspNotifySender.cpp
mig/cshostingClient.cpp
mig/cshostingServer.cpp
add_darling_static_library(securityd_client FAT
SOURCES
lib/dictionary.cpp
lib/sec_xdr.c
lib/sec_xdr_array.c
lib/sec_xdr_reference.c
lib/sec_xdrmem.c
lib/sec_xdr_sizeof.c
lib/xdr_auth.c
lib/xdr_cssm.c
lib/xdr_dldb.cpp
lib/SharedMemoryClient.cpp
lib/eventlistener.cpp
lib/ssblob.cpp
lib/ssclient.cpp
lib/sstransit.cpp
lib/transition.cpp
mig/ucspClient.cpp
mig/ucspNotifySender.cpp
mig/cshostingClient.cpp
mig/cshostingServer.cpp
)
make_fat(libsecurityd_client)

View File

@ -12,143 +12,143 @@ add_definitions(
-DSEC_IOS_ON_OSX=1
)
add_library(libSecOtrOSX OBJECT
Security/SecOTRDHKey.c
Security/SecOTRFullIdentity.c
Security/SecOTRMath.c
Security/SecOTRPacketData.c
Security/SecOTRPackets.c
Security/SecOTRPublicIdentity.c
Security/SecOTRSession.c
Security/SecOTRSessionAKE.c
Security/SecOTRUtils.c
add_darling_static_library(SecOtrOSX FAT
SOURCES
Security/SecOTRDHKey.c
Security/SecOTRFullIdentity.c
Security/SecOTRMath.c
Security/SecOTRPacketData.c
Security/SecOTRPackets.c
Security/SecOTRPublicIdentity.c
Security/SecOTRSession.c
Security/SecOTRSessionAKE.c
Security/SecOTRUtils.c
)
make_fat(libSecOtrOSX)
add_darling_static_library(libSecureObjectSync
SOSCircle/Tool/accountCirclesViewsPrint.c
SOSCircle/SecureObjectSync/SOSBackupInformation.c
SOSCircle/SecureObjectSync/SOSAccount.c
SOSCircle/SecureObjectSync/SOSAccountBackup.c
SOSCircle/SecureObjectSync/SOSAccountCircles.c
SOSCircle/SecureObjectSync/SOSAccountSync.c
SOSCircle/SecureObjectSync/SOSAccountCloudParameters.c
SOSCircle/SecureObjectSync/SOSAccountCredentials.c
SOSCircle/SecureObjectSync/SOSAccountDer.c
SOSCircle/SecureObjectSync/SOSKeyedPubKeyIdentifier.c
SOSCircle/SecureObjectSync/SOSAccountFullPeerInfo.c
SOSCircle/SecureObjectSync/SOSAccountHSAJoin.c
SOSCircle/SecureObjectSync/SOSAccountLog.c
SOSCircle/SecureObjectSync/SOSAccountPeers.c
SOSCircle/SecureObjectSync/SOSAccountPersistence.c
SOSCircle/SecureObjectSync/SOSAccountRingUpdate.c
SOSCircle/SecureObjectSync/SOSAccountRings.c
SOSCircle/SecureObjectSync/SOSRingRecovery.c
SOSCircle/SecureObjectSync/SOSAccountTransaction.c
SOSCircle/SecureObjectSync/SOSAccountUpdate.c
SOSCircle/SecureObjectSync/SOSAccountViewSync.c
SOSCircle/SecureObjectSync/SOSBackupEvent.c
SOSCircle/SecureObjectSync/SOSBackupSliceKeyBag.c
SOSCircle/SecureObjectSync/SOSCircle.c
SOSCircle/SecureObjectSync/SOSCircleDer.c
SOSCircle/SecureObjectSync/SOSCircleV2.c
SOSCircle/CKBridge/SOSCloudKeychainConstants.c
SOSCircle/CKBridge/SOSCloudKeychainClient.c
SOSCircle/SecureObjectSync/SOSCoder.c
SOSCircle/SecureObjectSync/SOSDigestVector.c
SOSCircle/SecureObjectSync/SOSECWrapUnwrap.c
SOSCircle/SecureObjectSync/SOSFullPeerInfo.c
SOSCircle/SecureObjectSync/SOSGenCount.c
SOSCircle/SecureObjectSync/SOSInternal.c
SOSCircle/SecureObjectSync/SOSKVSKeys.c
SOSCircle/SecureObjectSync/SOSManifest.c
SOSCircle/SecureObjectSync/SOSMessage.c
SOSCircle/SecureObjectSync/SOSPeer.c
SOSCircle/SecureObjectSync/SOSPeerCoder.c
SOSCircle/SecureObjectSync/SOSPeerInfo.c
SOSCircle/SecureObjectSync/SOSPeerInfoCollections.c
SOSCircle/SecureObjectSync/SOSPeerInfoDER.c
SOSCircle/SecureObjectSync/SOSRecoveryKeyBag.c
SOSCircle/SecureObjectSync/SOSPeerInfoRingState.c
SOSCircle/SecureObjectSync/SOSPeerInfoSecurityProperties.c
SOSCircle/SecureObjectSync/SOSPeerInfoV2.c
SOSCircle/SecureObjectSync/SOSAccountGhost.c
SOSCircle/SecureObjectSync/SOSRingBackup.c
SOSCircle/SecureObjectSync/SOSAccountGetSet.c
SOSCircle/SecureObjectSync/SOSRingBasic.c
SOSCircle/SecureObjectSync/SOSRingConcordanceTrust.c
Security/SecRecoveryKey.m
SOSCircle/SecureObjectSync/SOSRingDER.c
SOSCircle/SecureObjectSync/SOSAccountRecovery.c
SOSCircle/SecureObjectSync/SOSRingPeerInfoUtils.c
SOSCircle/SecureObjectSync/SOSRingTypes.c
SOSCircle/SecureObjectSync/SOSRingUtils.c
SOSCircle/SecureObjectSync/SOSRingV0.c
SOSCircle/SecureObjectSync/SOSSysdiagnose.c
SOSCircle/SecureObjectSync/SOSTransport.c
SOSCircle/SecureObjectSync/SOSTransportBackupPeer.c
SOSCircle/SecureObjectSync/SOSTransportCircle.c
SOSCircle/SecureObjectSync/SOSTransportCircleKVS.c
SOSCircle/SecureObjectSync/SOSTransportKeyParameter.c
SOSCircle/SecureObjectSync/SOSTransportKeyParameterKVS.c
SOSCircle/SecureObjectSync/SOSTransportMessage.c
SOSCircle/SecureObjectSync/SOSTransportMessageIDS.c
SOSCircle/SecureObjectSync/SOSTransportMessageKVS.c
SOSCircle/SecureObjectSync/SOSUserKeygen.c
SOSCircle/SecureObjectSync/SOSViews.c
SOSCircle/Tool/secToolFileIO.c
SOSCircle/Tool/secViewDisplay.c
add_darling_static_library(SecureObjectSync FAT
SOURCES
SOSCircle/Tool/accountCirclesViewsPrint.c
SOSCircle/SecureObjectSync/SOSBackupInformation.c
SOSCircle/SecureObjectSync/SOSAccount.c
SOSCircle/SecureObjectSync/SOSAccountBackup.c
SOSCircle/SecureObjectSync/SOSAccountCircles.c
SOSCircle/SecureObjectSync/SOSAccountSync.c
SOSCircle/SecureObjectSync/SOSAccountCloudParameters.c
SOSCircle/SecureObjectSync/SOSAccountCredentials.c
SOSCircle/SecureObjectSync/SOSAccountDer.c
SOSCircle/SecureObjectSync/SOSKeyedPubKeyIdentifier.c
SOSCircle/SecureObjectSync/SOSAccountFullPeerInfo.c
SOSCircle/SecureObjectSync/SOSAccountHSAJoin.c
SOSCircle/SecureObjectSync/SOSAccountLog.c
SOSCircle/SecureObjectSync/SOSAccountPeers.c
SOSCircle/SecureObjectSync/SOSAccountPersistence.c
SOSCircle/SecureObjectSync/SOSAccountRingUpdate.c
SOSCircle/SecureObjectSync/SOSAccountRings.c
SOSCircle/SecureObjectSync/SOSRingRecovery.c
SOSCircle/SecureObjectSync/SOSAccountTransaction.c
SOSCircle/SecureObjectSync/SOSAccountUpdate.c
SOSCircle/SecureObjectSync/SOSAccountViewSync.c
SOSCircle/SecureObjectSync/SOSBackupEvent.c
SOSCircle/SecureObjectSync/SOSBackupSliceKeyBag.c
SOSCircle/SecureObjectSync/SOSCircle.c
SOSCircle/SecureObjectSync/SOSCircleDer.c
SOSCircle/SecureObjectSync/SOSCircleV2.c
SOSCircle/CKBridge/SOSCloudKeychainConstants.c
SOSCircle/CKBridge/SOSCloudKeychainClient.c
SOSCircle/SecureObjectSync/SOSCoder.c
SOSCircle/SecureObjectSync/SOSDigestVector.c
SOSCircle/SecureObjectSync/SOSECWrapUnwrap.c
SOSCircle/SecureObjectSync/SOSFullPeerInfo.c
SOSCircle/SecureObjectSync/SOSGenCount.c
SOSCircle/SecureObjectSync/SOSInternal.c
SOSCircle/SecureObjectSync/SOSKVSKeys.c
SOSCircle/SecureObjectSync/SOSManifest.c
SOSCircle/SecureObjectSync/SOSMessage.c
SOSCircle/SecureObjectSync/SOSPeer.c
SOSCircle/SecureObjectSync/SOSPeerCoder.c
SOSCircle/SecureObjectSync/SOSPeerInfo.c
SOSCircle/SecureObjectSync/SOSPeerInfoCollections.c
SOSCircle/SecureObjectSync/SOSPeerInfoDER.c
SOSCircle/SecureObjectSync/SOSRecoveryKeyBag.c
SOSCircle/SecureObjectSync/SOSPeerInfoRingState.c
SOSCircle/SecureObjectSync/SOSPeerInfoSecurityProperties.c
SOSCircle/SecureObjectSync/SOSPeerInfoV2.c
SOSCircle/SecureObjectSync/SOSAccountGhost.c
SOSCircle/SecureObjectSync/SOSRingBackup.c
SOSCircle/SecureObjectSync/SOSAccountGetSet.c
SOSCircle/SecureObjectSync/SOSRingBasic.c
SOSCircle/SecureObjectSync/SOSRingConcordanceTrust.c
Security/SecRecoveryKey.m
SOSCircle/SecureObjectSync/SOSRingDER.c
SOSCircle/SecureObjectSync/SOSAccountRecovery.c
SOSCircle/SecureObjectSync/SOSRingPeerInfoUtils.c
SOSCircle/SecureObjectSync/SOSRingTypes.c
SOSCircle/SecureObjectSync/SOSRingUtils.c
SOSCircle/SecureObjectSync/SOSRingV0.c
SOSCircle/SecureObjectSync/SOSSysdiagnose.c
SOSCircle/SecureObjectSync/SOSTransport.c
SOSCircle/SecureObjectSync/SOSTransportBackupPeer.c
SOSCircle/SecureObjectSync/SOSTransportCircle.c
SOSCircle/SecureObjectSync/SOSTransportCircleKVS.c
SOSCircle/SecureObjectSync/SOSTransportKeyParameter.c
SOSCircle/SecureObjectSync/SOSTransportKeyParameterKVS.c
SOSCircle/SecureObjectSync/SOSTransportMessage.c
SOSCircle/SecureObjectSync/SOSTransportMessageIDS.c
SOSCircle/SecureObjectSync/SOSTransportMessageKVS.c
SOSCircle/SecureObjectSync/SOSUserKeygen.c
SOSCircle/SecureObjectSync/SOSViews.c
SOSCircle/Tool/secToolFileIO.c
SOSCircle/Tool/secViewDisplay.c
)
#make_fat(libSecureObjectSync)
add_library(liblogging OBJECT
Security/SecLogging.c
add_darling_static_library(logging FAT
SOURCES
Security/SecLogging.c
)
make_fat(liblogging)
add_definitions(
-DECITEM_SHIM_OSX=1
-DSECITEM_SHIM_OSX=1
)
add_darling_static_library(libSecItemShimOSX
Security/SecItemBackup.c
Security/SecKeyAdaptors.c
Security/SecCFAllocator.c
Security/SecItem.c
Security/SecRSAKey.c
Security/SecDH.c
Security/SecCTKKey.c
SOSCircle/SecureObjectSync/SOSCloudCircle.c
Security/SecAccessControl.c
Security/SecKey.c
Security/SecuritydXPC.c
Security/SecECKey.c
Security/SecItemConstants.c
Security/SecPasswordGenerate.c
add_darling_static_library(SecItemShimOSX FAT
SOURCES
Security/SecItemBackup.c
Security/SecKeyAdaptors.c
Security/SecCFAllocator.c
Security/SecItem.c
Security/SecRSAKey.c
Security/SecDH.c
Security/SecCTKKey.c
SOSCircle/SecureObjectSync/SOSCloudCircle.c
Security/SecAccessControl.c
Security/SecKey.c
Security/SecuritydXPC.c
Security/SecECKey.c
Security/SecItemConstants.c
Security/SecPasswordGenerate.c
)
#make_fat(libSecItemShimOSX)
add_darling_static_library(libSecTrustOSX
Security/SecCertificateRequest.c
Security/SecCertificate.c
Security/SecDigest.c
Security/SecBase64.c
Security/SecCertificatePath.c
Security/SecKey.c
Security/SecKeyAdaptors.c
Security/SecPolicy.c
Security/SecPolicyLeafCallbacks.c
Security/SecTrust.c
Security/SecTrustStore.c
Security/SecECKey.c
Security/SecRSAKey.c
Security/SecServerEncryptionSupport.c
../utilities/src/SecInternalRelease.c
Security/SecSignatureVerificationSupport.c
add_darling_static_library(SecTrustOSX FAT
SOURCES
Security/SecCertificateRequest.c
Security/SecCertificate.c
Security/SecDigest.c
Security/SecBase64.c
Security/SecCertificatePath.c
Security/SecKey.c
Security/SecKeyAdaptors.c
Security/SecPolicy.c
Security/SecPolicyLeafCallbacks.c
Security/SecTrust.c
Security/SecTrustStore.c
Security/SecECKey.c
Security/SecRSAKey.c
Security/SecServerEncryptionSupport.c
../utilities/src/SecInternalRelease.c
Security/SecSignatureVerificationSupport.c
)
#make_fat(libSecTrustOSX)
add_library(libsecipc_client OBJECT
ipc/client.c
add_darling_static_library(secipc_client FAT
SOURCES
ipc/client.c
)
make_fat(libsecipc_client)

View File

@ -2,40 +2,40 @@ add_compile_options(
-fobjc-arc
)
add_library(libutilities OBJECT
src/debugging.c
src/der_dictionary.c
src/iCloudKeychainTrace.c
src/SecCFWrappers.c
src/SecADWrapper.c
src/der_date.c
src/fileIo.c
src/SecFileLocations.c
src/SecDb.c
src/SecCoreCrypto.c
src/SecAppleAnchor.c
src/iOSforOSX-SecAttr.c
src/SecTrace.c
src/der_plist_internal.c
src/SecSCTUtils.c
src/der_number.c
src/iOSforOSX-SecRandom.c
src/SecCFError.c
src/der_plist.c
src/SecCertificateTrace.c
src/SecAKSWrappers.c
src/der_array.c
src/SecCFCCWrappers.c
src/NSURL+SOSPlistStore.m
src/der_string.c
src/der_boolean.c
src/der_data.c
src/der_null.c
src/der_set.c
src/simulate_crash.c
src/SecBuffer.c
src/SecXPCError.c
SecurityTool/not_on_this_platorm.c
SecurityTool/readline.c
add_darling_static_library(utilities FAT
SOURCES
src/debugging.c
src/der_dictionary.c
src/iCloudKeychainTrace.c
src/SecCFWrappers.c
src/SecADWrapper.c
src/der_date.c
src/fileIo.c
src/SecFileLocations.c
src/SecDb.c
src/SecCoreCrypto.c
src/SecAppleAnchor.c
src/iOSforOSX-SecAttr.c
src/SecTrace.c
src/der_plist_internal.c
src/SecSCTUtils.c
src/der_number.c
src/iOSforOSX-SecRandom.c
src/SecCFError.c
src/der_plist.c
src/SecCertificateTrace.c
src/SecAKSWrappers.c
src/der_array.c
src/SecCFCCWrappers.c
src/NSURL+SOSPlistStore.m
src/der_string.c
src/der_boolean.c
src/der_data.c
src/der_null.c
src/der_set.c
src/simulate_crash.c
src/SecBuffer.c
src/SecXPCError.c
SecurityTool/not_on_this_platorm.c
SecurityTool/readline.c
)
make_fat(libutilities)