ChangeLog 13 KB

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