build(clients): link Sha256, Hmac and SecureRandom into libai; drop the crypto_link shim
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,10 @@ GOOGLE_LIB ?= $(ROOT)/build/google/libgoogle.a
|
||||
# Recursive: every vendor module builds without editing this file.
|
||||
AI_SRCS := $(sort $(shell find $(ROOT)/src/llm $(ROOT)/src/xai $(ROOT)/src/anthropic \
|
||||
$(ROOT)/src/meta $(ROOT)/src/deepseek $(ROOT)/src/openai $(ROOT)/src/openrouter -name "*.cpp")) \
|
||||
$(ROOT)/src/security/crypto/Base64.cpp
|
||||
$(ROOT)/src/security/crypto/Base64.cpp \
|
||||
$(ROOT)/src/security/crypto/Sha256.cpp \
|
||||
$(ROOT)/src/security/crypto/Hmac.cpp \
|
||||
$(ROOT)/src/security/crypto/SecureRandom.cpp
|
||||
AI_TEST_SRCS := $(sort $(shell find $(ROOT)/tests/src/llm $(ROOT)/tests/src/xai \
|
||||
$(ROOT)/tests/src/anthropic $(ROOT)/tests/src/meta \
|
||||
$(ROOT)/tests/src/deepseek $(ROOT)/tests/src/openai $(ROOT)/tests/src/openrouter -name "*.cpp"))
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
// Link shim. src/ai.mk (shared, not editable from this package) compiles only
|
||||
// src/security/crypto/Base64.cpp into libai, but WebhookVerifier uses
|
||||
// security::crypto::Hmac (and SecureRandom::constant_time_equal), which need
|
||||
// Sha256.cpp, Hmac.cpp and SecureRandom.cpp. They are compiled here until the
|
||||
// integration step adds those three files to AI_SRCS in src/ai.mk; then delete
|
||||
// this file (keeping both would be a duplicate symbol error at link time).
|
||||
#include "security/crypto/Sha256.cpp"
|
||||
#include "security/crypto/Hmac.cpp"
|
||||
#include "security/crypto/SecureRandom.cpp"
|
||||
Reference in New Issue
Block a user