mirror of
https://github.com/drogonframework/drogon.git
synced 2025-08-10 00:01:14 -04:00
file uploading
This commit is contained in:
parent
10a6d39a32
commit
6c7512bdf4
@ -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)
|
||||
|
@ -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})
|
||||
|
@ -12,7 +12,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma
|
||||
#pragma once
|
||||
|
||||
#include "HttpRequest.h"
|
||||
#include <string>
|
||||
|
@ -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] == '\'')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user