ChangeLog 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. 2008-09-29 Marcus Brinkmann <marcus@g10code.com>
  2. * src/slots.c (MIN): Remove macro.
  3. (slot_token_maxpinlen, slot_token_pincount): Do not consider
  4. second pincount, which meaning depends on the card version.
  5. 2008-09-26 Marcus Brinkmann <marcus@g10code.de>
  6. * src/agent.c: Include "cert.h".
  7. (GET_CERT_INIT_SIZE): New symbol.
  8. (struct get_cert_s): New struct.
  9. (get_cert_data_cb, scute_agent_get_cert): New functions.
  10. * src/gpgsm.c: Include "agent.h".
  11. (scute_gpgsm_get_cert): Take extra argument NO. Use it to get the
  12. certificate directly from the card, if possible.
  13. * src/gpgsm.h (scute_gpgsm_get_cert): Add extra argument NO to
  14. prototype.
  15. * src/slots.c (slot_init): Pass extra argument to
  16. scute_gpgsm_get_cert invocation.
  17. * src/cert-object.c (scute_attr_prv, scute_attr_cert): Don't use
  18. the fpr, timestamp and expire field of a certificate for now.
  19. 2008-09-23 Marcus Brinkmann <marcus@g10code.de>
  20. * src/agent.c (GET_CERT_INIT_SIZE): New symbol.
  21. (struct get_cert_s): New struct.
  22. (get_cert_data_cb, scute_agent_get_cert): New functions.
  23. 2008-09-03 Marcus Brinkmann <marcus@g10code.com>
  24. * src/Makefile.am (.rc.o): New rule.
  25. * src/Makefile.am (EXTRA_DIST): Add stpcpy.h.
  26. 2008-09-02 Marcus Brinkmann <marcus@g10code.com>
  27. * configure.ac: Post-release cleanup.
  28. * doc/website/download.xhtml: Update.
  29. 2008-09-02 Marcus Brinkmann <marcus@g10code.com>
  30. * Released version 1.2.0.
  31. * doc/manual/Makefile.am (CLEANFILES): Add $(images_eps).
  32. (images_eps): New variable.
  33. (scute.dvi): Depend on $(images_eps) instead of $(images_pdf).
  34. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  35. * src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.
  36. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  37. * src/agent.c (gnupg_allow_set_foregound_window)
  38. [!HAVE_W32_SYSTEM]: Define it.
  39. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  40. * src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.
  41. * src/dllmain.c (DllMain): New file.
  42. * src/cert-gpgsm.c: Include "debug.h". Use
  43. assuan_pipe_connect_ext instead of assuan_pipe_connect everywhere.
  44. * src/agent.c (WINVER) [HAVE_W32_SYSTEM]: Define symbol.
  45. [HAVE_W32_SYSTEM]: Include <windows.h>. Do this before including
  46. <assuan.h>.
  47. (gnupg_allow_set_foregound_window): New function.
  48. (agent_connect): Use Sleep() instead of _sleep().
  49. (default_inq_cb): New function, and use it in all transactions.
  50. (agent_configure): Don't bail out if ttytname is not defined. Set
  51. allow-pinentry-notify.
  52. * tests/t-support.h [_WIN32]: Include <windows.h>.
  53. (init_cryptoki) [_WIN32]: Call WSAStartup.
  54. 2008-08-21 Marcus Brinkmann <marcus@g10code.com>
  55. * src/scute.def: Start at @1 instead of @0.
  56. 2008-08-21 Marcus Brinkmann <marcus@g10code.com>
  57. * src/agent.c (agent_configure): Fix cut and paste error.
  58. 2008-08-11 Marcus Brinkmann <marcus@g10code.com>
  59. * src/agent.c (spawn_process_detachted) [! HAVE_W32_SYSTEM]: Remove.
  60. (agent_configure): Ignore error with old versions of gpg-agent.
  61. 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
  62. * configure.ac: Update svn macros.
  63. (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP): New.
  64. (AC_CONFIG_OUTPUT): Add src/versioninfo.rc.
  65. (GPG_AGENT_DEFAULT, GPG_AGENT): New.
  66. (AC_REPLACE_FUNCS): Add vasprintf and stpcpy.
  67. (AC_CHECK_FUNCS): Add ttyname, localtime_r and timegm.
  68. * src/stpcpy.h, src/stpcpy.c, src/realloc.c: New file from gnulib.
  69. * src/vasprintf.c: New file from libiberty.
  70. * src/support.h [!HAVE_STPCPY]: Include "stpcpy.h".
  71. [!HAVE_TTYNAME]: Define simple replacement function.
  72. (get_gpgsm_path, get_gpg_agent_path)
  73. (default_homedir, make_filename): New prototypes.
  74. * src/Makefile.am: Add W32 support.
  75. (libscute_la_SOURCES): Add get-path.c.
  76. (EXTRA_DIST): Add versioninfo.rc.in.
  77. * src/versioninfo.rc.in: New file.
  78. * src/get-path.c: New file.
  79. * src/agent.c (PATHSEP_C): New macro.
  80. (build_w32_commandline_copy)
  81. (build_w32_commandline) [HAVE_W32_SYSTEM]: New functions.
  82. (spawn_process_deatched): New function.
  83. (agent_connect): Start gpg-agent if it is not running yet.
  84. (agent_configure): Also pass xauthority and pinentry-user-data.
  85. * src/cert-gpgsm.c (COMPAT_FALLBACK) [!HAVE_W32_SYSTEM]: New
  86. macro.
  87. (export_cert_compat) [!COMPAT_FALLBACK]: Remove.
  88. (export_cert) [!COMPAT_FALLBACK]: Don't call export_cert_compat.
  89. Don't create (unused) output pipe cruft.
  90. * src/cert-object.c (time_to_ck_date) [!HAVE_LOCALTIME_R]: Fall
  91. back to localtime.
  92. * tests/t-getslotinfo.c (main) [WIN32]: Call _sleep instead sleep.
  93. * src/cryptoki.h (CRYPTOKI_EXPORTS): Define symbol.
  94. * src/error-mapping.h: Do not include <error.h>.
  95. (scute_sys_to_ck): Change type of ERR to int.
  96. * src/error-mapping.c: Do not include <error.h>.
  97. (scute_sys_to_ck): Change type of ERR to int.
  98. * src/slots.c (slot_create_session): Change type of ERR to int.
  99. 2007-05-03 Marcus Brinkmann <marcus@g10code.de>
  100. Released version 1.1.0.
  101. * doc/manual/Makefile.am (images_pdf, CLEANFILES): New variables.
  102. (scute.dvi, scute.pdf): New dependencies.
  103. (%.eps, %.pdf): New rules.
  104. * configure.ac: Check for convert and epstopdf.
  105. * doc/manual/scute.texi (Authentication With Service): Avoid
  106. @indicateurl in TeX output, as this seems to be broken (in
  107. texi2dvi 1.34).
  108. * doc/manual/Makefile.am (images, EXTRA_DIST): New variables.
  109. 2007-04-30 Marcus Brinkmann <marcus@g10code.de>
  110. * src/agent.h (scute_agent_is_trusted): New prototype. Include
  111. <stdbool.h>.
  112. * src/agent.c (scute_agent_is_trusted): New implementation.
  113. * src/cert.h (struct cert): New member IS_TRUSTED.
  114. * src/cert-gpgsm.c (export_cert): Set CERT->is_trusted.
  115. * src/cert-object.c (scute_attr_cert): Set CKA_TRUSTED to
  116. CERT->is_trusted.
  117. * tests/t-getattribute.c: Support new option '--printable'.
  118. * src/table.c (scute_table_dealloc): Return, but not a value.
  119. 2007-02-09 Marcus Brinkmann <marcus@g10code.de>
  120. * src/pkcs11.h: Add definitions for SHA.
  121. 2006-12-17 Marcus Brinkmann <marcus@g10code.de>
  122. * src/pkcs11.h: Minor cosmetic changes. Require CRYPTOKI_GNU now
  123. to switch on the GNU API, and do not check what CRYPTOKI_COMPAT is
  124. defined to, just if it is defined at all.
  125. * src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
  126. CRYPTOKI_FORCE_WIN32] at the end.
  127. Submitted by Alon Bar-Lev.
  128. 2006-12-11 Marcus Brinkmann <marcus@g10code.de>
  129. * src/pkcs11.h (CKO_VENDOR_DEFINED): Fixed syntax error.
  130. 2006-12-10 Marcus Brinkmann <marcus@g10code.de>
  131. * configure.ac (NEED_GPG_ERROR_VERSION): Bump to 1.4.
  132. * src/pkcs11.h [CRYPTOKI_COMPAT]: Rewrote the compatibility layer.
  133. 2006-12-09 Marcus Brinkmann <marcus@g10code.de>
  134. * src/pkcs11.h [__cplusplus]: Protect with extern "C".
  135. Do not use the C++ keyword "template" in parameter lists.
  136. Submitted by Alon Bar-Lev.
  137. * src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
  138. CRYPTOKI_FORCE_WIN32].
  139. (ck_rv_t): Changed to unsigned long.
  140. (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR,
  141. CRYPTOKI_VERSION_REVISION): New macros.
  142. (CKO_VENDOR_DEFINED, CKH_VENDOR_DEFINED, CKK_VENDOR_DEFINED,
  143. CKC_VENDOR_DEFINED, CKA_VENDOR_DEFINED, CKM_VENDOR_DEFINED,
  144. CKF_EXTENSION, CKR_VENDOR_DEFINED): Add cast to suppress compiler
  145. warning.
  146. Submitted by Alon Bar-Lev.
  147. * src/cryptoki.h (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR):
  148. Removed.
  149. 2006-11-30 Marcus Brinkmann <marcus@g10code.de>
  150. * m4/autobuild.m4: New file.
  151. * configure.ac: Invoke AB_INIT.
  152. 2006-11-29 Marcus Brinkmann <marcus@g10code.de>
  153. * configure.ac (CFLAGS): Remove variable.
  154. 2006-11-27 Marcus Brinkmann <marcus@g10code.de>
  155. * src/pkcs11.h: Add more definitions provided by Andreas Jellinghaus.
  156. * README (Copyright and License): Update copyright notice. Also
  157. for all other files.
  158. * AUTHORS (Maintainer): Removed RSA Security Inc.
  159. * include/pkcs11t.h, include/pkcs11f.h, include/pkcs11.h,
  160. include/disclaimer.txt, include/cryptoki-w32.h,
  161. include/cryptoki-generic.h, include/README, include/Makefile.am:
  162. Files removed.
  163. * configure.ac (AC_CONFIG_FILES): Removed include/Makefile.
  164. * Makefile.am (SUBDIRS): Removed include directory.
  165. 2006-11-24 Marcus Brinkmann <marcus@g10code.de>
  166. * src/pkcs11.h: New file.
  167. * src/Makefile.am (libscute_la_SOURCES): Add pkcs11.h.
  168. * src/cryptoki.h: Include "pkcs11.h" instead of original PKCS #11
  169. header file.
  170. * tests/t-support.h (mechanism_type_str): Remove most mechanisms.
  171. 2006-11-23 Marcus Brinkmann <marcus@g10code.de>
  172. * src/cert-gpgsm.c (search_certs_line): Don't overwrite CERT->uid.
  173. 2006-11-21 Marcus Brinkmann <marcus@g10code.de>
  174. * src/cert-gpgsm.c (search_certs_line): Fix off-by-one error.
  175. (export_cert_cb): Fix bug if EXP->buffer_size is 0.
  176. * src/cert-gpgsm.c (cert_reset): Free CERT->cert_der if set.
  177. (export_cert): Reimplement using data channel.
  178. (export_cert_compat): This contains the old version for
  179. compatibility.
  180. * src/cert.h (MAX_CERT_SIZE): Macro removed.
  181. (struct cert): Changed member CERT_DER into a pointer.
  182. * configure.ac (AC_CONFIG_FILES): Add doc/manual/Makefile.
  183. * doc/Makefile.am (SUBDIRS): New variable.
  184. * doc/manual/Makefile, doc/manual/scute.texi, doc/manual/gpl.texi,
  185. doc/manual/mdate-sh, doc/manual/texinfo.tex,
  186. doc/manual/firefox-cm.png, doc/manual/firefox-cm-view-detail.png,
  187. doc/manual/firefox-cm-view.png,
  188. doc/manual/firefox-dm-load-after.png,
  189. doc/manual/firefox-dm-load-before.png,
  190. doc/manual/firefox-dm-load.png,
  191. doc/manual/firefox-dm-token-present.png,
  192. doc/manual/firefox-pref.png, doc/manual/firefox-pref-view.png: New
  193. files.
  194. 2006-11-11 Marcus Brinkmann <marcus@g10code.de>
  195. * Released version 1.0.0.
  196. 2006-11-11 Marcus Brinkmann <marcus@g10code.de>
  197. * src/error-mapping.c (scute_gpg_err_to_ck): Report error on debug
  198. stream.
  199. * src/slots.c (add_object): New function.
  200. (slot_init): Rewritten using add_object.
  201. * src/gpgsm.c: Include "gpgsm.h".
  202. (struct search): Replace members ATTRP, ATTR_COUNTP, PRV_ATTRP,
  203. PRV_ATTR_COUNTP by CERT_GET_CB, HOOK.
  204. (search_cb): Rewritten to add all certificates for a certain key
  205. (scute_gpgsm_get_cert): Take a callback function instead of
  206. attribute pointers.
  207. * gpgsm.h (scute_gpgsm_get_cert): Adjust prototype.
  208. and also the certificate chain.
  209. * src/cert.h (scute_gpgsm_search_certs_by_fpr): New prototype.
  210. (struct cert): New member chain_id.
  211. * src/cert-gpgsm.c (struct search_ctx_by_grip): Rename to ...
  212. (struct search_ctx): ... this. Rename field GRIP to PATTERN, and
  213. add new field FIELD.
  214. (search_certs_by_grip): Rename function to ...
  215. (search_certs): ... this.
  216. (scute_gpgsm_search_certs_by_fpr): Change user of the above.
  217. (scute_gpgsm_search_certs_by_fpr): New function.
  218. (search_certs_line): Store chain ID.
  219. 2006-11-07 Marcus Brinkmann <marcus@g10code.de>
  220. * src/p11-gettokeninfo.c (C_GetTokenInfo): Fix assignment.
  221. 2006-11-06 Marcus Brinkmann <marcus@g10code.de>
  222. * doc/website/format/web.css: Set margin to 0.
  223. * configure.ac (AC_CONFIG_FILES): Add doc/Makefile.
  224. Makefile.am (SUBDIRS): Add doc/.
  225. doc/, doc/website/, doc/website/format: New directories.
  226. doc/Makefile.am, doc/website/index.xhtml,
  227. doc/website/documentation.xhtml, doc/website/download.xhtml,
  228. doc/website/contact.xhtml, doc/website/format/web.css,
  229. doc/website/format/scute-logo.svg,
  230. doc/website/format/scute-border.jpg: New files.
  231. 2006-10-30 Marcus Brinkmann <marcus@g10code.de>
  232. * configure.ac (PACKAGE, VERSION): Define these variables.
  233. * src/Makefile.am (libscute_la_CPPFLAGS): Fix include path for
  234. VPATH builds.
  235. * configure.ac (VERSION_MAJOR, VERSION_MINOR): New variable
  236. definitions.
  237. * src/gpgsm.h: Fix syntax error.
  238. * src/table.c, src/table.h: Rewritten.
  239. * src/slots.c: Reorganized and rewritten to use the new table
  240. interface. Include gpgsm.h.
  241. * src/p11-signinit.c, src/p11-sign.c, src/p11-getslotlist.c,
  242. src/p11-getsessioninfo.c, src/p11-getmechanismlist.c,
  243. src/p11-getattributevalue.c, src/p11-findobjectsinit.c,
  244. src/p11-findobjectsfinal.c, src/p11-findobjects.c,
  245. src/p11-closesession.c: Adjust callers.
  246. 2006-10-26 Marcus Brinkmann <marcus@g10code.de>
  247. * src/settings.h: Require VERSION_MAJOR and VERSION_MINOR to be
  248. defined.
  249. * src/p11-getinfo.c (CRYPTOKI_VERSION_MAJOR,
  250. CRYPTOKI_VERSION_MINOR): Move macros to ...
  251. * src/cryptoki.h (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR):
  252. ... here
  253. * src/gpgsm.c (gpgsm_get_cert): Rename to ...
  254. (scute_gpgsm_get_cert): ... this.
  255. * src/gpgsm.h: New file.
  256. * src/Makefile.am (libscute_la_SOURCES): Add gpgsm.h.
  257. * src/slots.c (gpgsm_get_cert): Remove prototype.
  258. (slots_update_slot): Call scute_gpgsm_get_cert, not gpgsm_get_cert.
  259. * src/error-mapping.c (scute_gpg_err_to_ck): Map GPG_ERR_NO_AGENT
  260. to CKR_GENERAL_ERROR.
  261. * src/agent.h (struct agent_card_info_s): Remove member error.
  262. Prefix external functions with scute_ if not already done so, also
  263. for callers.
  264. * src/agent.c: Include <stdarg.h>. Replace one-letter variable
  265. names by proper ones. Replace assuan_error_t with gpg_error_t
  266. everywhere.
  267. (agent_connect, agent_simple_cmd, agent_configure): New functions.
  268. (scute_agent_initialize): Use these new functions.
  269. ing of common code. Lots of cleanups.
  270. (scute_agent_finalize): Clear agent_ctx. Add debug message.
  271. 2006-10-13 Werner Koch <wk@g10code.com>
  272. * src/cert-gpgsm.c (MAX_LINE_LEN): Increased.
  273. * src/locking.c: Include string.h for memset declaration.
  274. * configure.ac: New option --disable-optimization.
  275. 2006-08-02 Marcus Brinkmann <marcus@g10code.de>
  276. * Initial version.
  277. Copyright 2006, 2007, 2008 g10 Code GmbH
  278. This file is free software; as a special exception the author gives
  279. unlimited permission to copy and/or distribute it, with or without
  280. modifications, as long as this notice is preserved.
  281. This file is distributed in the hope that it will be useful, but
  282. WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  283. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.