xref: /netbsd-src/crypto/external/cpl/trousers/dist/ChangeLog (revision 6cf6fe02a981b55727c49c3d37b0d8191a98c0ee)
1* TROUSERS_0_3_8
2
3- Fix ssl_ui.c overflow
4- Handling of TPM_CERTIFY_INFO2 structure special case
5- Fix possible obfuscation of obj_migdata.c errors.
6- Make 1.2 keys respect the TPM_PCRIGNOREDONREAD flag.
7- PCRInfo member allocation in Trspi_Unload_CERTIFY_INFO.
8- Add functions for deserializing NVRAM related data structures
9- Add NVRAM specific error messages
10- Fix spec file so one can build an rpm
11- Initialize the tcsd_config_file with NULL.
12- support for -c <configfile> command line option
13- Establish a .gitignore file
14- ENDIAN_H and htole definition fix
15
16* TROUSERS_0_3_7
17
18- __tspi_freeTable wrong call
19- Owner Evict pubkey setup fix
20- The "HAVE_ENDIAN_H" check is missing from configure.in, but it appears to be needed in a couple of the source files.
21- tspi_context.c fix (memleak)
22- Added the missing setup of a tcs handle for owner evict keys.
23- No need to initialize the flock structure.
24- flock to fcntl change
25- Fixed cleanup code in svrside.c
26- Avoid warning of missing return in tcsd_thread_run()
27- printf() warning fix
28- Moved hDAA debug message after initialization
29- Additional length check
30- Tspi_NV_DefineSpace secret check fix
31
32* TROUNSERS_0_3_6
33
34- Fixed a number of warnings during a build with --debug regarding THREAD ID
35  definition
36- Removed htole() dependency, which was included only in glibc 2.9
37
38* TROUSERS_0_3_5
39
40- Allowed TCD Daemon to run with reduced privileges In Solaris.
41- Fixing previous kfreebsd build patch conflict with the current tree.
42- TCSD error handling improvements.
43- mutex init inclusion.
44- pthread_t portability fix
45- Owner Evict keys load fix.
46- Big- endian issues.
47- Memory leak fix.
48- Adding missing #include <limits.h>.
49- kfreebsd build fixes.
50- Fixed usage of syslog().
51- 64bits clean
52- Fixes the TCP UN and IN socket connection attempt handling
53- Fixes logic on opening a hardware TPM.
54- Added communication through TCP to software TPMs in TrouSerS.
55- Fixed conflicting defines
56- Adds missing free()
57- Fixed fread() return value check.
58- Made the previous fix cleaner and more robust.
59- Added missing check in order to avoid freeing buffer that's out of Tspi_Data_Seal() scope.
60- Fixed Tspi_TPM_GetRandom 4kb output limit.
61
62* TROUSERS_0_3_4
63
64- Fixed TrouSerS mishandling of TPM auth sessions
65- Enabled hosttable.c "_init" and "_fini" functions to work on Solaris
66- Included Solaris in BSD_CONST definition conditional
67- Made the init script LSB compliant
68- make distcheck improved
69
70* TROUSERS_0_3_3_2
71
72- Fixed logic when filling up RSA keys objects.
73
74* TROUSERS_0_3_3_1
75
76- TCSD now runs as tss and has a better signal handling
77- Fixed many memory handling issues
78
79* TROUSERS_0_3_3
80
81- Tspi_ChangeAuth fixed for popup secret use case.
82- Prefixed exported functions with common names.
83- Fixed issues  with accessing the utmp database.
84- Migrated the bios parser file handler from open to fopen.
85
86* TROUSERS_0_3_2
87
88- Added IMA log parser in conformance with format introduced in linux kernel 2.6.30
89- Fixed memory handling issues in src/tspi/tspi_quote2.c and tspi_tick.c
90- Fixed memory handling issues in tcs/rpc/tcstp/rpc_tick.c
91- Fixed logic when releasing auth handles, now the TPM won't become out of
92resources due too many unreleased auth handles there.
93- Fixed compilation problems when building trousers in Fedora with
94-fstack-protector & gcc 4.4
95- Fixed the legacy usage of a deprecated 1.1 TPM command, now auth sessions
96can be closed fine.
97- Fixed key memory cache when evicting keys, invalid key handles were evicted
98when shouldn't.
99- Fixed authsess_xsap_init call with wrong handle
100- Fixed authsess_callback_hmac return code
101- Fixed validateReturnAuth return value
102- Added consistency to avoid multiple double free() and bound checks to avoid
103SEGV
104- Moved from flock to fcntl since the first isn't supported in multi-thread
105applications
106- Added necessary free() and consistency necessary in tspi/tsp_delegate.c to avoid SEGV
107- Typecast added in trousers.c in the UNICODE conversion functions
108- Fixed wrong return code in Tspi_NV_ReleaseSpace
109- Fixed digest computation in Tspi_NV_ReleaseSpace
110- Fixed tpm_rsp_parse, it previously checked for an additional TPM_AUTH blob,
111resulting in a incorrect data blog unload.
112- Added new OpenSSL UI for TSS_SECRET_MODE_POPUP auth mode.
113- Added workaround to fix namespace conflict with SELINUX
114- Set SO_REUSEADDR socket option.
115- Added TSS_SS_RSASSAPKCS1v15_INFO signature scheme definitions and support
116- TDDL can now be compiled apart from the rest of TrouSerS.
117- Added #include <limits.h> to remove INT_MAX undeclared error
118  during build. Files updated: trspi/crypto/openssl/symmetric.c,
119  tspi/tspi_aik.c and tspi/tsp_ps.c
120- Added bounds checking in the data parsing routines of the TCSD's
121tcstp RPC code, preventing attacks from malicious clients.
122- Removed commented out code in src/tcs/rpc/tcstp/rpc.c
123- Commented out old OSAP code, its now unused
124- Fixed bug in tcsi_bind.c, one too few params were passed to
125the function parsing the TPM blob.
126- Fixed lots of erroneous TSPERR and TCSERR calls
127- Added support for logging all error return codes when debug
128is on
129- Check that parent auth is loaded in the load key path outside
130the mem_cache_lock, if a thread sleeps holding it, we deadlock
131- Added support for dynamically growing the table that holds
132sleeping threads inside the auth manager
133- In tcs_auth_mgr.c, fixed the release handle path, which didn't
134check if the handle was swapped out before calling to the TPM.
135- Updates throughout the code supporting the modular build.
136
137* TROUSERS_0_3_1
138
139- Added check of return code for ResetDALock call in tspi_admin
140- Added missing ordinals in tcs_pbg.c as reported by Phil Carmon.
141- Added support for DSAP sessions and delegating authorizations!
142- Added support for DSAP sessions inside a transport session.
143- Prevent Tspi_TPM_GetCapability from switching the endianess of
144the data returned from a request for TSS_TPMCAP_NV_LIST when that
145list happens to be sizeof(UINT32).
146- Fixed trouble in owner_evict_init path for 1.1 TPMs
147- Fixed multiple problems with changing auth on encrypted data
148and keys.
149- Fix for SF#1811120, Tspi_TPM_StirRandom01 test crashes TCSD.
150- Fix for SF#1805829, ChangeAuth fails to return an error
151- Fix for SF#1803767, TSS_TSPATTRIB_KEY_PCR_LONG key attribute
152not implemented
153- Fix for SF#1802804, Tspi_TPM_Delegate_UpdateVerificationCount
154problem
155- Fix for SF#1799935, Tspi_TPM_Delegate_ReadTables bug
156- Fix for SF#1799912, policy lifetime counter doesn't reset with
157SetSecret
158- Fix for SF#1799901, policy lifetime timer doesn't reset with
159SetSecret
160- Fix for SF#1779282. Trspi_UnloadBlob_CERTIFY_INFO DNE.
161- Fix for setting the right kind of PCR struct in the key object
162
163* TROUSERS_REDHAT_SUBMIT
164
165- Updated ps_inspect utility to more accurately guess if the file
166you're inspecting is really a persistent storage file.
167- Fixed endianess issue with certain TPM get caps
168- Fixed bug in setting credential data in the TSP
169- Moved secret hash mode code out from inside spec compliance
170#defines since they're now part of the 1.2 spec.
171- Better support for NULL parameters to blob manipulation
172functions
173- Fix for regression - blank the SRK pubkey copy stored in system
174persistent storage
175- Added RPC plumbing for DSAP sessions
176- Added support for unmasking data on unseal :-)
177- Implemented encdata PCR_INFO_LONG GetAttrib's
178- Overhauled OSAP session handling.
179
180* TROUSERS_0_3_0
181
182- Added TSS_TCSCAP_PLATFORM_CLASS cap support
183- Added the Quote2 Commands
184- Added new TSS 1.2 return codes to Trspi_Error_String.
185- Added Tspi_Context_GetRegisteredKeysByUUID2 functions
186to the persistent storage system
187- Added Tspi_TPM_OwnerGetSRKPubKey and TCS OwnerReadInternalPub
188code.
189- Added support for operator auth and Tspi_TPM_SetOperatorAuth.
190- Added support for Sealx.
191- Added ordinal auditing support.
192- Added initial transport session support.
193- Rewrote TCSD key loading functions.
194- Added support for UINT64 loading/unloading everywhere.
195- Created an initial TCS parameter block generator in tcs_pbg.c.
196- Added support to get_local_random to either allocate a new
197buffer for the random number or write it to a given buffer.
198- Removed TCS GetCredentials APIs -- the TSSWG verified that these
199had accidentally been left in the spec.
200- Added TCS GetCredential API.
201- Added NVRAM APIs, donated by James Xu, and others from Intel.
202- Added TCS GetCredentials functions
203- Patched the TCS key loading infrastructure to return
204TCS_E_INVALID_KEY when a handle is used by a context that doesn't
205have a reference to the key in its keys_loaded list.
206- Added ASN.1 blob encoding and decoding APIs.
207- Added tick stamping APIs
208- Added monotonic counter APIs
209- Added the Tspi_PcrComposite APIs: GetPcrLocality,
210SetPcrLocality, SelectPcrIndexEx and GetCompositeHash.
211- Added new TSS 1.2 return codes for bad EK checksum and
212invalid resource passed to Tspi_Context_FreeMemory.
213- Added Christian Kummer's implementation of PCR reset
214- In PcrExtend, set up the event struct fully before sending
215to the TCS.
216- Fixed bug in ActivateIdentity's use of rgbSymCAAttestation.
217- updated policy handling to match the latest spec.
218- Fixed bug when 2 TCSD's return the same context number.
219- Added a check for the size of Tcsi_StirRandom's entropy data.
220- Added support for TSS 1.2 style keys and PCR info long and
221  short structures.
222- Added support for TPM_Save/LoadAuthContext.
223- Grouped all threading functions in one header file, threads.h.
224- Fix added in TCSD's event parsing code for a segfault when only
225  the number of events is requested.
226- Several bugs fixed in the Tspi_Context_GetRegisteredKeysByUUID
227  code path in the TSP lib.
228- Added a lock around all TCSP functions; removed auth_mgr_lock
229  since the TCSP lock now suffices. This fixed some TCSD multi-
230  threaded errors.
231- hosttable.c: Fixed bug in host table entry removal, thanks
232  to Thomas Winkler for the testcase that helped in finding this.
233- In the TCS GetPcrEventsByPcr, fixed a bug in calculating
234  the number of events to return. Thanks to Seiji Munetoh.
235- Added functions to do incremental hashing, removing most
236  large stack allocations in trousers.
237- Updated blob utility functions to use UINT64's instead of
238  UINT16, which had caused some arbitrary limits in parts of
239  trousers.
240- Merged in TSS 1.2 header files.
241- Merged in build changes for embedded.
242
243* TROUSERS_0_2 branch created
244
245- In obj_policy.c and obj_tpm.c, if NULL is passed in when trying
246  to set a 1.2 style callback, clear the callback address.
247- Fix in Tspi_TPM_ActivateIdentity: Only validate over the out
248  parameters from the TPM, not the TCS (size of data).
249- obj_encdata.c: fixed reference of pcrSelect, which caused
250  bad data to be returned as the PCR selection.
251- added TSS_TSPATTRIB_ENCDATAPCR_DIGEST_ATRELEASE, which was
252  type-o'd in the 1.1 header files.
253- Fix for SF1570380: Algorithm ID not compliant with TSS spec.
254- Corrected off by 1 errors in PCR index bounds checking.
255- Changed logging in the TCSD so that FILE:LINE isn't printed
256  unless debugging is on.
257- Changed build/code so that the system PS dir is mode 0700, not
258  1777.  It used to be 1777 when user PS was not in ~/.trousers.
259- Fix for SF1565726: Segfault when connecting from remote host.
260- Fix for SF1565208: User PS load key by UUID failed.
261
262* TROUSERS_0_2_8
263
264- Fixed bug in mc_add_entry, where the PCRInfo data was not being
265  copied into the mem cache with the other fields of the key.
266- Fixed 2 bugs in spi_getset.c where setting the secret hash mode
267  was passing subFlag to the internal set function instead of
268  ulAttrib.
269- Added patch to retry the libtspi's recv() call to the TCSD
270  if the call was interrupted before completion.
271- Made the popup string appear as a label on the popup, not the
272  title. Also, got rid of annoying mouse-over texts.
273- Added a flag to pass to the get_secret function internally to
274  indicate whether a popup should contain the confirm box.
275- Added support for callbacks in the identity creation code.
276- Updated the identity creation code in the TSP/TCS to support
277  AES, DES, 3DES during identity creation.
278- Added symmetric encryption interfaces for openssl, Trspi.
279- In Tspi_Hash_Sign, fixed memory leak.
280- Added SetAttribData functions for RSA modulus/exponent per
281  the upcoming additions to the TSS 1.2 errata 1 spec.
282- Fixed bug in TCS key cache where if 2 keys had the same public
283  modulus, they could confuse the key cache manager.
284- Bind/Seal functions now return more descriptive errors codes
285  and won't do the encryption if the data to use is larger than
286  the RSA pubkey.
287- Made updates to the code/headers for the TSS_VALIDATION struct
288  change to be issued as TSS 1.1 header file errata 1.
289- Bug fix: In LoadManuMaintPub's wrapping function in the TSP,
290  we incorrectly passed a reference to the pubkey in loading the
291  blob.
292- Fixed bugs in the maintenance commands, owner auth'd commands
293  were using no auth tags in their commands sent to the TPM.
294- Fixed SF1546344: Track the release of auth handles by TCS
295  context and take the fContinueAuthSession variable into account
296  when calling the TPM to release a handle.
297- Fixed SF1545614: deadlock due to auth_mgr_osap taking the
298  auth_mgr_lock before calling ensureKeyIsLoaded, which took the
299  mem_cache_lock.
300- Added checks to ensure corrupt packets don't crash the tcsd.
301- Added configure option --with-gui=gtk/none to enable building
302  with no popup support for embedded apps. The default secret
303  mode becomes TSS_SECRET_MODE_NONE for all policies and the
304  default context mode becomes TSS_TSPATTRIB_CONTEXT_SILENT to
305  supress all popups.
306- Changed the Tspi_GetAttribData function to return a TCPA_PUBKEY
307  blob as is specified in the portable data section.
308- Added a debugging #define in req_mgr.c to print all data passed
309  to/from the TPM.
310- Updated Tspi_Context_LoadKeyByUUID to check in-memory keys by
311  UUID when the TCS returns a filled-out loadkey info struct.
312- Removed the free of all context related memory when the context
313  closes. Allows an app more flexibility in choosing what to free.
314- Removed check for secret mode None in establishing an OSAP
315  session. Now, a secret of all 0's is used if no secret exists.
316- Added checks for 2 return codes in secret_TakeOwnership.
317- Fixed TSS_VERSION problem. There are no specific getcaps for
318  software version vs. TSS spec version. Instead, the TSP's
319  version structure contains spec version and software major/minor.
320- Removed obj_regdkey list references.
321
322* TROUSERS_0_2_7
323
324- Added 3 new TCSD config options to allow admins to set paths
325  to the 3 types of credentials returned on Make Identity calls.
326- Added an implementation for returning the MANUFACTURER TCS
327  caps.
328- Added translation of TSS caps that are destined for the TPM.
329- Updated DirWrite to work correctly (thanks Kylie).
330- Updated the Tspi_TPM_DirWrite manpage with more info, removed
331  a confusing statement.
332- Changed the number of loops in TCSP_GetRandom_Internal to 50,
333  which should allow TPMs that return few bytes per request to
334  fullfill up to 4K bytes.
335- Removed the TCS's getSomeMemory() function, which was really
336  dumb.
337- Changed the way user PS operates. User PS is now really
338  persistent, its kept in ~/.trousers/users.data, which is
339  created if it doesn't exist. Also, the environment variable
340  TSS_USER_PS_FILE can be set to a path that will override the
341  default location for as long as the TSP context is open.
342- Lots of memory leaks found in error paths by Coverity, mostly
343  in tcsd_wrap.c.
344- Fix for SF #1501811, setting some SetAttribUint32 flags not
345  supported.
346- Lots of updates to the fedora specific RPM specfile.
347- Fix for SF #1490845, 'make install' overwrites old tcsd.conf
348- Added code to return TSS_E_POLICY_NO_SECRET when setting up
349  an OIAP or OSAP session.
350- Added fix for SF #1490745, trousers demands too much from
351  /dev/random. Default random device is now /dev/urandom.
352- Changed severity of the ioctl fallback print stmts to
353  warning and info.
354- Added implementation of the maintenance functions.
355- Added fix for SF #1487664, Offset in PS cache is not
356  updated correctly.
357- Removed some Atmel specific code and commented out code.
358- Added some missing auth_mgr_check calls in tcspbg.c.
359- Fixed some unchecked mallocs in the TSP.
360- Added build variables to automatically update the TSP
361  library version and TCSD version getcap variables.
362- Added call to return the modulus of an RSA key on a
363  GetAttribData call.
364- Added implementation of the migration functions.
365- Fix for SF 1477178, random numbers get hosed by the tcsd.
366
367* TROUSERS_0_2_6
368
369- Removed unnecessary call to obj_encdata_get_data in
370 Tspi_Data_Seal.
371- Added support for using the trousers.h APIs in C++.
372- Fixed Tspi_PcrComposite_GetPcrValue's man page, which had
373 left out *'s in two parameters.
374- Fix for SF 1414817, Quote's PCR object doesn't get set on
375 return.
376- Lots of function renaming to make code reading clearer.
377- Return TSS_E_INVALID_OBJ_ACCESS when trying to retrieve data
378 from an encrypted data object that hasn't been set.
379- Added contact info to the README.
380- Fix for ordering of params in call to set callback by
381  Tspi_SetAttribUint32. Thanks to Thomas Winkler for the fix.
382- Fix for SF 1410948, get random numbers from /dev/urandom
383  unless Tspi_TPM_GetRandom is called explicitly.
384- Fix for SF 1342026, print TPM error codes during bring-up.
385- Added support for a TCS_LOADKEY_INFO structure returned from
386 a TCSP_LoadKeyByUUID call.
387- Fixed 2 free_tspi's that should have been plain free's
388
389* TROUSERS_0_2_5
390
391- Changed all prints of size_t to %z (matters on 64bit platforms).
392- Backport of the context and policy object's
393 TSS_TSPATTRIB_SECRET_HASH_MODE attribute from the TSS 1.2 spec.
394 This will allow 1.1 apps to decide whether they want to
395 include the 2 bytes of NULL in the hashes of their secrets.
396 This will in turn allow various TSS's to interoperate better.
397- SF#1397265 'getpubek' to 'readpubek' in tcsd.conf.
398- Added an implementation of TSS 1.2 style callbacks.
399- Added Emily's patch to explain the TSS_DEBUG_OFF flag, added
400 blurb to README.
401- Fixed bug that only manifested on PPC64: if errno is not set
402to 0 explicitly before making a call to iconv, iconv will not
403set it on failure.
404
405* TROUSERS_0_2_4
406
407 - Updated README with how to use new system.data files.
408 - Added sample system.data files for users who've taken
409 ownership of their TPMs under other OS's.
410 - Updated unicode routines to NULL terminate their strings
411 with the same number of bytes as is the width of the
412 encoding.
413 - Fixed bug in TCS_EnumRegisteredKeys_TP, returned data should
414 be alloc'd on the TSP heap.
415 - Added a logging statement when tcsd_startup fails due to an
416 error returned by the TPM itself.
417 - Fixed validation data in Tspi_TPM_Quote and
418 Tspi_TPM_GetPubEndorsementKey.
419 - Implemented Tspi_TPM_CollateIdentityRequest and
420 Tspi_TPM_ActivateIdentity.
421 - Bug fix in TCSP_Sign_TP, signature should be alloc'd using
422 the TSP heap.
423 - Fix for SF#1351593, authdata was always 0 for the SRK. This
424 was due to the defaults set in Tspi_Context_CreateObject for
425 the SRK key flag. The default SRK key is now set to require
426 auth. If you want an authless SRK, you need to either set
427 the authdatausage attribute directly or pass in your own
428 SRK initFlags to the create object call.
429 - Return bad parameter when no the pcr object is not
430 initialized instead of internal error.
431 - Several fixes added for list locking in the obj_*.c files.
432 - Added initial support for Tspi_TPM_CollateIdentityRequest
433 and its supporting functions (symmetric encryption).
434 - Fix for SF#1338785: Support TSS_TSPATTRIB_HASH_IDENTIFIER.
435 - Changed default kernel and firmware controlled PCRs to
436 none, which should have happened a long time ago. :-/
437 - Fix for SF#1324108: Tspi_TPM_GetEvents should return a
438 number of events
439 - Fix for RFE#1301441: Fallback support for the device
440 node. ioctl is tried first, if that fails, r/w is tried,
441 if that fails, error is returned.
442 - Fixes for SF#1332479: HMAC and XOR callbacks were being
443 passed wrong params.
444 - Fix for SF#1334235, uuid data wasn't being set correctly
445 when keys were registered or loaded by uuid.
446 - Fix for SF#1332316, Tspi_GetAttribData doesn't always
447 return data alloc'd by TSP. Unicode data returned from the
448 function was being allocated off the TSP heap.
449 - Changed default return value for Tspi_GetAttribUint32 to
450 success.
451 - Corrected Tspi_TPM_PcrExtend manpage to state that the
452 application should fill out the TSS_PCR_EVENT structure.
453 -Fixes for SF BUG#1312194, and SF BUG#1312196.  Get
454 Attribs for key usage and size were not being returned
455 correctly. Imported values for size from the TSS 1.2
456 header files and translated TPM <-> TSP values for
457 key usage in the get attrib calls.
458 - Accepted Halcrow's patch to add a TSP key object
459 removal function, invoked at object close time.
460 This was SF BUG#1276133.
461 - increased the size of the return buffer from TCS to
462 TSP to 8K, so that larger requests won't fail.
463 - added a loop to TCSP_GetRandom_Internal to try several
464 (currently 5) times to get the number of requested bytes
465 from the TPM. Since the TSP has no way to tell an
466 application that a single request failed, this will help
467 improve the odds of a large request succeeding.
468
469* TROUSERS_0_2_3
470
471 - SF#1291256 bugs fixed. A UINT16 was being passed instead
472 of a UINT32 to TCS_LoadKeyByBlob_Internal.
473 - Removed test in spi_context.c's call to TCS_LoadKeyByUUID,
474 which would always fail, since there was no TCS layer bit
475 set. This kept us in a success path.
476 - Added debug logging functions that print the function
477 name at the beginning of the statement.
478 - Added GetPubKey as an option for TCSD's remote ops.
479 - SF#1249767 bug fixed. UTF16 strings are now hashed when
480 passwords are passed in through the popups.
481 - SF#1286333 bug fixed. New unicode functions added that
482 convert to UTF-16 and from the nl_langinfo(CODESET)
483 encoding.
484 - SF#1285428 bug fixed. obj_context_get_machine_name copied
485   too many bytes out. Code added to Tspi_GetAttribData to
486   convert to UTF16 before returning.
487
488* TROUSERS_0_2_2
489
490 - deleted section on ssh-askpass in README
491 - Modified popup code to hash UTF16 instead of UTF8.
492 - Restructured TCS calls to the TPM so that all auth sessions
493   are released correctly.
494 - Removed TSP contexts from all Trspi functions and modified
495   all trousers code to free its own memory instead.
496 - Fixed the TSP seal command to allow Sealing with a no-auth
497   key by using null auth data. Also changes the TCS seal
498   to return bad parameter if it gets null auth data.
499 - Removed lots of unused code and made formatting changes.
500 - Don't require Tspi_Key_WrapKey to be connected to succeed
501   and return a default value (or from the environment) if
502   we're doing PCR operations on an unconnected context.
503 - Fixed bug where a tcsd created system.data file was not
504   getting the right version info put into it.
505 - SF BUG#1269290 Fixed: Protect the SRK pub key. Upon taking
506   ownership, the unaltered SRK blob is passed back to the TSP
507   to create a valid key object with the SRK pub key intact.
508   The copies of the SRK pub key data that do into the TCSd's
509   mem cache and PS are zeroed out. From then on, the only way
510   to get the SRK pub key is through Tspi_Key_GetPubKey.
511 - tcspbg.c: deleted unused code and always release auth session
512   on an Unbind call.
513 - Bugfix for SF#1274308, Tspi_Key_CreateKey doesn't add PCRs
514   correctly. Ordering of calls in obj_rsakey_set_pcr_data
515   and calculation of PCRInfo size were incorrect.
516 - Close auth sessions in TCS_GetCapabilityOwner
517 - Removed volatile flag from the SRK key handle at key object
518   create time. This was keeping National TPM's from having the
519   ability to be owned!
520 - Moved calcCompositeHash to obj_pcrs.c and renamed it.
521 - Check returns everywhere for addKeyHandle calls.
522 - Call pthread_mutex_init on the host table's mutex.
523 - Modified TSSWG headers so that code w/o BSD types compiles
524   (such as the PKCS#11 TPM STDLL).
525 - Removed ssh_askpass, since UNICODE must be hashed from the GUI
526   input source.
527 - Updated all manpages to include the TSSWG header file names
528   instead of trousers specific files.
529 - Don't log debug data when TSS_DEBUG_OFF env var is available.
530 - Converted UNICODE to unsigned short and modified code accordingly.
531 - Only allow INADDR_LOCALHOST connections when no remote_ops are
532   defined in the tcsd.conf file.
533 - Bugfix in obj_pcrs.c, setting pcr indices and values was buggy.
534 - Moved macros from trousers_types.h (internal) to trousers.h
535   (external), since new header files make them virtually a
536   requirement
537 - Bugfix for SF#1249780, PCR selection structure was incomplete.
538 - Bugfix for SF#1249769, addKeyHandle now returns a TSS_RESULT.
539
540* TROUSERS_0_2_1
541
542 - return invalid handle int Tspi_ChangeAuth when hParentObject
543   is not of the right type.
544 - Fixed bug in TCS ps, write_key_init returned the wrong offset.
545 - Fixed mem leak in spi_getset.c:791, found by Coverity.
546 - Fixed mem leak in calltcsapi.c:70, found by Coverity.
547 - Fixed mem leak in tcskcm.c:531, found by Coverity.
548 - Fixed type-o mem leak in tspps.c:319/tcsps.c:349, found by Coverity.
549 - Fixed mem leak bug in memmgr.c:173, found by Coverity.
550 - Fixed bounds error bugs in tcstp.c:38/98, found by Coverity.
551 - Fixed bounds error bug in tcsd_wrap.c:154, found by Coverity.
552 - Fixed unchecked return bug in spi_utils.c:430, found by Coverity.
553 - Fixed unchecked return bug in calltcsapi.c:1159, found by Coverity.
554 - Fixed negative return value bug tcs/ps/ps_utils.c:365, found by Coverity.
555 - Fixed negative array index bug readpass.c:65, found by Coverity.
556 - Fixed null deref bugs spi_tpm.c:1292/1309/1302, and uninitialized
557   variable 1272, found by Coverity.
558 - Fixed null deref bugs spi_context.c:358/378, found by Coverity.
559 - Fixed null deref bug tcspbg.c:1413, found by Coverity.
560 - Fixed null deref bug tcspbg.c:745, found by Coverity.
561 - Fixed null deref bug imaem.c:356, found by Coverity.
562 - changed config file defaults for kernel/firmware pcrs.
563 - added better logging for when user/group "tss" doesn't exist
564 - in sendTCSDPacket: set transmitBuffer to 0 to prevent sending
565   bogus data.
566 - added some sanity checking in getTCSDPacket to prevent segfaults.
567 - added TCSERR where needed in tcs/ps files.
568 - BUG 1233031 fixed, TSP now stores PACKAGE_STRING as the vendor
569   data when registering a key.
570 - Added better debugging of auth mapping table, also closed two
571   auth handles that were getting left opened in CreateWrapKey and
572   Seal/Unseal.
573 - fixed ps_inspect's printing function.
574 - added SELinux files and README.selinux.
575 - updated ps_inspect tool to recognize non-PS files,
576   print out version 1 PS files and added a license
577   statement. Also added ps_convert tool to convert
578   version 0 PS files to version 1.
579 - updated ps_inspect tool to print out blobs and keys.
580 - change assert to DBG_ASSERT in tcs/ps files, also
581   assert that data sizes are > 0 when read off disk.
582 - Lots of malloc error logging changes where %d should
583   have been %u in the print statment.
584 - auth_mgr.c: allow a TSP to open a max of max_auths/2
585   sessions before its denied any more, for TPMs that
586   can handle a lot of auth sessions.
587 - Big-endian fixes for the persistent store functions.
588   Trousers now runs fine on ppc64, for example.
589 - BUG 1226617: Audit of code for auth handle termination.
590 - Use @PACKAGE_BUGREPORT@ instead of a static email addr in
591   manpages.
592 - Added man page for tcsd.conf in section 5.
593 - Bugfix in remove_table_entry. Host table head was left
594   pointing at free'd memory.
595 - corrected comment in spi_context.c.
596 - added 64bit stuff to configure.in
597 - fixed bug in Tspi_ChangeAuth where parent object was
598   assumed to be an rsakey.
599 - fixed debug logging of data.
600 - modified calcCompositeHash for accepting incomplete pcr
601   select structures & to fill out the structure correctly.
602
603* TROUSERS_0_2_0
604
605 - removed unused code and added debugging in clearUnusedKeys().
606 - Updated README with info on the 2.6.12 kernel device driver.
607 - fixed bug in calculating pcr select size
608 - fixed bug in init'ing PCRS, spi_utils.c:431
609 - Changed TCPA sig schemes to TSS sig schemes in
610   Hash_VerifySignature.
611 - Implemented Tspi_Context_GetKeyByPublicInfo on the TCS side.
612 - Fixed PS bug in storing the pub key data.
613 - Implemented Tspi_Key_UnloadKey
614 - Implemented the guts of Tspi_Key_CertifyKey, which now works
615   in at least the case where both keys passed in are authless.
616 - in obj_rsakey_set_es/ss, added mapping from TCPA numbers
617   to TSS numbers and vice versa.
618 - added #includes in readpass.c to get rid of compile errors.
619   (thanks Emily).
620 - Fixed popup secret handling. Bug #1194607 closed.
621 - Fixed up the LogBlobData functions, no more strcat. Bug #1221974
622   closed.
623 - changed sprintf's to snprintf. Bug #1221932 closed.
624 - Changed the TCPA_RSA_KEY_PARMS management at key creation time.
625 - Re-implemented TSP object management.
626 - Integrated TSSWG header files.
627 - Added valid_keys variable for the debugging build of
628   tcs/ps/ps_utils.c.
629 - Changed >= to > in openssl/crypto.c to correct off by one in
630   checking the size of the input data.
631 - added cvs commit logging to CVSROOT/loginfo file.
632
633* TROUSERS_0_1_11
634
635 - Changed TCSD logging to only log on remote connection attempts,
636   local connections will be left silent.
637 - mended compiled time warnings
638 - updated src/tspi/Makefile.am to respect libtool.
639 - added x86_64 case to configure.in
640 - added args to print stmt tcsd_wrap.c:3640 (thanks Kylie).
641 - commited fix for detecting past runlevel states (thanks Kylie).
642 - committed fix for RNG problem: a TPM's RNG is disabled when
643   the TPM is in the disabled state, yet needs a random number
644   to open an OSAP session to call the owner auth'd TPM enable
645   command.
646 - added code for CreatePubEK plumbing (thanks Kylie).
647 - fixed a couple signed/unsigned comparison warnings
648 - fixed endianess stuff in TPM GetCap spi_tpm.c.
649 - added Trspi_Error functions to manipulate TSS_RESULTs.
650 - Fixed order of receiving for the TCS_OwnerReadPubek call
651   (thanks Kylie).
652 - Added defns for volatile and non-volatile flags (thanks Kylie).
653 - Added Trspi_Error, which converts a TSS_RESULT to a string.
654   (thanks Kylie).
655 - In tcsd_wrap.c, added function bodies for tcs_wrap_OwnerClear,
656   tcs_wrap_DisablePubekRead, tcs_wrap_OwnerReadPubek,
657   tcs_wrap_DisableForceClear and tcs_wrap_DisableOwnerClear.
658   (thanks Kylie).
659 - Added an unload of the auth returned from the TPM in
660   TCSP_OwnerReadPubek_Internal. (thanks Kylie).
661 - Corrected the TAG for the TPM command in
662   TCSP_OwnerReadPubek_Internal. (thanks Kylie).
663
664* TROUSERS_0_1_10
665
666 - Updated implementation of Tspi_Key_WrapKey.
667 - Added missing goto in ReadPubEK in tcstp.c. (thanks Kylie).
668 - Added function guts for various functions in tcstp.c. (thanks
669   Kylie).
670 - In Tspi_TPM_SetStatus, do the right in the physical presence
671   path based on boolean. (thanks Kylie).
672 - Actually pass in the bool flag on TCSP_PhysicalPresence_Internal
673   (thanks Kylie).
674 - corrected force clear logic in spi_tpm.c:818 (thanks Kylie).
675 - fixed error return code check to socket() syscall clntside.c:52.
676 - added comment about TDDL reries and added log statement when a
677   physical presence command is denied because of runlevel.
678 - Fixed Tspi_Hash_VerifySignature to check signatures based on the
679   signature scheme of the key in use. Also, crypto.c was changed
680   to do a verify based on TSS_HASH_OTHER.
681 - Added 2 new highlevel Unbind testcases to test PKCS1.5 vs OAEP.
682 - In Tspi_Context_LoadKeyByUUID, the uninitialized keyBlob variable
683   was causing an invalid free on exit. Corrected that.
684 - changed return value from internal error to invalid handle when a
685   bad object handle is passed to Tspi_Hash_Sign and the Tspi_Data
686   functions.
687 - added Tspi_TPM_CertifySelfTest functionality
688 - corrected iptables string in the tcsd manpage.
689 - Corrected return code in Tspi_Key_UnloadKey02.c testcase.
690 - enabled Tspi_TPM_GetTestResult functionality
691 - added selftest as an option to the list of remote ops for the access
692   control
693 - added compatibility with openssh-askpass for the popup dialog box.
694   Now either gtk2-devel OR openssh-askpass must be installed to build
695   trousers. Using openssh-askpass reduces the size of libtspi.so by
696   about 40K and reduces the number of dependencies from 26 to 6!
697 - Bugfixes
698   - The entityType field was being passed between the TCSD and
699   TSP as a UINT32 instead of UINT16. This was keeping Tspi_ChangeAuth
700   from working as advertised.
701   - Secrets were being hashed incorrectly when secret mode was PLAIN
702   and the secret data length was 0. Now, when secret mode is plain, the
703   passed in data is always hashed, even if its 0 length.
704   - Popups are hopefully being handled more correctly now. Previously
705   the dialog popped up at the time SetSecret was called, but now its
706   just when the secret is actually needed.
707   - sf.net Bug #118026: memory allocations and free's fixed in almost
708   all paths from app to tcstp.c wrt correctly returning calloc_tspi'd
709   memory vs. malloc'd memory. Only problem remaining is the PCR event
710   functions, which have dangling malloc'd references, which is an
711   architectural problem which should be solved in the 1.2 rewrite.
712
713* TROUSERS_0_1_9
714
715 - added tcsd manpage
716 - added access control functionality so that sets of ordinals
717   cannot be executed by non-local hosts. This is now a
718   configurable option in tcsd.conf as "remote_ops".
719 - Set Physical Presence now works from the TSP when the TCSD
720   detects that it is running in single user mode. When not
721   running in single user mode, the TCS_PhysicalPresence
722   command returns TSS_E_NOTIMPL.
723 - Changed an fprintf to LogError in gtk/support.c
724 - TCP/IP server-side fixes in svrside.c
725 - various compile warnings fixed
726 - moved commonly used utility functions to trspi/trousers.c and
727   exported these functions in the header file tss/trousers.h.
728 - added new testcases for ChangeAuth of the TPM owner and SRK in
729   tcg/highlevel/tspi.
730 - added test tcg/highlevel/tpm/Tspi_TPM_PcrRead04.c
731 - updated Tspi_TPM_GetCapability manpage.
732 - added code to detect a 1.2 TPM and get auth sessions the 1.2 way.
733 - added manpage for Tspi_TPM_GetPubEndorsementKey
734 - Bugfixes
735    - in crypto.c, encrypted data area should be RSA_size(rsa) bytes
736    large, not always 256. This was keeping non-2048 bit keys from
737    working with the TPM keyring app.
738    - Fixed detection of an already closed Tddl.
739    - Allow validating the entire TCPA_PUBKEY structure in
740    Tspi_TPM_GetPubEndorsementKey, as National chips do this.
741    - Added support for TSS_TPMCAP_ORD and TSS_TPMCAP_FLAG in
742    Tspi_TPM_GetCapability, which required a call to
743    TCSP_GetCapabilityOwner to fetch the TPM's internal flags. Added
744    tcg/highlevel/tpm/Tspi_TPM_GetCapability0{4,5}.c to test.
745    - When loading the SRK from TCS PS, the TCS key handle should now
746    be 0x40000000 (TSS_SRK_KEY_HANDLE). There were checks for this in
747    the ChangeAuth code paths, which caused failing of various sorts.
748    - Bug fixed in roll over of TCS key handle generation. Previously we
749    would have smashed the SRK's fixed value and we would have thought
750    there were 2 SRK's loaded.
751    - sf.net bug #1154611, old SRK was not being removed from mem cache,
752    though disk cache was being deleted. This means that after re-taking
753    ownership the mem cache was corrupted until a restart of the TCSD.
754 - Feature Requests
755    - sf.net RFE #1122608 completed. Several different device locations
756    are now supported by default.  If /dev/tpm is created its assumed that
757    the IBM Research device driver is being used and therefore ioctl's are
758    sent to the driver, all others get read/write's. Updated README.
759
760* TROUSERS_0_1_8
761
762 - added a manpage for Tspi_TPM_PcrExtend
763 - added SHA1_HASH_SIZE #define tied to openssl/sha.h
764 - Corrected typo in tcpa_types.h of pValdationData -> pValidationData
765 - updated README with info on device file stuff
766 - added a usage function and long options to tcsd
767 - added an error message when incorrect params are passed to tcsd on
768   the command line.
769 - added -lcrypto and -lpthread to the build of libtspi.so, so that app
770   writers will avoid having to include those when they don't have to.
771 - Connected up Tspi_TPM_SetStatus and Tspi_TPM_SelfTestFull to
772   TCSP_SetTempDeactivated, TCSP_SelfTestFull, TCSP_SetOwnerInstall,
773   TCSP_OwnerSetDisable and TCSP_PhysicalDisable.
774 - Bugfixes
775   - tcsem.c:507, error in calculating number of PCR events to copy out.
776   - sf.net bug #1151183 fixed. Tspi_TPM_GetPubEndorsementKey now takes
777   the correct number of params, and all testcases/TSS calls are changed.
778   - sf.net bug #1113313 fixed. Tspi_TPM_TakeOwnership now allows a NULL
779   pub endorsement key handle and a testcase,
780   tcg/highlevel/tpm/Tspi_TPM_TakeOwnership03.c, exists to test this.
781   - In Tspi_SetAttribData, set the TCPA_KEY's privkey, not the wrapper
782   object on a TSS_TSPATTRIB_KEYBLOB_PRIVATE_KEY.
783
784* TROUSERS_0_1_7
785
786 - Fixed the logging up so that if tcsd -f is specified, all logs go the
787   foreground, else all logs go to syslog.
788 - Moved the TPM_IOCTL #define into the tddl.h file. Now, if you're
789   using the IBM research device driver, compiling with #define TPM_IOCTL
790   will use ioctl's to open /dev/tpm and #undef TPM_IOCTL will use
791   read/write calls to /dev/tpm0.
792 - Revert accidental change in tddl.c
793 - Lots of 0's replaced with non-magic #define's in the TSP code
794 - In spi_getset.c: removed unimportant debugging stmts; make
795   Tspi_{Get|Set}AttribData set the correct public and private key data
796   when asked to.
797 - Lots of manpage verbage changes.
798 - added new manpages for: Tspi_TPM_TakeOwnership, Tspi_Key_LoadKey,
799   Tspi_Context_Create and Tspi_TPM_ClearOwner.
800 - Bugfixes
801   - cxt.c: when destroying a context object, release the tcs_ctx_lock before
802     calling ctx_ref_count_keys(). This prevents a deadlock.
803   - added a mutex unlock call for an error path that would have caused a
804     deadlock
805
806* TROUSERS_0_1_6
807
808 - Logging functionality changes only, for bug #1106301
809   - TCSD:
810     - Logs now go to stdout/stderr until a successful startup
811     - After a successful startup, cmdline args are parsed
812     - if -f is specified, logging continues to stdout/stderr and daemon runs
813       in the foreground, killable by ctrl-c.
814     - If -f is not specified, logs go to syslog and the tcsd forks into the
815       background
816   - TSP library
817     - If compiled w/o debugging, there is no logging of any kind
818     - If compiled w/ debugging, all logs go to stdout/stderr, unless the
819       environment variable TSS_DEBUG_OFF is set, then, there is no logging of
820       any kind
821 - There is no longer a --enable-stderrlog option to the configure script
822
823* TROUSERS_0_1_5
824
825 - Complete memory management overhaul. calloc_tspi is now used to clean up
826   memory allocated by Tspi functions. TCS blob functions have been changed
827   to not require a context, since there's no need w/o calloc_tspi. Its
828   now necessary to call free explicitly everywhere in the TCS. In the TSP,
829   calloc_tspi is now always called with the TSP context of the session, which
830   would will ensure all memory allocated by the session is accounted for.
831 - Unused #defines and variables removed from spi_utils.h
832 - Commented out code removed throughout the source.
833 - Removed log.o on a 'make clean'.
834 - commented out unnecessary logging, added more descriptive logging
835 - renamed variables named 'hContext' to specifiy whether they represent TSP
836   of TCS context handles.
837 - got rid of a few magic numbers
838 - Bugfixes
839   - in tcs/cache.c, getNextTimeStamp() was unlocking the mutex twice.
840   - removed destroy_key_refs() in TSP, which caused double free errors
841   - added call to event_log_final() in tcsd_shutdown() to clean up the event log
842   - added an intermediate copy stage of data in getTCSDPacket() to avoid
843   memcpy() calls with overlapping source and dest fields.
844
845* TROUSERS_0_1_4
846
847 - added ChangeLog :-)
848 - TSP object management overhaul. All API's should be correct for contexts
849    whether they're connected to a TCS or not.
850 - testsuite changes based on object mgmt overhaul
851 - various internal fixes and simplifications of the code due to object mgmt
852    overhaul
853
854* TROUSERS_0_1_3
855
856 - added helpful message when package gtk2-devel is not found in configure.in
857 - chown changes in dist/Makefile for new syntax
858 - added detailed flags to various manpages
859 - TSP memory management overhaul
860 - added more complete destroy_key_refs() function
861 - Bugfixes
862    - quashed memory leaks in TSP found by valgrind
863    - return TRUE/FALSE from getAttribData
864    - added TSS_TSPATTRIB_KEYINFO_SIZE to Tspi_GetAttribData
865    - call free() not Tspi_Context_FreeMemory() in spi_utils.c
866
867* TROUSERS_0_1_2
868
869 - added bug report mailing list to configure.in
870 - added --enable-stderrlog feature to configure.in
871 - Marked Tspi_TPM_GetCapabilitySigned as not implemented (per TSS v1.1b spec)
872 - Bugfixes
873    - Removed common.h from Tspi_Context_RegisterKey manpage
874    - added endianess macros to spi_utils.h
875    - made all endianess fixes to the TSP and testsuite
876    - logging improvements tcspbg.c
877    - tcs_utils.c compile time warning quashed
878
879* TROUSERS_0_1_1
880
881 - Updated design doc
882 - Updated README
883 - More sensible function naming (no addNewObject, just addObject)
884 - Bugfixes
885    - return data correctly in Tspi_GetAttribData
886    - malloc space for returned UUID correctly in tspps.c
887    - log errors in tddl.c
888    - follow a failure path in auth_mgr.c
889    - don't always return success in req_mgr.c
890
891* TROUSERS_0_1_0
892
893 - Initial code drop
894