ChangeLog 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. 2009-10-16 Marcus Brinkmann <marcus@g10code.com>
  2. * src/p11-initialize.c (CK_DEFINE_FUNCTION): Fix code on
  3. non-Windows.
  4. 2009-10-08 Marcus Brinkmann <marcus@g10code.com>
  5. * src/p11-initialize.c (C_Initialize): Call WSAStartup.
  6. * src/p11-finalize.c (CK_DEFINE_FUNCTION): Call WSACleanup.
  7. 2009-10-06 Marcus Brinkmann <marcus@g10code.com>
  8. * src/pkcs11.h: Add support for GOST. By Andreas Jellinghaus.
  9. 2009-09-23 Marcus Brinkmann <marcus@g10code.de>
  10. * configure.ac (NEED_LIBASSUAN_VERSION): Update to 1.1.0.
  11. (_ASSUAN_ONLY_GPG_ERROR): Remove.
  12. * src/p11-initialize.c: Update to new Assuan interface.
  13. * src/debug.c (_scute_debug_init): Remove call to
  14. assuan_set_assuan_log_stream.
  15. * src/agent.c (agent_connect): Allocate assuan context before
  16. connecting to server. Release it on error.
  17. * src/cert-gpgsm.c (export_cert_compat, export_cert)
  18. (scute_gpgsm_search_certs_by_grip)
  19. (scute_gpgsm_search_certs_by_fpr): Likewise.
  20. 2009-07-22 Stef Walter <stef@memberwebs.com>
  21. * src/pkcs11.h: Make all constants UL that should be.
  22. 2009-06-19 Werner Koch <wk@g10code.com>
  23. Release 1.3.0.
  24. * src/settings.h (SLOT_FIRMWARE_VERSION_MAJOR)
  25. (SLOT_FIRMWARE_VERSION_MINOR, SLOT_HARDWARE_VERSION_MAJOR)
  26. (SLOT_HARDWARE_VERSION_MINOR): Remove.
  27. * src/p11-getslotinfo.c (CK_DEFINE_FUNCTION): Set firmware version
  28. to Scute version and agent version to hardware version.
  29. * src/agent.c (read_version_cb): New.
  30. (agent_configure): Call that.
  31. (agent_version_major, agent_version_minor): New.
  32. (scute_agent_get_agent_version): New.
  33. * src/agent.c (SIG_LEN_2): Fix stupid c+p bug.
  34. 2009-06-19 Marcus Brinkmann <marcus@g10code.de>
  35. * src/Makefile.am (scute_deps): Add libgpg-error.a, libassuan.a.
  36. (scute_libadd): New variable.
  37. (libgpg-error.a, libassuan.a, clean-local): New targets.
  38. (libscute_la_LIBADD): Add $(scute_libadd).
  39. 2009-06-19 Werner Koch <wk@g10code.com>
  40. * src/agent.c (geteventcounter_status_cb): New.
  41. (scute_agent_check_status): Check the eventcounter first.
  42. 2009-06-19 Marcus Brinkmann <marcus@g10code.de>
  43. * tests/t-getattribute.c (dump_object): Allow empty CKA_START_DATE
  44. and CKA_END_DATE.
  45. * src/cert-object.c (scute_attr_prv): Always set CKA_START_DATE
  46. and CKA_END_DATE.
  47. 2009-06-19 Werner Koch <wk@g10code.com>
  48. * src/agent.c (MAX_SIGNATURE_LEN): Increase size to cope with 2048
  49. bit RSA.
  50. (scute_agent_sign): Add a hack for 2048 bit RSA.
  51. * tests/t-auth.c (sign_with_object): Increase SIZE to 256.
  52. 2009-06-19 Marcus Brinkmann <marcus@g10code.de>
  53. * libtool.m4: Removed.
  54. * m4/libtool.m4, m4/ltoptions.m4, m4/ltsugar.m4, m4/ltversion.m4,
  55. m4/lt~obsolete.m4: New files from libtool 2.2.6.
  56. * configure.ac: Update to libtool 2.2.6.
  57. (lt_cv_deplibs_check_method): Slightly evil hack to get libtool to
  58. our thing.
  59. (AC_DISABLE_STATIC, AC_LIBTOOL_WIN32_DLL, AC_LIBTOOL_RC)
  60. (AC_PROG_LIBTOOL): Obsolete, replaced by ...
  61. (LT_PREREQ, LT_INIT, LT_LANG): ... these new macro invocations.
  62. * src/Makefile.am: Remove a bunch of rules for shared library.
  63. (RCCOMPILE): New.
  64. (LTRCCOMPILE): Use it here.
  65. (.rc.lo): Add quoting.
  66. 2009-06-19 Werner Koch <wk@g10code.com>
  67. * src/estream-printf.c, src/estream-printf.h: New.
  68. * src/Makefile.am (sources): Add them.
  69. * Makefile.am (SUBDIRS): Add m4/.
  70. * m4/Makefile.am: New.
  71. * m4/estream.m4: New.
  72. * configure.ac (AC_REPLACE_FUNCS): Remove.
  73. (estream_PRINTF_INIT): Add.
  74. (AH_BOTTOM): Prefix estream fucntions.
  75. (AC_FUNC_REALLOC) Remove because it uses AC_LIBOBJ which as
  76. problems with the current libtool. The GNU guarantees for realloc
  77. don't seem to be needed.
  78. * src/realloc.c: Remove
  79. * src/vasprintf.c, src/stpcpy.c, src/stpcpy.h: Remove.
  80. * src/support.h: Do not include stpcpy.h but define it inline.
  81. Include estream-printf.h.
  82. (vasprintf, asprintf, snprintf): Redefine to estream functions
  83. * src/agent.c (scute_agent_sign): s/sprintf/vsnprintf/.
  84. 2009-06-18 Werner Koch <wk@g10code.com>
  85. * src/slots.c (slot_token_manufacturer): Update list.
  86. 2009-04-23 Werner Koch <wk@g10code.com>
  87. * src/error-mapping.c (scute_gpg_err_to_ck): Add mappings to
  88. CKR_PIN_INCORRECT and CKR_PIN_LOCKED.
  89. 2008-12-03 Marcus Brinkmann <marcus@g10code.de>
  90. * configure.ac: Enable AC_CONFIGU_MACRO_DIR.
  91. * m4/ltsugar.m4, m4/libtool.m4, m4/ltversion.m4,
  92. m4/lt~obsolete.m4, m4/ltoptions.m4: New files.
  93. * config.guess, config.sub, ltmain.sh, configure.ac: Updated.
  94. 2008-10-29 Marcus Brinkmann <marcus@g10code.de>
  95. * configure.ac (_ASSUAN_ONLY_GPG_ERRORS): Define it.
  96. * src/agent.c (default_inq_cb): Change return type to gpg_error_t
  97. to silence gcc -W warning.
  98. * src/cert-gpgsm.c (search_certs, export_cert_cb): Change type of
  99. argument to silence gcc -W warning.
  100. * src/p11-findobjects.c (CK_DEFINE_FUNCTION): Add explicit cast to
  101. silence gcc -W warning.
  102. * src/table.c (struct scute_table): Change signedness of
  103. FIRST_FREE and LAST_USED members to silence gcc -W warning.
  104. (scute_table_alloc): Change signedness of IDX for the same reason.
  105. * tests/t-getslotinfo.c, tests/t-getsessioninfo.c,
  106. tests/t-getmechanismlist.c, tests/t-auth.c,
  107. tests/t-getattribute.c, tests/t-opensession.c,
  108. tests/t-getslotlist.c, tests/t-getmechanisminfo.c,
  109. tests/t-support.h, tests/t-closeallsessions.c,
  110. tests/t-findobjects.c, tests/t-gettokeninfo.c: Change signedness
  111. of some variables to silence gcc -W warnings.
  112. 2008-10-21 Marcus Brinkmann <marcus@g10code.com>
  113. * src/slots.c (slots_update_slot): Ignore card errors.
  114. 2008-10-01 Marcus Brinkmann <marcus@g10code.com>
  115. * src/agent.c (agent_connect): Set assuan log stream.
  116. * src/p11-initialize.c: Include "debug.h".
  117. (C_Initialize): Call _scute_debug_init.
  118. * src/Makefile.am (sources): Add debug.c.
  119. * src/debug.c: New file.
  120. * src/debug.h: Rewritten.
  121. * src/agent.c, src/cert-gpgsm.c, src/cert-object.c,
  122. src/slots.c, src/error-mapping.c: More or improved or
  123. adjusted debug output.
  124. 2008-09-30 Marcus Brinkmann <marcus@g10code.com>
  125. * src/cert-object.c [!CERT_PARSING]: Disable some certificate
  126. parsing code. Unfortunately, we can't get rid of all of it for
  127. now.
  128. 2008-09-30 Marcus Brinkmann <marcus@g10code.com>
  129. * src/get-path.c (find_program_in_inst_dir): New function.
  130. (get_gpgsm_path, get_gpg_agent_path): Use it to check in install dir.
  131. 2008-09-30 Werner Koch <wk@g10code.de>
  132. * src/Makefile.am (scute_DEPENDENCIES): Use .libs/versioninfo.o
  133. * AUTHORS (License): New.
  134. * Makefile.am (AUTOMAKE_OPTIONS): Do not distribute a gzip tarball.
  135. (EXTRA_DIST): Distibute autogen.sh and README.SVN.
  136. * README.CVS: Replace by README.SVN.
  137. * configure.ac: Update bug address and some comments.
  138. * autogen.sh: Update.
  139. 2008-09-29 Marcus Brinkmann <marcus@g10code.com>
  140. * src/gpgsm.c (struct search): New member WITH_CHAIN.
  141. (search_cb): Only load chain if WITH_CHAIN is true.
  142. (scute_gpgsm_get_cert): Call search_cb in the agent code path.
  143. 2008-09-29 Marcus Brinkmann <marcus@g10code.com>
  144. * src/slots.c (MIN): Remove macro.
  145. (slot_token_maxpinlen, slot_token_pincount): Do not consider
  146. second pincount, which meaning depends on the card version.
  147. 2008-09-26 Marcus Brinkmann <marcus@g10code.de>
  148. * src/agent.c: Include "cert.h".
  149. (GET_CERT_INIT_SIZE): New symbol.
  150. (struct get_cert_s): New struct.
  151. (get_cert_data_cb, scute_agent_get_cert): New functions.
  152. * src/gpgsm.c: Include "agent.h".
  153. (scute_gpgsm_get_cert): Take extra argument NO. Use it to get the
  154. certificate directly from the card, if possible.
  155. * src/gpgsm.h (scute_gpgsm_get_cert): Add extra argument NO to
  156. prototype.
  157. * src/slots.c (slot_init): Pass extra argument to
  158. scute_gpgsm_get_cert invocation.
  159. * src/cert-object.c (scute_attr_prv, scute_attr_cert): Don't use
  160. the fpr, timestamp and expire field of a certificate for now.
  161. 2008-09-23 Marcus Brinkmann <marcus@g10code.de>
  162. * src/agent.c (GET_CERT_INIT_SIZE): New symbol.
  163. (struct get_cert_s): New struct.
  164. (get_cert_data_cb, scute_agent_get_cert): New functions.
  165. 2008-09-03 Marcus Brinkmann <marcus@g10code.com>
  166. * src/Makefile.am (.rc.o): New rule.
  167. * src/Makefile.am (EXTRA_DIST): Add stpcpy.h.
  168. 2008-09-02 Marcus Brinkmann <marcus@g10code.com>
  169. * configure.ac: Post-release cleanup.
  170. * doc/website/download.xhtml: Update.
  171. 2008-09-02 Marcus Brinkmann <marcus@g10code.com>
  172. * Released version 1.2.0.
  173. * doc/manual/Makefile.am (CLEANFILES): Add $(images_eps).
  174. (images_eps): New variable.
  175. (scute.dvi): Depend on $(images_eps) instead of $(images_pdf).
  176. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  177. * src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.
  178. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  179. * src/agent.c (gnupg_allow_set_foregound_window)
  180. [!HAVE_W32_SYSTEM]: Define it.
  181. 2008-08-23 Marcus Brinkmann <marcus@g10code.com>
  182. * src/Makefile.am [HAVE_W32_SYSTEM]: Build autonomous DLL.
  183. * src/dllmain.c (DllMain): New file.
  184. * src/cert-gpgsm.c: Include "debug.h". Use
  185. assuan_pipe_connect_ext instead of assuan_pipe_connect everywhere.
  186. * src/agent.c (WINVER) [HAVE_W32_SYSTEM]: Define symbol.
  187. [HAVE_W32_SYSTEM]: Include <windows.h>. Do this before including
  188. <assuan.h>.
  189. (gnupg_allow_set_foregound_window): New function.
  190. (agent_connect): Use Sleep() instead of _sleep().
  191. (default_inq_cb): New function, and use it in all transactions.
  192. (agent_configure): Don't bail out if ttytname is not defined. Set
  193. allow-pinentry-notify.
  194. * tests/t-support.h [_WIN32]: Include <windows.h>.
  195. (init_cryptoki) [_WIN32]: Call WSAStartup.
  196. 2008-08-21 Marcus Brinkmann <marcus@g10code.com>
  197. * src/scute.def: Start at @1 instead of @0.
  198. 2008-08-21 Marcus Brinkmann <marcus@g10code.com>
  199. * src/agent.c (agent_configure): Fix cut and paste error.
  200. 2008-08-11 Marcus Brinkmann <marcus@g10code.com>
  201. * src/agent.c (spawn_process_detachted) [! HAVE_W32_SYSTEM]: Remove.
  202. (agent_configure): Ignore error with old versions of gpg-agent.
  203. 2008-08-08 Marcus Brinkmann <marcus@g10code.de>
  204. * configure.ac: Update svn macros.
  205. (BUILD_REVISION, BUILD_FILEVERSION, BUILD_TIMESTAMP): New.
  206. (AC_CONFIG_OUTPUT): Add src/versioninfo.rc.
  207. (GPG_AGENT_DEFAULT, GPG_AGENT): New.
  208. (AC_REPLACE_FUNCS): Add vasprintf and stpcpy.
  209. (AC_CHECK_FUNCS): Add ttyname, localtime_r and timegm.
  210. * src/stpcpy.h, src/stpcpy.c, src/realloc.c: New file from gnulib.
  211. * src/vasprintf.c: New file from libiberty.
  212. * src/support.h [!HAVE_STPCPY]: Include "stpcpy.h".
  213. [!HAVE_TTYNAME]: Define simple replacement function.
  214. (get_gpgsm_path, get_gpg_agent_path)
  215. (default_homedir, make_filename): New prototypes.
  216. * src/Makefile.am: Add W32 support.
  217. (libscute_la_SOURCES): Add get-path.c.
  218. (EXTRA_DIST): Add versioninfo.rc.in.
  219. * src/versioninfo.rc.in: New file.
  220. * src/get-path.c: New file.
  221. * src/agent.c (PATHSEP_C): New macro.
  222. (build_w32_commandline_copy)
  223. (build_w32_commandline) [HAVE_W32_SYSTEM]: New functions.
  224. (spawn_process_deatched): New function.
  225. (agent_connect): Start gpg-agent if it is not running yet.
  226. (agent_configure): Also pass xauthority and pinentry-user-data.
  227. * src/cert-gpgsm.c (COMPAT_FALLBACK) [!HAVE_W32_SYSTEM]: New
  228. macro.
  229. (export_cert_compat) [!COMPAT_FALLBACK]: Remove.
  230. (export_cert) [!COMPAT_FALLBACK]: Don't call export_cert_compat.
  231. Don't create (unused) output pipe cruft.
  232. * src/cert-object.c (time_to_ck_date) [!HAVE_LOCALTIME_R]: Fall
  233. back to localtime.
  234. * tests/t-getslotinfo.c (main) [WIN32]: Call _sleep instead sleep.
  235. * src/cryptoki.h (CRYPTOKI_EXPORTS): Define symbol.
  236. * src/error-mapping.h: Do not include <error.h>.
  237. (scute_sys_to_ck): Change type of ERR to int.
  238. * src/error-mapping.c: Do not include <error.h>.
  239. (scute_sys_to_ck): Change type of ERR to int.
  240. * src/slots.c (slot_create_session): Change type of ERR to int.
  241. 2007-05-03 Marcus Brinkmann <marcus@g10code.de>
  242. Released version 1.1.0.
  243. * doc/manual/Makefile.am (images_pdf, CLEANFILES): New variables.
  244. (scute.dvi, scute.pdf): New dependencies.
  245. (%.eps, %.pdf): New rules.
  246. * configure.ac: Check for convert and epstopdf.
  247. * doc/manual/scute.texi (Authentication With Service): Avoid
  248. @indicateurl in TeX output, as this seems to be broken (in
  249. texi2dvi 1.34).
  250. * doc/manual/Makefile.am (images, EXTRA_DIST): New variables.
  251. 2007-04-30 Marcus Brinkmann <marcus@g10code.de>
  252. * src/agent.h (scute_agent_is_trusted): New prototype. Include
  253. <stdbool.h>.
  254. * src/agent.c (scute_agent_is_trusted): New implementation.
  255. * src/cert.h (struct cert): New member IS_TRUSTED.
  256. * src/cert-gpgsm.c (export_cert): Set CERT->is_trusted.
  257. * src/cert-object.c (scute_attr_cert): Set CKA_TRUSTED to
  258. CERT->is_trusted.
  259. * tests/t-getattribute.c: Support new option '--printable'.
  260. * src/table.c (scute_table_dealloc): Return, but not a value.
  261. 2007-02-09 Marcus Brinkmann <marcus@g10code.de>
  262. * src/pkcs11.h: Add definitions for SHA.
  263. 2006-12-17 Marcus Brinkmann <marcus@g10code.de>
  264. * src/pkcs11.h: Minor cosmetic changes. Require CRYPTOKI_GNU now
  265. to switch on the GNU API, and do not check what CRYPTOKI_COMPAT is
  266. defined to, just if it is defined at all.
  267. * src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
  268. CRYPTOKI_FORCE_WIN32] at the end.
  269. Submitted by Alon Bar-Lev.
  270. 2006-12-11 Marcus Brinkmann <marcus@g10code.de>
  271. * src/pkcs11.h (CKO_VENDOR_DEFINED): Fixed syntax error.
  272. 2006-12-10 Marcus Brinkmann <marcus@g10code.de>
  273. * configure.ac (NEED_GPG_ERROR_VERSION): Bump to 1.4.
  274. * src/pkcs11.h [CRYPTOKI_COMPAT]: Rewrote the compatibility layer.
  275. 2006-12-09 Marcus Brinkmann <marcus@g10code.de>
  276. * src/pkcs11.h [__cplusplus]: Protect with extern "C".
  277. Do not use the C++ keyword "template" in parameter lists.
  278. Submitted by Alon Bar-Lev.
  279. * src/pkcs11.h [__WIN32]: Changed to [_WIN32 ||
  280. CRYPTOKI_FORCE_WIN32].
  281. (ck_rv_t): Changed to unsigned long.
  282. (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR,
  283. CRYPTOKI_VERSION_REVISION): New macros.
  284. (CKO_VENDOR_DEFINED, CKH_VENDOR_DEFINED, CKK_VENDOR_DEFINED,
  285. CKC_VENDOR_DEFINED, CKA_VENDOR_DEFINED, CKM_VENDOR_DEFINED,
  286. CKF_EXTENSION, CKR_VENDOR_DEFINED): Add cast to suppress compiler
  287. warning.
  288. Submitted by Alon Bar-Lev.
  289. * src/cryptoki.h (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR):
  290. Removed.
  291. 2006-11-30 Marcus Brinkmann <marcus@g10code.de>
  292. * m4/autobuild.m4: New file.
  293. * configure.ac: Invoke AB_INIT.
  294. 2006-11-29 Marcus Brinkmann <marcus@g10code.de>
  295. * configure.ac (CFLAGS): Remove variable.
  296. 2006-11-27 Marcus Brinkmann <marcus@g10code.de>
  297. * src/pkcs11.h: Add more definitions provided by Andreas Jellinghaus.
  298. * README (Copyright and License): Update copyright notice. Also
  299. for all other files.
  300. * AUTHORS (Maintainer): Removed RSA Security Inc.
  301. * include/pkcs11t.h, include/pkcs11f.h, include/pkcs11.h,
  302. include/disclaimer.txt, include/cryptoki-w32.h,
  303. include/cryptoki-generic.h, include/README, include/Makefile.am:
  304. Files removed.
  305. * configure.ac (AC_CONFIG_FILES): Removed include/Makefile.
  306. * Makefile.am (SUBDIRS): Removed include directory.
  307. 2006-11-24 Marcus Brinkmann <marcus@g10code.de>
  308. * src/pkcs11.h: New file.
  309. * src/Makefile.am (libscute_la_SOURCES): Add pkcs11.h.
  310. * src/cryptoki.h: Include "pkcs11.h" instead of original PKCS #11
  311. header file.
  312. * tests/t-support.h (mechanism_type_str): Remove most mechanisms.
  313. 2006-11-23 Marcus Brinkmann <marcus@g10code.de>
  314. * src/cert-gpgsm.c (search_certs_line): Don't overwrite CERT->uid.
  315. 2006-11-21 Marcus Brinkmann <marcus@g10code.de>
  316. * src/cert-gpgsm.c (search_certs_line): Fix off-by-one error.
  317. (export_cert_cb): Fix bug if EXP->buffer_size is 0.
  318. * src/cert-gpgsm.c (cert_reset): Free CERT->cert_der if set.
  319. (export_cert): Reimplement using data channel.
  320. (export_cert_compat): This contains the old version for
  321. compatibility.
  322. * src/cert.h (MAX_CERT_SIZE): Macro removed.
  323. (struct cert): Changed member CERT_DER into a pointer.
  324. * configure.ac (AC_CONFIG_FILES): Add doc/manual/Makefile.
  325. * doc/Makefile.am (SUBDIRS): New variable.
  326. * doc/manual/Makefile, doc/manual/scute.texi, doc/manual/gpl.texi,
  327. doc/manual/mdate-sh, doc/manual/texinfo.tex,
  328. doc/manual/firefox-cm.png, doc/manual/firefox-cm-view-detail.png,
  329. doc/manual/firefox-cm-view.png,
  330. doc/manual/firefox-dm-load-after.png,
  331. doc/manual/firefox-dm-load-before.png,
  332. doc/manual/firefox-dm-load.png,
  333. doc/manual/firefox-dm-token-present.png,
  334. doc/manual/firefox-pref.png, doc/manual/firefox-pref-view.png: New
  335. files.
  336. 2006-11-11 Marcus Brinkmann <marcus@g10code.de>
  337. * Released version 1.0.0.
  338. 2006-11-11 Marcus Brinkmann <marcus@g10code.de>
  339. * src/error-mapping.c (scute_gpg_err_to_ck): Report error on debug
  340. stream.
  341. * src/slots.c (add_object): New function.
  342. (slot_init): Rewritten using add_object.
  343. * src/gpgsm.c: Include "gpgsm.h".
  344. (struct search): Replace members ATTRP, ATTR_COUNTP, PRV_ATTRP,
  345. PRV_ATTR_COUNTP by CERT_GET_CB, HOOK.
  346. (search_cb): Rewritten to add all certificates for a certain key
  347. (scute_gpgsm_get_cert): Take a callback function instead of
  348. attribute pointers.
  349. * gpgsm.h (scute_gpgsm_get_cert): Adjust prototype.
  350. and also the certificate chain.
  351. * src/cert.h (scute_gpgsm_search_certs_by_fpr): New prototype.
  352. (struct cert): New member chain_id.
  353. * src/cert-gpgsm.c (struct search_ctx_by_grip): Rename to ...
  354. (struct search_ctx): ... this. Rename field GRIP to PATTERN, and
  355. add new field FIELD.
  356. (search_certs_by_grip): Rename function to ...
  357. (search_certs): ... this.
  358. (scute_gpgsm_search_certs_by_fpr): Change user of the above.
  359. (scute_gpgsm_search_certs_by_fpr): New function.
  360. (search_certs_line): Store chain ID.
  361. 2006-11-07 Marcus Brinkmann <marcus@g10code.de>
  362. * src/p11-gettokeninfo.c (C_GetTokenInfo): Fix assignment.
  363. 2006-11-06 Marcus Brinkmann <marcus@g10code.de>
  364. * doc/website/format/web.css: Set margin to 0.
  365. * configure.ac (AC_CONFIG_FILES): Add doc/Makefile.
  366. Makefile.am (SUBDIRS): Add doc/.
  367. doc/, doc/website/, doc/website/format: New directories.
  368. doc/Makefile.am, doc/website/index.xhtml,
  369. doc/website/documentation.xhtml, doc/website/download.xhtml,
  370. doc/website/contact.xhtml, doc/website/format/web.css,
  371. doc/website/format/scute-logo.svg,
  372. doc/website/format/scute-border.jpg: New files.
  373. 2006-10-30 Marcus Brinkmann <marcus@g10code.de>
  374. * configure.ac (PACKAGE, VERSION): Define these variables.
  375. * src/Makefile.am (libscute_la_CPPFLAGS): Fix include path for
  376. VPATH builds.
  377. * configure.ac (VERSION_MAJOR, VERSION_MINOR): New variable
  378. definitions.
  379. * src/gpgsm.h: Fix syntax error.
  380. * src/table.c, src/table.h: Rewritten.
  381. * src/slots.c: Reorganized and rewritten to use the new table
  382. interface. Include gpgsm.h.
  383. * src/p11-signinit.c, src/p11-sign.c, src/p11-getslotlist.c,
  384. src/p11-getsessioninfo.c, src/p11-getmechanismlist.c,
  385. src/p11-getattributevalue.c, src/p11-findobjectsinit.c,
  386. src/p11-findobjectsfinal.c, src/p11-findobjects.c,
  387. src/p11-closesession.c: Adjust callers.
  388. 2006-10-26 Marcus Brinkmann <marcus@g10code.de>
  389. * src/settings.h: Require VERSION_MAJOR and VERSION_MINOR to be
  390. defined.
  391. * src/p11-getinfo.c (CRYPTOKI_VERSION_MAJOR,
  392. CRYPTOKI_VERSION_MINOR): Move macros to ...
  393. * src/cryptoki.h (CRYPTOKI_VERSION_MAJOR, CRYPTOKI_VERSION_MINOR):
  394. ... here
  395. * src/gpgsm.c (gpgsm_get_cert): Rename to ...
  396. (scute_gpgsm_get_cert): ... this.
  397. * src/gpgsm.h: New file.
  398. * src/Makefile.am (libscute_la_SOURCES): Add gpgsm.h.
  399. * src/slots.c (gpgsm_get_cert): Remove prototype.
  400. (slots_update_slot): Call scute_gpgsm_get_cert, not gpgsm_get_cert.
  401. * src/error-mapping.c (scute_gpg_err_to_ck): Map GPG_ERR_NO_AGENT
  402. to CKR_GENERAL_ERROR.
  403. * src/agent.h (struct agent_card_info_s): Remove member error.
  404. Prefix external functions with scute_ if not already done so, also
  405. for callers.
  406. * src/agent.c: Include <stdarg.h>. Replace one-letter variable
  407. names by proper ones. Replace assuan_error_t with gpg_error_t
  408. everywhere.
  409. (agent_connect, agent_simple_cmd, agent_configure): New functions.
  410. (scute_agent_initialize): Use these new functions.
  411. ing of common code. Lots of cleanups.
  412. (scute_agent_finalize): Clear agent_ctx. Add debug message.
  413. 2006-10-13 Werner Koch <wk@g10code.com>
  414. * src/cert-gpgsm.c (MAX_LINE_LEN): Increased.
  415. * src/locking.c: Include string.h for memset declaration.
  416. * configure.ac: New option --disable-optimization.
  417. 2006-08-02 Marcus Brinkmann <marcus@g10code.de>
  418. * Initial version.
  419. Copyright 2006, 2007, 2008 g10 Code GmbH
  420. This file is free software; as a special exception the author gives
  421. unlimited permission to copy and/or distribute it, with or without
  422. modifications, as long as this notice is preserved.
  423. This file is distributed in the hope that it will be useful, but
  424. WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  425. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.