summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-02-12* gcrypt.h.in: Include stdlib.h for the sake fo the trheadingWerner Koch3-22/+43
macros. Suggested by Andreas Metzler. * secmem.c (ptr_into_pool_p): New. (_gcry_private_is_secure): Implement in terms of new function. (BLOCK_VALID): Removed. Replaced all users by new function.
2006-12-18* rndlinux.c (set_cloexec_flag): New.Werner Koch1-1/+1
(open_device): Set close-on-exit flags. Suggested by Max Kellermann. Fixes Debian#403613. Cleaned up last Makefile changes.
2006-10-23Applied two simple patches.Werner Koch2-4/+11
2006-10-19Let secmem init return an error if the memeory could not be locked.Werner Koch4-0/+15
2006-10-17Various minor changes.Werner Koch6-9/+43
Support for DSA2.
2006-10-12Fix small typos that I should have fixed before committing the last Marcus Brinkmann1-2/+2
change.
2006-10-122006-10-12 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-5/+10
* configure.ac (FALLBACK_SOCKLEN_T): Third time is a charm. Define gcry_socklen_t, to avoid conflicts with socklen_t definitions by autoconf. src/ 2006-10-12 Marcus Brinkmann <marcus@g10code.de> * gcrypt.h.in: Replace socklen_t with gcry_socklen_t.
2006-10-112006-10-11 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann2-3/+6
* acinclude.m4 (GNUPG_FIX_HDR_VERSION): Removed. * configure.ac: Do not call GNUPG_FIX_HDR_VERSION. src/ 2006-10-11 Marcus Brinkmann <marcus@g10code.de> * gcrypt.h.in: Replace version by @VERSION@.
2006-10-102006-10-10 Marcus Brinkmann <marcus@g10code.de>Marcus Brinkmann3-1/+10
* configure.ac: Invoke AC_CHECK_SOCKLEN_TYPE. (AC_CONFIG_FILES): Add src/gcrypt.h. (AC_CONFIG_SRCDIR): Change to src/libgcrypt.vers. m4/ 2006-10-10 Marcus Brinkmann <marcus@g10code.de> * fallback.m4: New file from Pth. src/ 2006-10-10 Marcus Brinkmann <marcus@g10code.de> * gcrypt.h: Add fallback type for socklen_t. Move to ... * gcrypt.h.in: ... this file. * Makefile.am (EXTRA_DIST): Add gcrypt.h.in.
2006-08-29Added SEED cipherWerner Koch3-1/+7
2006-08-28Fixed a problem with shifting MPIs by 0.Werner Koch3-2/+14
Add a way to check whether the RNG is in fake mode.
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.