Merge pull request #3279 from dgarske/minor_fixes

Minor build fixes for typo and CMake
This commit is contained in:
John Safranek
2020-09-08 16:45:52 -07:00
committed by GitHub
2 changed files with 8 additions and 6 deletions

View File

@ -30,11 +30,13 @@ find_package (Threads)
#################################################### ####################################################
# Let CMake choose default compiler # Let CMake choose default compiler
# Silence ranlib warning "has no symbols" if(APPLE)
SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>") # Silence ranlib warning "has no symbols"
SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>") SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>") SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>") SET(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
SET(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
endif()
#################################################### ####################################################
# Cross Compile Example # Cross Compile Example

View File

@ -26189,7 +26189,7 @@ long wolfSSL_CTX_add_extra_chain_cert(WOLFSSL_CTX* ctx, WOLFSSL_X509* x509)
idx = ctx->certChain->length; idx = ctx->certChain->length;
} }
c32to24(derSz, chain + idx); c32to24(derSz, chain + idx);
idx += OPAQUE24_LEN, idx += OPAQUE24_LEN;
XMEMCPY(chain + idx, der, derSz); XMEMCPY(chain + idx, der, derSz);
idx += derSz; idx += derSz;
#ifdef WOLFSSL_TLS13 #ifdef WOLFSSL_TLS13