From: Todd O. <to...@us...> - 2014-02-04 18:52:05
|
Update of /cvsroot/yassl/yassl/taocrypt/include In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv11410/taocrypt/include Modified Files: asn.hpp pwdbased.hpp Log Message: fix date size null terminator off by one Index: asn.hpp =================================================================== RCS file: /cvsroot/yassl/yassl/taocrypt/include/asn.hpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** asn.hpp 3 Oct 2012 18:15:32 -0000 1.12 --- asn.hpp 4 Feb 2014 18:52:02 -0000 1.13 *************** *** 306,312 **** char issuer_[ASN_NAME_MAX]; // Names char subject_[ASN_NAME_MAX]; // Names ! char beforeDate_[MAX_DATE_SZ]; // valid before date ! char afterDate_[MAX_DATE_SZ]; // valid after date ! bool verify_; // Default to yes, but could be off void ReadHeader(); --- 306,312 ---- char issuer_[ASN_NAME_MAX]; // Names char subject_[ASN_NAME_MAX]; // Names ! char beforeDate_[MAX_DATE_SZ+1]; // valid before date, +null term ! char afterDate_[MAX_DATE_SZ+1]; // valid after date, +null term ! bool verify_; // Default to yes, but could be off void ReadHeader(); Index: pwdbased.hpp =================================================================== RCS file: /cvsroot/yassl/yassl/taocrypt/include/pwdbased.hpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pwdbased.hpp 26 Jan 2010 22:46:02 -0000 1.5 --- pwdbased.hpp 4 Feb 2014 18:52:02 -0000 1.6 *************** *** 60,66 **** return 0; - if (iterations < 0) - return 0; - ByteBlock buffer(T::DIGEST_SIZE); HMAC<T> hmac; --- 60,63 ---- |