Fix problem on Mac. (Use mbedtls@3)

This commit is contained in:
yhirose
2026-01-13 00:24:29 -05:00
parent f2fd514848
commit 1e7d2d1c48
2 changed files with 2 additions and 8 deletions

View File

@@ -118,13 +118,7 @@ jobs:
uses: actions/checkout@v4
- name: install Mbed TLS
if: matrix.tls_backend == 'mbedtls'
run: brew install mbedtls
- name: Show Homebrew mbedtls prefix
if: matrix.tls_backend == 'mbedtls'
run: |
echo "mbedtls is installed in: $(brew --prefix mbedtls)"
ls "$(brew --prefix mbedtls)/include"
ls "$(brew --prefix mbedtls)/include/mbedtls"
run: brew install mbedtls@3
- name: build and run tests (OpenSSL)
if: matrix.tls_backend == 'openssl'
run: cd test && make

View File

@@ -8,7 +8,7 @@ ifneq ($(OS), Windows_NT)
OPENSSL_DIR = $(PREFIX)/opt/openssl@3
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
OPENSSL_SUPPORT += -DCPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN -framework Security
MBEDTLS_DIR ?= $(shell brew --prefix mbedtls)
MBEDTLS_DIR ?= $(shell brew --prefix mbedtls@3)
MBEDTLS_SUPPORT = -DCPPHTTPLIB_MBEDTLS_SUPPORT -I$(MBEDTLS_DIR)/include -L$(MBEDTLS_DIR)/lib -lmbedtls -lmbedx509 -lmbedcrypto
MBEDTLS_SUPPORT += -DCPPHTTPLIB_USE_CERTS_FROM_MACOSX_KEYCHAIN -framework Security
else