summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2006-07-292006-07-29 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-0/+5
* secmem.c (init_pool): Close FD after establishing the mapping.
2006-07-26Collected changes - see ChangeLogsWerner Koch3-3/+3
2006-07-12Fixup email address by contributor.Marcus Brinkmann1-2/+2
2006-07-122006-07-12 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-8/+14
* ath.c (ath_mutex_destroy): Microoptimize destruction of unused statitically initialized mutexes. Suggested by Victor Stinner <haypo@inl.fr>.
2006-07-122006-07-12 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-2/+11
* gcrypt.h (GCRY_THREAD_OPTION_PTHREAD_IMPL, (GCRY_THREAD_OPTION_PTH_IMPL): Add missing initializers to suppress gcc warning. Submitted by Victor Stinner <haypo@inl.fr>.
2006-07-042006-07-04 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann4-5/+36
* ath.c: Avoid warning about double defined type byte and other hacks to let it build for W32 (backported from LIBGCRYPT-1-2-BRANCH). * ath.h, gcrypt.h, tests/benchmark.c, src/types.h: Likewise.
2006-07-042006-07-04 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-0/+52
* ath.c: Avoid warning about double defined type byte and other hacks to let it build for W32 (backported from LIBGCRYPT-1-2-BRANCH).
2006-07-042006-07-04 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-7/+8
* gcrypt.h: Revert last change, and instead: [_WIN32 || __WIN32__]: Do not include <sys/socket.h>, but <winsock2.h> and <ws2tcpip.h>. Suggested by Simon Josefsson <jas@extundo.com>.
2006-07-042006-07-04 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann4-3/+306
* Makefile.am (install-data-local, uninstall-local, %.lo, (install-def-file, uninstall-def-file): New targets. (LTRCCOMPILE, gcrypt_res, gcrypt_res_ldflag, no_undefined, (export_symbols, gcrypt_deps): New variables. * versioninfo.rc.in: New file. * libgcrypt.def: New file from ../w32-dll/libgcrypt.def.
2006-07-042006-07-04 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-0/+16
* configure.ac: Call gl_TYPE_SOCKLEN_T instead of the other socklen_t checks. m4/ 2006-07-04 Marcus Brinkmann <marcus@g10code.de> * sys_socket_h.m4, socklen.m4, onceonly.m4: New files from gnulib. src/ 2006-07-04 Marcus Brinkmann <marcus@g10code.de> * gcrypt.h [!HAVE_SYS_SOCKET_H]: Do not include sys/socket.h, but the appropriate windows socket header.
2006-06-21Changed xmalloc style calls to proper malloc calls with error returns atWerner Koch3-82/+193
many (but not all) places.
2006-04-28Changed value of GCRY_MD_SHA224 from 306 to 11.Werner Koch2-8/+22
2006-04-22cipher/ChangeLog:Moritz Schulte3-1/+21
2006-04-22 Moritz Schulte <moritz@g10code.com> * random-daemon.c (_gcry_daemon_initialize_basics): New argument: SOCKETNAME. Passing on to connect_to_socket() if non-NULL. (connect_to_socket, writen, readn, call_daemon): New functions. (_gcry_daemon_randomize, _gcry_daemon_get_random_bytes) (_gcry_daemon_create_nonce): Call call_daemon(). (RANDOM_DAEMON_SOCKET): New symbol. (daemon_socket): New static variable. * random.h (_gcry_daemon_initialize_basics): New parameter: SOCKETNAME. (_gcry_set_random_daemon_socket): New declaration. * random.c (initialize_basics): Pass DAEMON_SOCKET_NAME to _gcry_daemon_initialize_basics. (_gcry_set_random_daemon_socket): New function, setting DAEMON_SOCKET_NAME. src/ChangeLog: 2006-04-22 Moritz Schulte <moritz@g10code.com> * gcrypt.h (enum gcry_ctl_cmds): New commands: GCRYCTL_SET_RANDOM_DAEMON_SOCKET, GCRYCTL_USE_RANDOM_DAEMON. * global.c (gcry_control): Handle new commands, calling _gcry_set_random_daemon_socket() and _gcry_use_random_daemon().
2006-04-01src/ChangeLog:Moritz Schulte3-3/+10
2006-04-01 Moritz Schulte <moritz@g10code.com> * gcrypt.h (gcry_ac_eme_pkcs_v1_5): Removed members: key, handle; added member: key_size. * secmem.c (MB_FLAG_ACTIVE): write braces around MB_FLAG_ACTIVE definition. cipher/ChangeLog: 2006-04-01 Moritz Schulte <moritz@g10code.com> * ac.c (eme_pkcs_v1_5_encode): Use KEY_SIZE directly, no need to call gcry_ac_key_get_nbits. (eme_pkcs_v1_5_decode): Likewise. (ac_es_dencode_prepare_pkcs_v1_5): Fill options_em structure with key_size. (_gcry_ac_data_dump, gcry_ac_data_dump): New functions. (_gcry_ac_data_to_sexp, _gcry_ac_data_from_sexp): More or less rewritten; changed S-Expression format so that it matches the one used in pubkey.c.
2006-03-17More changes.Werner Koch1-1/+1
2006-03-15Wrote random daemon and client.Werner Koch4-0/+1021
2006-03-10Applied pacthes from Brad Hards.Werner Koch3-2/+8
Note, that the HMAC tests for SHA-384 and SHA-512 are failing.
2005-11-02src/ChangeLogMoritz Schulte2-8/+13
src/gcrypt.h TODO cipher/pubkey.c cipher/cipher.c cipher/ChangeLog
2005-10-31src/ChangeLog:Moritz Schulte2-11/+54
2005-10-31 Moritz Schulte <moritz@g10code.com> * global.c: Added documentation.
2005-10-162005-10-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-12/+24
* global.c (global_init): Use gcry_error_t instead of gcry_err_code_t; use goto instead of if constructs.
2005-10-162005-10-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-1/+41
* stdmem.c: Inserted description of the layered memory management in Libgcrypt.
2005-10-162005-10-16 Moritz Schulte <moritz@g10code.com>Moritz Schulte3-19/+7
* g10lib.h: Removed GCC_ATTR_PURE macro definitions, since gcrypt.h does already contain such a macro named _GCRY_GCC_ATTR_PURE, which we can use here as well. Likewise for GCC_ATTR_MALLOC and _GCRY_GCC_ATTR_MALLOC. * stdmem.h: Use _GCRY_GCC_ATTR_MALLOC instead of GCC_ATTR_MALLOC. * secmem.h: Likewise.
2005-10-16src/ChangeLog:Moritz Schulte2-7/+20
2005-10-16 Moritz Schulte <moritz@g10code.com> * g10lib.h: Removed G10_I18N_H related check; it seems to be a GnuPG relict (Libgcrypt does not define this symbol anywhere). (FLAG_MODULE_DISABLED): Don't forget parantheses around shifted value.
2005-10-092005-10-09 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-0/+11
* global.c (gcry_control): Call global_init() after passing thread cbs to ath. global_init() MUST to be called AFTER passing the cbs to ath and BEFORE calling library functions, which make use of ath. This change combines cbs installing with ath initialization and thus removes the need to call other library initialization functions inbetween like e.g. gcry_check_version().
2005-10-01(no commit message)Moritz Schulte1-1/+1
2005-10-012005-10-01 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-1/+6
* ath.c: Assign copyright to FSF. * ath.h: Likewise.
2005-09-152005-09-15 Moritz Schulte <moritz@g10code.com>Moritz Schulte1-1/+1
* Makefile.am (EXTRA_DIST): Depend on README.SVN, not on README.CVS.
2005-06-252005-06-25 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-3/+7
* Makefile.am (pkgconfigdir, pkgconfig_DATA): Removed variables. * libgcrypt.pc.in: Removed file - we do not want to support a second, foreign configuration system.
2005-06-172005-06-17 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-1/+4
* global.c (gcry_xstrdup): Removed superfluous strcpy call.
2005-04-22ChangeLog:Moritz Schulte5-3/+33
2005-04-23 Moritz Schulte <moritz@g10code.com> * acinclude.m4 (TYPE_SOCKLEN_T): New type definition test; provided by Albert Chin. * configure.ac: Don't use $(CMD) as it's not portable; use `CMD` nstead. Simpler -lnsl/-lsocket test. Use TYPE_SOCKLEN_T test. Don't forget to set `random_modules' correctly. 2005-04-22 Moritz Schulte <moritz@g10code.com> * configure.ac: Added support for pkgconfig; provided by Albert Chin. cipher/ChangeLog: 2005-04-12 Moritz Schulte <moritz@g10code.com> * ac.c (_gcry_ac_io_write, _gcry_ac_io_read): Initialize err to make the compiler happy. Always use errno, now that gcry_malloc() is guaranteed to set errno on failure. (_gcry_ac_data_to_sexp): Don't forget to goto out after error in loop. (_gcry_ac_data_to_sexp): Remove unused variable: mpi_list; (_gcry_ac_data_to_sexp): Always deallocate sexp_buffer. (_gcry_ac_data_from_sexp): Don't forget to initialize data_set_new. (_gcry_ac_data_from_sexp): Handle special case, which is necessary, since gcry_sexp_nth() does not distinguish between "element does not exist" and "element is the empty list". (_gcry_ac_io_init_va): Use assert to make sure that mode and type are correct. Use gcry_error_t types where gcry_err_code_t types have been used before. mpi/ChangeLog: 2005-04-23 Moritz Schulte <moritz@g10code.com> * Makefile.am: Don't assume the compiler will pre-process the .S files. Some compilers, like those from HP and IBM, don't do this. So, we use the same solution gnupg-1.4.0 does. Preprocess first and then compile. * hppa1.1/mpih-mul3.S: Add "level 1.1" directive to disable warning about using PA-RISC1.1 opcodes. * hppa1.1/mpih-mul2.S: Likewise. * hppa1.1/mpih-mul1.S: Likewise. * hppa1.1/udiv-qrnnd.S: Likewise. src/ChangeLog: 2005-04-22 Moritz Schulte <moritz@g10code.com> * Makefile.am (pkgconfigdir, pkgconfig_DATA): New; support for pkgconfig provided by Albert Chin. * libgcrypt.pc.in (Cflags): New file. 2005-04-16 Moritz Schulte <moritz@g10code.com> * g10lib.h (_gcry_ac_init): Declare. * global.c (global_init): Call _gcry_ac_init; don't forget to set err. tests/ChangeLog: 2005-04-22 Moritz Schulte <moritz@g10code.com> * tsexp.c: Include <config.h> in case HAVE_CONFIG_H is defined; thanks to Albert Chin. * testapi.c: Likewise. * register.c: Likewise. * pubkey.c: Likewise. * prime.c: Likewise. * pkbench.c: Likewise. * keygen.c: Likewise. * benchmark.c: Likewise. * basic.c: Likewise. * ac-schemes.c: Likewise. * ac-data.c: Likewise. * ac.c: Likewise. 2005-04-16 Moritz Schulte <moritz@g10code.com> * ac-data.c (check_run): Include new test.
2005-04-14(whitespacep): New.Werner Koch2-15/+35
(sexp_sscan): Replaced isdigit and isspace by whitespacep and digitp.
2005-04-112005-04-11 Moritz Schulte <moritz@g10code.com>Moritz Schulte3-1/+8
* gcrypt.h (gcry_md_algos): Added: GCRY_MD_WHIRLPOOL. * cipher.h (_gcry_digest_spec_whirlpool): Declare.
2005-03-302005-03-30 Moritz Schulte <moritz@g10code.com>Moritz Schulte3-50/+133
* libgcrypt.vers: Added: gcry_ac_io_init, gry_ac_io_init_va. * gcrypt.h (gcry_ac_data_read_cb_t, gcry_ac_data_write_cb_t, gcry_ac_io_mode_t, gcry_ac_io_type_t, gcry_ac_io_t): New types. (gcry_ac_io_init_va): Declare function. (gcry_ac_data_encode, gcry_ac_data_decode, gcry_ac_data_encrypt_scheme, gcry_ac_data_decrypt_scheme, gcry_ac_data_sign_scheme, gcry_ac_data_verify_scheme): Use gcry_ac_io_type_t objects instead of memory strings directly.
2005-03-222005-03-03 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-0/+6
* libgcrypt.vers: Added: gcry_ac_data_to_sexp() and gcry_ac_data_from_sexp().
2005-02-22(_gcry_malloc): Make sure ERRNO is set if we returnWerner Koch3-10/+29
NULL. Remove unneeded initialization of M to allow the compiler to catch errors. (gcry_realloc): Make sure ERRNO is set if we return NULL>
2005-02-132005-02-13 Moritz Schulte <moritz@g10code.com>Moritz Schulte5-189/+333
* gcrypt.h: Declare new functions: gcry_ac_data_encrypt_scheme, gcry_ac_data_decrypt_scheme, gcry_ac_data_sign_scheme, gcry_ac_data_verify_scheme, gcry_ac_data_encode, gcry_ac_data_decode, gcry_ac_data_to_sexp, gcry_ac_data_from_sexp. New types: gcry_ac_emsa_pkcs_v1_5_t, gcry_ac_ssa_pkcs_v1_5_t, gcry_md_algo_t. New enumeration lists: gcry_ac_scheme_t, gcry_ac_em_t. * libgcrypt.vers: Added new ac functions. * g10lib.h: Declare function: _gcry_pk_get_elements. * mpi.h (mpi_get_ui): New macro. Declare function: _gcry_mpi_get_ui.
2004-11-09Removed trailing commas. This time comitting to the right repository.Werner Koch2-3/+8
2004-10-12* sexp.c (sexp_sscan): Removed C++ style comments. Noted by YoannWerner Koch4-7/+18
Vandoorselaere. * secmem.h (_gcry_secmem_set_flags,_gcry_secmem_get_flags): Removed __pure__. (GCRY_SECMEM_FLAG_NO_WARNING): Put macro value into parens.
2004-08-232004-08-23 Moritz Schulte <moritz@g10code.com>Moritz Schulte5-4/+7
* global.c: Do not include <assert.h>. * sexp.c: Likewise. * module.c: Likewise. * misc.c: Likewise.
2004-08-222004-08-18 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-4/+6
* secmem.c (_gcry_secmem_init): Try to lock pool into core not only when running with root privileges.
2004-08-102004-08-10 Moritz Schulte <moritz@g10code.com>Moritz Schulte2-0/+5
* gcrypt.h: Include <sys/time.h>, thanks to Simon Josefsson.
2004-05-07* random.c (initialize): Factored out some code to ..Werner Koch3-3/+28
(initialize_basics): .. new function. (_gcry_random_initialize): Just call initialize_basics unless the new arg FULL is set to TRUE. (_gcry_fast_random_poll): Don't do anything unless the random system has been really initialized. * gcrypt.h: Added GCRYCTL_FAST_POLL. (gcry_fast_random_poll): New. * global.c (gcry_control) <INITIALIZATION_FINISHED>: Do only basic random subsystem init. (gcry_control) <FAST_POLL>: New.
2004-04-222004-04-22 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-1/+5
* libgcrypt.m4: Quote first argument to AC_DEFUN.
2004-04-15Fixed typo in Makefile.amWerner Koch2-2/+2
2004-04-15Added Manifest to Makefile.amWerner Koch2-2/+2
2004-04-15Added missing files.Werner Koch1-1/+3
2004-04-15About to release 1.2Werner Koch10-445/+131
2004-04-06* config.guess, config.sub, ltmain.sh: Updated to those fromWerner Koch1-1/+1
libtools 1.5.4. * libtool.m4: Updated from 1.5.4
2004-03-29(_gcry_secmem_realloc): Fixed double unlock; bugWerner Koch2-2/+6
manifested itself due to the more rigorous checking in the changed ath.h
2004-03-29*** empty log message ***Werner Koch1-1/+1