Changeset 2457 for source


Ignore:
Timestamp:
Feb 18, 2009, 2:42:03 PM (15 years ago)
Author:
mies
Message:

fixed: sha1 bug again
removed: debug output

Location:
source/ariba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/EndpointDescriptor.cpp

    r2454 r2457  
    9292                                string ip = nav[i][robject_data].str();
    9393                                ip = ip.substr(1,ip.size()-2);
    94                                 cout << "ep-ip = " << ip << endl;
    9594                                ep = new EndpointDescriptor();
    9695                                ep->locator = new IPv4Locator();
    97                                 cout << "1" << endl;
    9896                                ep->locator->setIP(ip);
    99                                 cout << "2" << endl;
    10097                                ep->isUnspec = false;
    101                                 cout << "3" << endl;
    10298                        } else
    10399                        if (type=="tcp") {
    104                                 cout << "4" << endl;
    105100                                string port = nav[i][robject_data][rfields][1].str();
    106101                                port = port.substr(1,port.size()-2);
    107                                 cout << "ep-tcp-port = " << port << endl;
    108                                 cout << "5" << endl;
    109102                                ep->locator->setPort(stoi(port));
    110103                        }
  • source/ariba/utility/types/Identifier.cpp

    r2456 r2457  
    638638Identifier Identifier::sha1(const uint8_t* value, size_t length ) {
    639639        Identifier newKey;
    640         uint8_t temp[20];
     640        uint8_t temp[40];
     641        for (int i=0; i<40; i++) temp[i] = 0;
    641642
    642643        CSHA1 sha;
Note: See TracChangeset for help on using the changeset viewer.