[Pcsclite-cvs-commit] r423 - trunk/PKCS11/src

Ludovic Rousseau rousseau at costa.debian.org
Tue Aug 1 07:18:14 UTC 2006


Author: rousseau
Date: 2006-08-01 07:18:13 +0000 (Tue, 01 Aug 2006)
New Revision: 423

Modified:
   trunk/PKCS11/src/p11x_slot.c
Log:
slot_UpdateMechanisms(): When MSC_CAPABLE_RSA_NOPAD is set, the flags
get clobbered instead of added-to.

Thanks to Iain MacDonnel for the patch


Modified: trunk/PKCS11/src/p11x_slot.c
===================================================================
--- trunk/PKCS11/src/p11x_slot.c	2006-05-15 09:49:22 UTC (rev 422)
+++ trunk/PKCS11/src/p11x_slot.c	2006-08-01 07:18:13 UTC (rev 423)
@@ -469,7 +469,8 @@
                                        CKF_VERIFY_RECOVER;
                     
                     if (temp_cap & MSC_CAPABLE_RSA_NOPAD)
-                         mech->info.flags =  CKF_WRAP |                                                                                CKF_UNWRAP;
+                         mech->info.flags |=  CKF_WRAP |
+                                              CKF_UNWRAP;
                 }
             }
         }




More information about the Pcsclite-cvs-commit mailing list