mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixes for building with linux
This commit is contained in:
parent
e07e437fb9
commit
498a3a12e2
@ -135,7 +135,8 @@ bool KeyPair::savePrivKey(int userId)
|
|||||||
{
|
{
|
||||||
auto cm = ConnectionManager::getInstance();
|
auto cm = ConnectionManager::getInstance();
|
||||||
auto em = ErrorManager::getInstance();
|
auto em = ErrorManager::getInstance();
|
||||||
Poco::Data::Statement update(cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER));
|
auto mysql_session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
|
||||||
|
Poco::Data::Statement update(mysql_session);
|
||||||
Poco::Data::BLOB privkey_blob((const unsigned char*)(*mPrivateKey), mPrivateKey->size());
|
Poco::Data::BLOB privkey_blob((const unsigned char*)(*mPrivateKey), mPrivateKey->size());
|
||||||
|
|
||||||
update << "UPDATE users set privkey = ? where id = ?",
|
update << "UPDATE users set privkey = ? where id = ?",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef GRADIDO_LOGIN_SERVER_CRYPTO_OBFUS_ARRAY
|
#ifndef GRADIDO_LOGIN_SERVER_CRYPTO_OBFUS_ARRAY
|
||||||
#define GRADIDO_LOGIN_SERVER_CRYPTO_OBFUS_ARRAY
|
#define GRADIDO_LOGIN_SERVER_CRYPTO_OBFUS_ARRAY
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
class ObfusArray
|
class ObfusArray
|
||||||
{
|
{
|
||||||
|
|||||||
@ -63,7 +63,7 @@ namespace ServerConfig {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (realBinSize != crypto_shorthash_KEYBYTES) {
|
if (realBinSize != crypto_shorthash_KEYBYTES) {
|
||||||
printf("[%s] serverKey hasn't valid size, expecting: %d, get: %d\n",
|
printf("[%s] serverKey hasn't valid size, expecting: %u, get: %lu\n",
|
||||||
__FUNCTION__, crypto_shorthash_KEYBYTES, realBinSize);
|
__FUNCTION__, crypto_shorthash_KEYBYTES, realBinSize);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -96,8 +96,9 @@ namespace ServerConfig {
|
|||||||
int options = OPT_DEFAULTS,
|
int options = OPT_DEFAULTS,
|
||||||
const std::string& certificateStoreName = CERT_STORE_MY);
|
const std::string& certificateStoreName = CERT_STORE_MY);
|
||||||
*/
|
*/
|
||||||
|
g_SSL_CLient_Context = new Context(Context::CLIENT_USE, "", "", "", Context::VERIFY_RELAXED, 9, true, "ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH");
|
||||||
g_SSL_CLient_Context = new Context(Context::CLIENT_USE, "", Context::VERIFY_RELAXED, Context::OPT_DEFAULTS);
|
// another poco version?
|
||||||
|
//g_SSL_CLient_Context = new Context(Context::CLIENT_USE, "", Context::VERIFY_RELAXED, Context::OPT_DEFAULTS);
|
||||||
SSLManager::instance().initializeClient(0, pCert, g_SSL_CLient_Context);
|
SSLManager::instance().initializeClient(0, pCert, g_SSL_CLient_Context);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include "Poco/Data/MySQL/Connector.h"
|
#include "Poco/Data/MySQL/Connector.h"
|
||||||
#include "Poco/Exception.h"
|
#include "Poco/Exception.h"
|
||||||
|
|
||||||
#include "../Model/ErrorList.h"
|
#include "../model/ErrorList.h"
|
||||||
|
|
||||||
enum ConnectionType {
|
enum ConnectionType {
|
||||||
CONNECTION_MYSQL_LOGIN_SERVER,
|
CONNECTION_MYSQL_LOGIN_SERVER,
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include "../Model/Error.h"
|
#include "../model/Error.h"
|
||||||
#include "../Crypto/DRHash.h"
|
#include "../Crypto/DRHash.h"
|
||||||
#include "../tasks/CPUTask.h"
|
#include "../tasks/CPUTask.h"
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
#define DR_LUA_WEB_MODULE_SESSION_MANAGER_H
|
#define DR_LUA_WEB_MODULE_SESSION_MANAGER_H
|
||||||
|
|
||||||
|
|
||||||
#include "../Model/Session.h"
|
#include "../model/Session.h"
|
||||||
|
|
||||||
#include "Poco/RegularExpression.h"
|
#include "Poco/RegularExpression.h"
|
||||||
|
|
||||||
|
|||||||
@ -130,4 +130,4 @@ namespace UniLib {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif __DR_UNIVERSUM_LIB_CONTROLLER_TASK_H__
|
#endif //__DR_UNIVERSUM_LIB_CONTROLLER_TASK_H__
|
||||||
Loading…
x
Reference in New Issue
Block a user