Changeset 408

Show
Ignore:
Timestamp:
03/23/06 16:45:48 (3 years ago)
Author:
common
Message:

x-7 dnsresolve-adns submit-norman download-curl nepenthes/UploadHandler nepenthes/DownloadHandler
- avoid direct casts to be able to compile on g++ 4.1
- x-7 dns decoding logic commented, to buggy, and actually pretty useless
testsystem was fedora core 5

Compiled on Linux/x86 at Mar 23 2006 15:17:53 with g++ 4.1.0 20060304 (Red Hat 4.1.0-3)
Started on ferkeldora running Linux/i686 release 2.6.15-1.2054_FC5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/dnsresolve-adns/dnsresolve-adns.cpp

    r341 r408  
    162162{ 
    163163        adns_query q, r; 
     164        void *vr; 
     165         
    164166        adns_answer *answer; 
    165167        DNSQuery *query; 
     168         
    166169        ADNSContext *ctx; 
     170        void *vctx; 
    167171 
    168172        logSpam("%i DNS Resolves in Queue\n", m_Queue); 
    169173 
    170174        adns_forallqueries_begin(m_aDNSState); 
    171         while ( (q = adns_forallqueries_next(m_aDNSState, (void **)&r)) != NULL ) 
    172         { 
    173  
    174                 switch ( adns_check(m_aDNSState, &q, &answer, (void **)&ctx) ) 
     175        while ( (q = adns_forallqueries_next(m_aDNSState, (void **)&vr)) != NULL ) 
     176        { 
     177                r = (adns_query)vr; 
     178                 
     179                int adns_ret = adns_check(m_aDNSState, &q, &answer, (void **)&vctx); 
     180                ctx = (ADNSContext *)vctx; 
     181                 
     182                switch ( adns_ret ) 
    175183                { 
    176184                case 0: 
  • nepenthes/trunk/modules/download-curl/download-curl.cpp

    r341 r408  
    148148                        { 
    149149                                Download *pDown; 
     150                                char *cDown; 
    150151                                char * szUrl; 
    151152 
    152                 curl_easy_getinfo(pMessage->easy_handle, CURLINFO_PRIVATE, (char * *) &pDown); 
     153                curl_easy_getinfo(pMessage->easy_handle, CURLINFO_PRIVATE, (char * *) &cDown); 
     154                pDown = (Download *)cDown; 
    153155                                if ( pMessage->data.result ) 
    154156                                { 
  • nepenthes/trunk/modules/submit-norman/submit-norman.cpp

    r341 r408  
    226226                        { 
    227227                                NormanContext *norm; 
     228                                char *cnorm; 
    228229                                char * szUrl; 
    229230 
    230                 curl_easy_getinfo(pMessage->easy_handle, CURLINFO_PRIVATE, (char * *) &norm); 
     231                curl_easy_getinfo(pMessage->easy_handle, CURLINFO_PRIVATE, (char * *) &cnorm); 
     232                norm = (NormanContext *)cnorm; 
     233                 
    231234                                if ( pMessage->data.result ) 
    232235                                { 
  • nepenthes/trunk/modules/x-7/x-7.cpp

    r332 r408  
    176176ConsumeLevel X7Dialogue::incomingData(Message *msg) 
    177177{ 
    178       if(!(msg->getSocket()->getType() & ST_RAW_UDP)) 
     178/*    if(!(msg->getSocket()->getType() & ST_RAW_UDP)) 
    179179        { 
    180180                logCrit("GOT NON UDP Packet %i \n",msg->getSize()); 
     
    265265 
    266266        } 
    267 /* 
     267 
    268268        int32_t j=0; 
    269269        for (int32_t i=0;i<dns->number_questions;i++) 
  • nepenthes/trunk/nepenthes-core/include/DownloadHandler.hpp

    r332 r408  
    6565                } 
    6666 
    67                 virtual string DownloadHandler::getDownloadHandlerDescription() 
     67                virtual string getDownloadHandlerDescription() 
    6868                { 
    6969                        return m_DownloadHandlerDescription; 
  • nepenthes/trunk/nepenthes-core/include/UploadHandler.hpp

    r332 r408  
    5858                } 
    5959 
    60                 virtual string UploadHandler::getUploadHandlerDescription() 
     60                virtual string getUploadHandlerDescription() 
    6161                { 
    6262                        return m_UploadHandlerDescription;