84941bcc9f
* Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
45 lines
732 B
CMake
45 lines
732 B
CMake
project (Cuberite)
|
|
|
|
include_directories ("${PROJECT_SOURCE_DIR}/../")
|
|
|
|
set(SRCS
|
|
AesCfb128Decryptor.cpp
|
|
AesCfb128Encryptor.cpp
|
|
BlockingSslClientSocket.cpp
|
|
BufferedSslContext.cpp
|
|
CallbackSslContext.cpp
|
|
CtrDrbgContext.cpp
|
|
CryptoKey.cpp
|
|
EntropyContext.cpp
|
|
RsaPrivateKey.cpp
|
|
Sha1Checksum.cpp
|
|
SslConfig.cpp
|
|
SslContext.cpp
|
|
X509Cert.cpp
|
|
)
|
|
|
|
set(HDRS
|
|
AesCfb128Decryptor.h
|
|
AesCfb128Encryptor.h
|
|
BlockingSslClientSocket.h
|
|
BufferedSslContext.h
|
|
CallbackSslContext.h
|
|
CtrDrbgContext.h
|
|
CryptoKey.h
|
|
EntropyContext.h
|
|
ErrorCodes.h
|
|
RsaPrivateKey.h
|
|
SslConfig.h
|
|
SslContext.h
|
|
Sha1Checksum.h
|
|
X509Cert.h
|
|
)
|
|
|
|
if(NOT MSVC)
|
|
add_library(mbedTLS++ ${SRCS} ${HDRS})
|
|
|
|
if (UNIX)
|
|
target_link_libraries(mbedTLS++ mbedtls)
|
|
endif()
|
|
endif()
|