[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sm_free3.cpp patch for RSA verify



The patch shown below enables the sm_free3 CTIL to perform verification of
RSA signatures when the user has a DSA private key.  This fix had already
been applied in one of three places where it is needed.  It would be nice if
this fix is included in the next SFL release.

John Stark
Tel: +44 1223 566732
Mobile: +44 7968 110628
E-mail: jas@xxxxxxxxxxxx
Web: http://www.metanate.com


*** sm_free3.cpp        9 Mar 2004 13:33:37 -0000       1.1
--- sm_free3.cpp        18 Mar 2004 18:07:40 -0000      1.2
***************
*** 4852,4857 ****
--- 4852,4860 ----
              // generate a new FREE CTI class
              if ((pFree = new CSM_Free3(id_dsa)) == NULL)
                 SME_THROW(SM_MEMORY_ERROR, NULL, NULL);
+             // JAS: added this.
+             pFree->SetDefaultOIDs(rsa);   // Add RSA, DSA already present.
+
              // CSM_Free3 constructor set's Alg IDsa
              pFree->SetCSInst(pNewInstance);
                             // SINCE we generated a CSM_CSInst, not a
CSM_CtilInst.
***************
*** 6165,6170 ****
--- 6168,6176 ----
        if ((pFree = new CSM_Free3(id_dsa)) == NULL)    // DEFAULT DSA
           SME_THROW(SM_MEMORY_ERROR, "AddLoginStatic: bad new CSM_Free3.",
NULL
);
           // CSM_Free3 constructor set's Alg IDs
+
+       // JAS: added this.
+       pFree->SetDefaultOIDs(rsa);   // Add RSA, DSA already present.
     }

     //RWC;DISABLED; LOGIC FIXED TO ALLOW RE-ENTRANCY;