file uploading

This commit is contained in:
an-tao 2018-06-11 15:45:28 +08:00
parent 10a6d39a32
commit 6c7512bdf4
4 changed files with 10 additions and 4 deletions

View File

@ -30,6 +30,12 @@ include_directories(${JSONCPP_INCLUDE_DIRS})
link_directories(${JSONCPP_LIBRARY_DIRS})
find_package (UUID REQUIRED)
find_package (OpenSSL REQUIRED)
message(STATUS "openssl inc path:" ${OPENSSL_INCLUDE_DIR})
include_directories(${OPENSSL_INCLUDE_DIR})
link_directories(${OPENSSL_SSL_LIBRARY})
link_directories(${OPENSSL_CRYPTO_LIBRARY})
find_package(Boost)
if(Boost_FOUND)
add_definitions(-DUSE_BOOST)

View File

@ -1,4 +1,4 @@
link_libraries(drogon trantor uuid pthread jsoncpp)
link_libraries(drogon trantor uuid pthread jsoncpp ssl crypto)
FILE(GLOB SCP_LIST ${CMAKE_CURRENT_SOURCE_DIR}/static_link_example/*.csp)
foreach(cspFile ${SCP_LIST})

View File

@ -12,7 +12,7 @@
*
*/
#pragma
#pragma once
#include "HttpRequest.h"
#include <string>

View File

@ -22,7 +22,7 @@ bool isInteger(const std::string &str)
}
std::string genRandomString(int length)
{
int flag, i;
int i;
char str[length + 1];
timespec tp;
@ -95,7 +95,7 @@ std::string getuuid()
std::string stringPreProcess(const std::string& str)
{
std::string ret;
for(int i = 0; i < str.length(); i++)
for(std::string::size_type i = 0; i < str.length(); i++)
{
if(str[i] == '\'')
{