mirror of
https://github.com/drogonframework/drogon.git
synced 2025-09-18 00:01:01 -04:00
Handle the details of the OpenSSL library
This commit is contained in:
parent
c9b3dcd9c2
commit
30ab9e09b1
@ -47,6 +47,8 @@ if(OpenSSL_FOUND)
|
||||
#add_definitions(-DUSE_OPENSSL)
|
||||
set(DR_DEFS "USE_OPENSSL;${DR_DEFS}")
|
||||
include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
else()
|
||||
aux_source_directory(${PROJECT_SOURCE_DIR}/lib/src/ssl_funcs DIR_SRCS)
|
||||
endif()
|
||||
message(STATUS "openssl inc path:" ${OPENSSL_INCLUDE_DIR})
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
@ -3,7 +3,7 @@
|
||||
#ifdef USE_OPENSSL
|
||||
#include <openssl/md5.h>
|
||||
#else
|
||||
#include "Md5.h"
|
||||
#include "ssl_funcs/Md5.h"
|
||||
#endif
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
@ -151,4 +151,4 @@ const std::string HttpFile::getMd5() const
|
||||
Md5Encode encode;
|
||||
return encode.Encode(fileContent_);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
#ifdef USE_OPENSSL
|
||||
#include <openssl/sha.h>
|
||||
#else
|
||||
#include "Sha1.h"
|
||||
#include "ssl_funcs/Sha1.h"
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -1,7 +1,8 @@
|
||||
#include <drogon/config.h>
|
||||
#ifdef USE_OPENSSL
|
||||
#include <openssl/sha.h>
|
||||
#else
|
||||
#include "../lib/src/Sha1.h"
|
||||
#include "../lib/src/ssl_funcs/Sha1.h"
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user