TODO 3.7 KB

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