blautenb    2003/05/22 04:25:26

  Modified:    c/src/tools/xtest xtest.cpp
  Log:
  Fixed some things that worked under VC++ but not Linux Intel compiler
  
  Revision  Changes    Path
  1.9       +4 -4      xml-security/c/src/tools/xtest/xtest.cpp
  
  Index: xtest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-security/c/src/tools/xtest/xtest.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- xtest.cpp 22 May 2003 11:16:56 -0000      1.8
  +++ xtest.cpp 22 May 2003 11:25:26 -0000      1.9
  @@ -199,7 +199,7 @@
   XSECCryptoKeyHMAC * createHMACKey(const unsigned char * str) {
   
        // Create the HMAC key
  -     static first = true;
  +     static bool first = true;
   
   #if defined (HAVE_OPENSSL)
        OpenSSLCryptoKeyHMAC * hmacKey = new OpenSSLCryptoKeyHMAC();
  @@ -490,7 +490,7 @@
                len = formatTarget->getLen();
                char * mbuf = new char [len + 1];
                memcpy(mbuf, formatTarget->getRawBuffer(), len);
  -             buf[len] = '\0';
  +             mbuf[len] = '\0';
   
                delete theSerializer;
                delete formatTarget;
  @@ -549,7 +549,7 @@
                int nki = kil->getSize();
   
                cerr << "Checking Distinguished name is decoded correctly ... ";
  -             for (i = 0; i < nki; ++i) {
  +             for (int i = 0; i < nki; ++i) {
   
                        if (kil->item(i)->getKeyInfoType() == 
DSIGKeyInfo::KEYINFO_X509) {
   
  
  
  

Reply via email to