1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781
|
2003-03-10 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-ask.c: Usage of strcmp needs <string.h>.
* apgp.c (main): Pacify gcc with braces.
2003-02-09 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (secret_ask_SOURCES): This was missing due to a typo.
* debian/Makefile.am (EXTRA_DIST): Distribute postinst and prerm.
2003-02-08 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Start new version.
Use AC_LIBOBJ() instead of frobbing LIBOBJS directly (due to new
autoconf).
* autogen.sh: Call gettextize with --intl, and before aclocal.
* configure.in: Put config.h.in descriptions for XMESSAGE,
HAVE_GTK, USE_CAPABILITIES, QUERY_PROGRAM here.
* acinclude.m4: Put config.h.in description for HAVE_BROKEN_MLOCK
here.
* acconfig.h: Removed obsolete file.
* acinclude.m4: Removed gettext macros.
The following changes made by/for new gettext:
* Makefile.am: Replace @INTLLIBS@ with @LIBINTL@ throughout.
(SUBDIRS): Add m4.
(ACLOCAL_AMFLAGS): New variable.
(EXTRA_DIST): Add config.rpath mkinstalldirs.
* configure.in (AC_OUTPUT): Add m4/Makefile.
2001-07-14 Robert Bihlmeyer <robbe@orcus.priv.at>
* agpg.c (main): Would complain (harmlessly) even on STATUS_OK.
Spotted by Daniel Silverstone <dsilvers@digital-scurf.org>.
* apgp.c (main): Ditto.
2001-07-03 Robert Bihlmeyer <robbe@orcus.priv.at>
* 1.0.3 released.
* configure.in: Bumped version.
2001-06-21 Robert Bihlmeyer <robbe@orcus.priv.at>
* client.c (main): When the server returned FAIL, exit with code 2
instead of the standard EXIT_FAILURE.
* configure.in: Would not cope with spaces in --enable-debug
argument.
* agent.c (do_get): I forgot pclose(), and thus accumulated an
army of darkness.
We were also leaking secure memory, by Jove!
Also added a proper error exit when running out of secmem.
2001-03-18 Robert Bihlmeyer <robbe@orcus.priv.at>
* 1.0.2 released.
* configure.in, NEWS: Bumped version.
* autogen.sh: Make gettextize and automake create copies so that
the Debian source doesn't contain broken links.
2001-02-22 Robert Bihlmeyer <robbe@orcus.priv.at>
* 1.0.1 released.
* configure.in, NEWS: Bumped version.
* Makefile.am (distclean-local): New target, removes some remnants
of the build process.
2001-02-12 Robert Bihlmeyer <robbe@orcus.priv.at>
* 1.0.0 released. Woo-hoo!
* configure.in, NEWS: Bumped version.
2001-02-04 Robert Bihlmeyer <robbe@orcus.priv.at>
* agent.c (make_tmpdir): Honor $TMPDIR.
(agent): Would exit on every minor problem. Now, we just close the
offending connection.
Ignore SIGPIPE, so that EPIPE will close connection.
2001-01-11 Robert Bihlmeyer <robbe@orcus.priv.at>
* secmem.c: Move one include statement so that the thing compiles.
* secret-query.c (main): Minor source cosmetics.
2000-11-16 Robert Bihlmeyer <robbe@orcus.priv.at>
* gtksecentry.c (gtk_secure_entry_insert_text): Secured a couple
of memory (de)allocations that were missed. Thanks to John Steele
<jhs28@eng.cam.ac.uk> for spotting these.
2000-11-10 Robert Bihlmeyer <robbe@orcus.priv.at>
* Thoughts: Removed in favor of new TODO.
* README: Remove content and refer to doc/manual.info instead.
* agent.c (do_get): Would burn badly on a premature exit of the
query program (which would occur routinely if you selected /cancel/).
2000-10-25 Robert Bihlmeyer <robbe@orcus.priv.at>
* memory.h: Include sys/types.h for size_t.
2000-10-08 Robert Bihlmeyer <robbe@orcus.priv.at>
* README: Removed apology about missing documentation.
Updated paragraph about Linux capability patch.
Typo & Refill.
2000-10-03 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.9 released.
* Makefile.am (EXTRA_DIST): Distribute BUGS (the file, that is).
* configure.in, NEWS: Bumped version.
* Makefile.am, configure.in: Add debian subdir.
* README: Recommend GTK+.
Update list of checked platforms.
2000-10-02 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c (ok): Simplify.
Put empty line between headers and secret.
(usage): Document '--help' and '--version'.
* agent.c (do_get): Use enhanced secret-query output to fill in
options.
2000-10-01 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c (main): Clarify error.
* client.c (query_options): New global variable.
(main): New option '--query-options' to pass options to the query
program.
(xgetpass): Use it.
* agent.c (main): New option '--query-options' to pass options to
the query program.
(do_get): Use 'query_options'.
* acconfig.h, configure.in: Add QUERY_PROGRAM definition.
* client.c: Remove here.
* agent.c (do_get): Use it here, too.
* secret-query.c (main): New option '--no-global-grab' introduced,
that prevents keyboard grabbing unless the window has focus.
2000-09-11 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c (usage): Add two missing pieces of "\n\".
* agent.c (main): --nofork is now the default, and the option is
deprecated. New option --fork added to turn forking on again.
Close stdout (and stderr unless debugging) even when not forking,
so that normal usage inside eval is still possible.
(agent): Exit gracefully on HUP, so that logging out now kills the
agent.
* README (Contact Information): Old URL - duh!
(Using Secret Agent): We no longer fork per default.
* Makefile.am (lib/libutil.a): New target, allows targets that not
automatically recurse (but still depend on libutil.a) to succeed.
2000-07-20 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c (usage): New function.
(main): Parse options: debug, enhanced, help, version.
Turn on locale support.
If enhanced, insert widgets to ask for timeout and insurance.
(ok): If enhanced, print more information on exit.
(grab_keyboard): Die if grab was unsuccessful.
2000-05-31 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.8 released.
* configure.in, NEWS: Bumped version.
* Makefile.am (SUBDIRS): Include doc.
* configure.in, acconfig.h: Check for ssize_t.
Check for vsnprintf(), strdup().
Generate doc/Makefile.
* apgp.c, agpg.c, agentlib.c, util.c: Include more stuff.
* agent.c (do_get): Use asprintf() instead of snprintf() so we
don't need to roll our own for yet another function.
Fix some includes.
* acinclude.m4: gettext macros copied from automake and fixed.
2000-05-30 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in, Makefile.am: Properly include doc subdir.
2000-05-29 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in, acconfig.h: Add test for XMESSAGE path.
* client.c (main): Decode command from string to integer code
first, then evaluate that in ifs.
* secret-ask.c: New file, external ask-for-confirmation utility.
* configure.in, Makefile.am: Add secret-ask to programs being
built when GTK is available. Rename QUERY to more descriptive
GTK_PROGRAMS.
* agent.c (do_get): If GTK is available, try executing secret-ask
first.
Only put the comment into the insure-question if there is a
comment.
(main): --csh was missing from usage message.
2000-04-23 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c (constrain_size): Lower window max_width to
accomodate bugs in GTK and Scwm.
* agent.c (main): Set x_enabled if X appears to be available.
Use it to selectively make FLAGS_INSURE supported.
(do_get): Use it instead of testing at every call.
(do_put): Requests containing unsupported flags fail.
(forget_old_stuff): Would not set next_deadline correctly.
(do_get): Implement FLAGS_INSURE.
* client.c (main): "list" format changed so that comment is to the
far right. Display the deadline as proper date/time, too.
1999-11-11 Robert Bihlmeyer <robbe@orcus.priv.at>
* agent.c (next_deadline): New global variable, holds time when
next secret has to be killed.
(store): Keep it up-to-date.
(forget_old_stuff): New function, reaps secrets ready to kill,
keeps next_deadline updated.
(agent): Use it on all secrets, whenever a deadline is active.
1999-11-08 Robert Bihlmeyer <robbe@orcus.priv.at>
* agent.h (request_put): Add flags, deadline. Increase REQUEST_MAGIC.
(reply_get): Ditto, and increase REPLY_MAGIC.
* agent.c (store): Store flags, deadline in reply.
(do_put): Hand flags, deadline from request on to store().
(do_get): Store on-demand queried secrets without deadline or
special flags, for now.
(agent): Do not ignore obsolete clients, return an error reply.
* agentlib.c (agent_put): Add flags, deadline arguments, and copy
them into the request.
* agentlib.h (agent_put): Update prototype.
* * client.c (main): Added --time-to-live (-t) and --insure (-i)
options, influencing PUT's deadline and flags, respectively.
(main): Change list format to include new attributes.
1999-11-05 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: <getopt.h> check had redundant definition.
* acconfig.h: Remove here, too.
* configure.in: Check for <inttypes.h>. If not found, check for
unsigned {int, long} sizes.
* agent.h: Either include <inttypes.h>, or try to define uint32_t
yourself.
Need to include "config.h".
1999-11-04 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (signed-dist): New rule, generates sig for dist.
(%.sig): New rule, for detached signatures in general.
* configure.in: Check for ulong.
* acconfig.h: Document it.
* secmem.c: Unconditionally defining it is no longer necessary
here. But do include <sys/types.h> in all cases.
* 0.7 released.
* secmem.c: ulong is not defined on all systems.
* agent.h: <inttypes.h> should define `uint32_t' as per Unix98, so
we use that.
1999-11-02 Robert Bihlmeyer <robbe@orcus.priv.at>
* agent.h: Augmented requests and replies with magic numbers.
Data structures heavily commented.
All structures and enums typedef'd.
* agent.c: Adapted.
(store): Set magic number in stored reply.
(do_put): Set magic number in reply.
(do_delete): Ditto.
(do_list): Ditto.
(agent): Check magic number in request.
* agentlib.c: Adapted.
(send_request): Set magic number in request. Check it in reply.
* agentlib.h: Adapted.
* agpg.c: Adapted.
* apgp.c: Adapted.
* client.c: Adapted.
1999-10-31 Robert Bihlmeyer <robbe@orcus.priv.at>
* secmem.c: Instead of defining ulong directly, include
<sys/types.h>
* secret-query.c (constrain_size): New function, puts constrains
on size of toplevel window.
(grab_keyboard): Removed protection against multiple calls.
(ungrab_keyboard): New function, cancelling a keyboard grab.
(main): Hang `grab_keyboard' onto map-event which makes it
actually work, hang `ungrab_keyboard' onto unmap-event.
Hang `constrain_size' onto size-request.
* secmem.c: ulong was undefined on some systems.
1999-10-19 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (install-exec-local): Ignore setcap errors.
* apgp.c: New program, based on agpg.c, but for pgp2.6.
* Makefile.am (bin_PROGRAMS, apgp_SOURCES): Added it.
* agpg.c (GPG): New constant.
(find_id, main): Use it throughout.
(find_id): Forgot to pclose on success.
* secret-query.c (main): Don't expand anything.
Use a button box for the buttons.
Prompt label can be overridden from the commandline.
* agent.c (do_get): Make spawned secret-query show the id.
* client.c (xgetpass): Pass prompt to secret-query.
(main): Include id in xgetpass prompt.
1999-10-14 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: setcap must be searched outside the usual user
PATH, too.
* Makefile.am (install-exec-local): Set cap_ipc_lock permitted on
installed binaries, if possible.
* agent.c (xdup2): New function, dup2 with error handling.
(move_fd): New function, moves fds.
(store): New function, abstracted out from do_put.
(do_put): Use it.
(do_get): If secret was not found, and DISPLAY is set, try to
query the user about it. If successful, store it.
(main): Route standard file descriptors to /dev/null rather than
just closing them. The latter would confuse children.
1999-10-13 Robert Bihlmeyer <robbe@orcus.priv.at>
* gtksecentry.c, gtksecentry.h: New files, being slightly modified
versions of GTK+'s gtkentry.[ch], spiffed up to use secure memory.
* secret-query.c (ok, unselect, main): Replace GtkEntry with
GtkSecureEntry.
(main): Initialize secure memory.
* Makefile.am (secret_query_SOURCES): Added gtksecentry.[ch].
* README (Security): New chapter.
* configure.in, acconfig.h: Check for POSIX capabilities, and the
setcap program.
* Makefile.am: Link LIBCAP to those binaries using secmem.c.
* util.h: Include <sys/types.h> for size_t.
1999-09-21 Robert Bihlmeyer <robbe@orcus.priv.at>
* secmem.c: Synced with gnupg-1.0 (top new feature: capabilities).
(log_fatal): New function, logs to stderr, and dies.
1999-09-08 Robert Bihlmeyer <robbe@orcus.priv.at>
* secmem.c (log_info): New function, logs to stderr.
* agent.c (agent): select() expects the number of fds, not the
highest fd. So remember that number.
* agent.c (agent): Don't use FD_SETSIZE, which is not defined on
all systems. Remember the number of the highest descriptor
instead.
* configure.in: Replace getline() instead of getdelim() because
this is the function we really need. Still check for getdelim(),
though - there are systems out there where this is provided, but
getline() is not.
1999-09-01 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.6 released.
* configure.in: Bump version.
* NEWS: Updated.
1999-08-31 Robert Bihlmeyer <robbe@orcus.priv.at>
* util.c (init_uids, lower_privs, raise_privs, drop_privs): New
functions, for setuid binaries, extracted from agent.c.
* util.h: Add prototypes for them.
* agpg.c (main): Use them.
* client.c (main): Ditto.
* agent.c (main): Ditto. Removed code that did the same.
Unconditionally include "asprintf.h" (it protects itself now).
1999-08-25 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (SUBDIRS): Process . before test so that "make
check" always builds all in . first.
1999-08-21 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c: Include "config.h".
* agent.h (reply_list_entry, reply_list): New reply structures.
* agent.c (send_list_entry): New function.
(do_list): First send number of entries, then each entry via
send_list_entry().
* agentlib.c (agent_list): Read entries returned by LIST request.
* client.c (main): Output all entries returned by agent_list().
* agentlib.c (agent_put): Don't construct PUT request in insecure
stack space.
1999-08-20 Robert Bihlmeyer <robbe@orcus.priv.at>
* NEWS: Bump patchlevel.
* configure.in: Bump patchlevel.
Check for missing setenv().
1999-08-09 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Check for strsignal().
* client-test: Obsoleted by test/client.
* Makefile.am (SUBDIRS): New subdirectory.
* configure.in (AC_OUTPUT): Add here, too.
* 0.5 released.
* README: Explain why secret-client will not output secrets to a
tty, and mention the cat-trick.
* agent.c (main): If seteuid is not available, don't use it and
issue a warning if running setuid.
* configure.in: Run together two REPLACE_FUNCS.
Check for seteuid.
* client-test: Mask out insecure memory warnings.
* agentlib.c (send_request): Let the calling functions reserve
space for the reply, but offer a simple way for simple requests.
(agent_get): Allocate secure memory.
* agent.c (main): Moved secmem_init() after the fork, since that
seemingly munlock's all pages.
Drop priviledges just in case somebody wants to install this
suid-root.
Flush stdout.
* agpg.c (find_id): Would reorder arguments.
Initialize opt_version.
(main): Initialize secure memory.
* Makefile.am (agpg_SOURCES): Link with secure memory module.
* client.c (usage): Fixed another program name reference.
1999-08-06 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Conditionally define HAVE_GTK.
* acconfig.h: Add here too.
* client.c (xgetpass): Use "secret-query" only if it was built.
(main): Don't output secret (GET command) to ttys.
* agpg.c (find_id): Also print own version if "--version" is given.
(main): Check agent_init() errors.
Print error if exec fails.
* agent.c (main): Added an option to produce csh-compatible
output.
* agent.c, client.c: Forgot the terminating NULL in long options.
Fixed the program names in usage and version output.
* agent.c (create_socket): AF_UNIX and PF_UNIX are Unix98, so
that's what we use. AF_LOCAL, PF_LOCAL removed.
* agentlib.c (agent_init): Ditto.
1999-08-05 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.4 released.
* configure.in: Bumped version.
Check for missing getdelim.
* cgpg: Removed, obsoleted by agpg.
* Makefile.am: Here, too.
* agpg.c (find_id): New function.
(main): Use it.
* Makefile.am (INCLUDES): Put GTK_FLAGS and GLIB_FLAGS here. It
is the easiest way for sources needing it, and it won't hurt those
that don't.
(agent.o): Explicit command removed accordingly.
1999-08-04 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Need double quoting in nested AC_MSG_WARN.
* client.c (xgetpass): If no tty is available, but a DISPLAY is,
fork off "secure-query" to read the secret.
Put the fgets into a loop that keeps reading until all of the
secret is read.
* client-test: Unset DISPLAY, so that "secret-query" is never used.
1999-08-03 Robert Bihlmeyer <robbe@orcus.priv.at>
* agpg.c: New file, first cut at a C version of the gpg wrapper,
written in a hurry (20 keys waiting to be signed, and a growling
stomach).
* Makefile.am: Add it to built programs.
(LDADD): New default.
(secret_client_LDADD): Removed, since it was identical to default.
1999-08-01 Robert Bihlmeyer <robbe@orcus.priv.at>
* secret-query.c: New program, queries the user for a password.
* Makefile.am (bin_PROGRAMS): Added it.
* configure.in: Check for GTK+, build "secret-query" only when
that is available.
* cgpg: Extra argument for ID is no longer necessary. cgpg will
scan the gpg args for switches that affect user-id, and determine
the right key itself. Per convention, the key-id is used by "GET".
* configure.in: The project name is now "secret-agent".
* Makefile.am: "agent" & "client" renamed to "secret-agent" &
"secret-client", respectively.
* client-test: Adapt to new names.
* Thoughts: Removed discussion of other names.
Added indication of which things already work.
* agent.c (make_tmpdir): Removed occurance of "gpg-agent."
* README: First proper version.
* client-test: Context diffs are more portable then unified diffs.
* agent.c, agent.h, agentlib.c, agentlib.h, client.c, memory.h,
util.c, util.h: Banner updated to new name.
1999-07-29 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Check for missing asprintf.
Check if -lsocket is needed.
* secmem.c (secmem_dump_stats): Replace usage of ulong.
* Makefile.am (INCLUDES): Add the lib subdirectory to include search.
* agent.c: Forgot to include <string.h>.
Include RYO asprintf header if this function is missing.
For the sake of compatibility, provide a definition for AF_LOCAL,
PF_LOCAL, if missing.
* agentlib.c: Ditto.
1999-07-28 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (client_SOURCES): Add "secmem.c", "memory.h".
* client.c (xgetpass): Use secmem_malloc() instead of RYO.
(main): Init and shutdown secmem.
1999-07-27 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (agent_SOURCES): Add "secmem.c", "i18n.h", "memory.h".
(client_SOURCES): Add "i18n.h".
* client.c (main): Exit on agent_init() failure.
* agent.c (main): Init secmem.
Make --debug switch cumulative.
(cleanup): Shutdown secmem.
(do_put): Use secmem for storage of secrets.
(do_delete): Use secmem_free(). Since this wipes the memory on its
own, wipe() is superflous now.
(agent): Use secmem for inbound requests.
(delete_secret): New function, takes part of do_delete's
functionality.
(do_put): Use it to remove old versions stored under the same id.
(do_delete): Use it to delete secrets.
* memory.h: New file.
* secmem.c: New file, snarfed from GnuPG and modified slightly.
* acinclude.m4: New file.
* configure.in: (ALL_LINGUAS): Expanded list of available
languages. Most of them only have a few translations from gpg,
tough ...
getopt_long test was commented out for debugging,
and left such. Fixed.
Check for mlock.
* acconfig.h: Comment HAVE_BROKEN_MLOCK.
* cgpg: A space was missing.
* i18n.h: New file, centralizing the gettext macro defs.
* agent.c (BLIND): New macro, that blinds out a secret if debug
level is too low.
(do_put): Use it.
(do_get): Use it.
Include i18n.h.
* agentlib.c: Include i18n.h
* client.c (usage): New function.
Usage-message made gettext-friendly.
(xgetpass): Use perror() instead of fprintf().
(main): Use it.
Make comment an optional argument of PUT.
Include i18n.h.
1999-07-26 Robert Bihlmeyer <robbe@orcus.priv.at>
* Makefile.am (client_LDADD): Add lib/libutil.a for portability.
(agent_LDADD): Ditto.
(SUBDIRS): Add lib directory.
(bin_SCRIPTS): New with cgpg, so it gets installed, too.
* configure.in: Add lib/Makefile to output.
1999-07-24 Robert Bihlmeyer <robbe@orcus.priv.at>
* cgpg: New file.
* Makefile.am (EXTRA_DIST): Added it.
* agent.c: Moved inclusion of config.h before inclusion of
libintl.h since the latter needs HAVE_LC_MESSAGE.
* client.c: Ditto.
* clientlib.c: Ditto.
* client-test: Update for new client semantics.
* client.c (check_status): Use debugmsg(). Do nothing if not
debugging.
(xgetpass): New function, getpass replacement that uses mlock'ed
memory.
(main): PUT now asks for the secret rather then getting it from
the commandline.
GET prints only the secret to stdout.
* configure.in: Rearranged.
Check for socklen_t.
* acconfig.h: Added a definition for it.
* client.c: Include packaged getopt.h if the system doesn't provide
one.
* agent.c: Ditto.
(create_socket): Replace AF_FILE, PF_FILE with AF_LOCAL, PF_LOCAL
for portability.
* agentlib.c (agent_init): Ditto.
Explicitly cast addr to a sockaddr pointer.
* Makefile.am (client_LDADD): Added @INTLLIBS@.
(agent_LDADD): Ditto.
1999-07-19 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in: Check for getopt.h and getopt_long.
* acconfig.h (HAVE_GETOPT_H): New define.
* lib/getopt.c, lib/getopt1.c, lib/getopt.h: Added.
1999-07-18 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.2 released.
* NEWS: Updated.
* Makefile.am (agent.o): Mentioning the source explicitly does not
work for srcdir!=builddir.
* client.c (main): Function arguments are not always evaluated in
order, so drop the neat ++optind in favor of optind+1, optind+2,
etc.
* configure.in: Upped version.
1999-06-28 Robert Bihlmeyer <robbe@orcus.priv.at>
* util.h: Added multi-inclusion guard.
* agent.c Include "util.h".
(main): Forgot to exit at end.
(do_delete): Assume that value is a string and wipe it accordingly.
* configure.in (--enable-debug): New switch.
* agent.h (status_t): Added STATUS_COMM_ERR code.
Added multi-inclusion guard.
* client.c (main): Abstracted out most functionality into a
function library, namely:
* agentlib.c: New file.
* agentlib.h: New file.
* Makefile.am (client_SOURCES): Added agentlib.c, agentlib.h.
* Makefile.am (INCLUDES): GLIB_CFLAGS moved again, this time to
the agent.o target.
1999-06-15 Robert Bihlmeyer <robbe@orcus.priv.at>
* 0.1 released.
* Makefile.am (agent_CFLAGS): Removed - did not work.
(INCLUDES): Moved the GLIB stuff here.
1999-06-14 Robert Bihlmeyer <robbe@orcus.priv.at>
* configure.in (ALL_LINGUAS): Added `de'.
* agent.c (do_get): Added more debugmsgs.
(do_put): Wouldn't allocate enough for `value'.
(main): New option "--nofork" prevents forking.
Use macros for the std filedescriptor numbers.
Only close stderr if not debugging.
(main): Make Usage string gettext-friendly.
* client-test (cleanup): New function.
Call it on shell exit.
(client): New function.
Use it instead of calling client binary directly.
diff client output with expected one in GET testcases.
1999-06-13 Robert Bihlmeyer <robbe@orcus.priv.at>
* agent.c (failed_reply): New constant.
(do_list): Use it.
(do_put): The hash key was overwritten - strdup it.
Construct a GET reply and save that in the hash.
(do_get): Just send the preconstructed reply if the id is present,
and failed_reply otherwise.
(do_delete): Actually free the hashed stuff.
* client.c: Exit with error if agent returned STATUS_FAIL.
* Makefile.am (EXTRA_DIST): Added autogen.sh, Thoughts,
client-test.
(TESTS): Added client-test.
(AUTOMAKE_OPTIONS): Added gnits.
|