TODO 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. * Manual:
  2. ** Some FIXME's which need attention.
  3. ** The pictures in PDF output are blurry.
  4. ** The pictures in info output do not exist.
  5. * Bugs or misfeatures:
  6. ** Mozilla presents the other certificates in "Websites". Only the
  7. first one is presented in the certicate manager under "Personal".
  8. ** Mozilla does not unload the right security token!!!
  9. ** Duplicate certificates should be removed from the object list (this
  10. can occur when including all certificate chains).
  11. ** Windows: Find thread-safe replacement for localtime_r and timegm.
  12. * Missing features:
  13. ** Implement random number generation function C_GenerateRandom.
  14. ** Add canonical gnupg logging module.
  15. ** Mozilla ignores the CKA_TRUSTED attribute to certificates, so
  16. exporting the information from GPGSM (ISTRUSTED) will not be
  17. useful. It's unclear if this can be improved in a meaningful way.
  18. * Could be done better:
  19. ** Search for grip/fingerprint directly instead iterating over all
  20. keys with GPGSM?
  21. * Standard ambiguities, or non-conformance in the applications:
  22. ** If the token is removed, the current sessions are closed. If then
  23. a new token is inserted, and the application calls C_OpenSession, a
  24. previously used session handle may be reused. It is not clear what
  25. behaviour the standard specifies in this case.
  26. ** Mozilla NSS has this comment (and relies on the assumption):
  27. "check to see if the module has added new slots. PKCS 11 v2.20
  28. allows for modules to add new slots, but never remove them. Slots
  29. cannot be added between a call to C_GetSlotLlist(Flag, NULL,
  30. &count) and the subsequent C_GetSlotList(flag, &data, &count) so
  31. that the array doesn't accidently grow on the caller. It is
  32. permissible for the slots to increase between successive calls with
  33. NULL to get the size."
  34. My reading of the spec is quite different. I do not think it does
  35. say that the slot list can not shrink, at least it does not say
  36. explicitely. Maybe it is a tacit assumption, because the interface
  37. is obviously broken if the list shrinks. However, the spec says:
  38. "All slots which C_GetSlotList reports must be able to be queried as
  39. valid slots by C_GetSlotInfo. Furthermore, the set of slots
  40. accessible through a Cryptoki library is checked at the time that
  41. C_GetSlotList, for list length prediction (NULL pSlotList argument)
  42. is called. If an application calls C_GetSlotList with a non-NULL
  43. pSlotList, and then the user adds or removes a hardware device, the
  44. changed slot list will only be visible and effective if
  45. C_GetSlotList is called again with NULL. Even if C_GetSlotList is
  46. successfully called this way, it may or may not be the case that
  47. the changed slot list will be successfully recognized depending on
  48. the library implementation. On some platforms, or earlier PKCS11
  49. compliant libraries, it may be necessary to successfully call
  50. C_Initialize or to restart the entire system."
  51. Note the phrase "user adds or removes a hardware device" and "the
  52. changed slot list". This implies that removal of a hardware device
  53. could lead to a shrinking slot list. If this is true, then the note
  54. in the NSS code is incorrect, and the NSS code will break if a
  55. driver shrinks the slot list.
  56. However, as long as the assumption is made, we have to comply.
  57. * Website:
  58. ** Border picture does not tile vertically.
  59. ** Border picture width constant hard-coded in CSS.
  60. ** Nimbus font in logo SVG may not be available on all clients.
  61. Copyright 2006 g10 Code GmbH
  62. This file is free software; as a special exception the author gives
  63. unlimited permission to copy and/or distribute it, with or without
  64. modifications, as long as this notice is preserved.
  65. This file is distributed in the hope that it will be useful, but
  66. WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  67. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  68. PURPOSE.