Commit 16adf2b3 authored by jan.koester's avatar jan.koester
Browse files

needs testing

parent 700152be
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for bindings/CMakeLists.txt: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
if(CMAKE_COMPILER_IS_GNUCC)

set(NODE_MODULE_MINIMUM_ABI 83)

include("${CMAKE_SOURCE_DIR}/cmake/nodejs.cmake")
@@ -15,3 +17,5 @@ target_include_directories(
target_compile_options(authdb-nds INTERFACE -z,defs)

target_link_libraries(authdb-nds INTERFACE client)

endif()
+1 −1
Changes for client/client.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -384,7 +384,7 @@ void authdb::client::Client::getAvatar(const uuid &did,const uuid& uid,libhttppp

    resp.setState(HTTP200);
    resp.setContentType("image/jpeg");
    resp.send(&resq,avatar.data(),avatar.size());
    resp.send(resq,avatar,avatar.size());
}

bool authdb::client::Client::GPOcheck(class uuid gpoid){
+139 −132

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Changes for src/admin.h: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -37,9 +37,9 @@ namespace authdb {

    class AdminInterface{
    public:
        AdminInterface(AuthBackend &bck,netplus::socket *ssock);
        AdminInterface(AuthBackend &bck,netplus::socket &ssock);
        ~AdminInterface();
        void Request(libhttppp::HttpRequest *curreq, const int tid, ULONG_PTR args);
        void Request(libhttppp::HttpRequest &curreq, const int tid, ULONG_PTR args);
    public:
        AdminController                            * _ctl;
        AuthBackend                                 &_bck;
+4 −4
Changes for src/api.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ namespace authdb {
            }
        }

        Api(AuthBackend &admin,class uuid did, libhttppp::HttpRequest* curreq, const int tid, ULONG_PTR args) : _Backend(admin), _Did(did){
        Api(AuthBackend &admin,class uuid did, libhttppp::HttpRequest& curreq, const int tid, ULONG_PTR args) : _Backend(admin), _Did(did){
            _SessionData=nullptr;

            libhttppp::HttpResponse rep;
@@ -582,8 +582,8 @@ namespace authdb {

            std::vector<char> recv;

            if(curreq->getContentLength() <=curreq->RecvData.size())
                std::copy(curreq->RecvData.begin(),curreq->RecvData.begin()+curreq->getContentLength(),
            if(curreq.getContentLength() <=curreq.RecvData.size())
                std::copy(curreq.RecvData.begin(),curreq.RecvData.begin()+curreq.getContentLength(),
                          std::back_inserter(recv));
            else
                throw AuthBackendError("get no data input!");
@@ -650,7 +650,7 @@ namespace authdb {
    };
};

authdb::ApiController::ApiController(AuthBackend &admin,class uuid did,libhttppp::HttpRequest * curreq, const int tid, ULONG_PTR args){
authdb::ApiController::ApiController(AuthBackend &admin,class uuid did,libhttppp::HttpRequest &curreq, const int tid, ULONG_PTR args){
    Api(admin,did,curreq,tid,args);
}

Loading