Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions demo/quic_mqtt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ endif (BUILD_DEMO)

find_package(Threads)
find_package(msquic)
find_package(OpenSSL)

if (DEBUG)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
Expand All @@ -33,11 +32,6 @@ endif (DEBUG)

add_executable(quic_client quic_client.c)

if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIRS})
target_link_libraries(quic_client OpenSSL::Crypto OpenSSL::SSL)
endif()

target_link_libraries(quic_client nng msquic pthread)
target_compile_definitions(quic_client PRIVATE NNG_ELIDE_DEPRECATED)

Expand Down
6 changes: 0 additions & 6 deletions demo/quic_mqttv5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ endif (BUILD_DEMO)

find_package(Threads)
find_package(msquic)
find_package(OpenSSL)

if (DEBUG)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
Expand All @@ -33,11 +32,6 @@ endif (DEBUG)

add_executable(quic_client_v5 quic_client_v5.c)

if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIRS})
target_link_libraries(quic_client_v5 OpenSSL::Crypto OpenSSL::SSL)
endif()

target_link_libraries(quic_client_v5 nng msquic pthread)
target_compile_definitions(quic_client_v5 PRIVATE NNG_ELIDE_DEPRECATED)

Expand Down
2 changes: 1 addition & 1 deletion src/supplemental/mqtt/mqtt_qos_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ nni_mqtt_sqlite_db_init(
&sqlite->offline_cache, sqlite->flush_mem_threshold);
sqlite->db_name = nni_strdup(db_name);
nni_mqtt_qos_db_init(
&sqlite->db, sqlite->mounted_file_path, db_name);
(sqlite3 **)&sqlite->db, sqlite->mounted_file_path, db_name);

if (proto_ver == 0 ||
(proto_ver != MQTT_PROTOCOL_VERSION_v311 &&
Expand Down
4 changes: 2 additions & 2 deletions src/supplemental/quic/quic_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ verify_peer_cert_tls(QUIC_CERTIFICATE* cert, QUIC_CERTIFICATE* chain, char *cace
X509_STORE_CTX_free(ctx);

if (res <= 0) {
log_error("X509 verify error: %d: %s", res, X509_verify_cert_error_string(ctx));
log_error("X509 verify error: %d: %s", res, X509_verify_cert_error_string(res));
return QUIC_STATUS_BAD_CERTIFICATE;
} else
return QUIC_STATUS_SUCCESS;
Expand Down Expand Up @@ -283,7 +283,7 @@ quic_load_sdk_config(BOOLEAN Unsecure)
QUIC_CREDENTIAL_TYPE_CERTIFICATE_FILE_PROTECTED;
} else {
QUIC_CERTIFICATE_FILE *CertFile =
(QUIC_CERTIFICATE_FILE_PROTECTED *) malloc(sizeof(QUIC_CERTIFICATE_FILE_PROTECTED));
(QUIC_CERTIFICATE_FILE*) malloc(sizeof(QUIC_CERTIFICATE_FILE_PROTECTED));
CertFile->CertificateFile = cert_path;
CertFile->PrivateKeyFile = key_path;
CredConfig.CertificateFile = CertFile;
Expand Down
Loading