gcrypt/gcrypt.patch

Sat, 03 Oct 2009 16:18:52 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Oct 2009 16:18:52 +0200
changeset 220
a6cd892638c1
permissions
-rw-r--r--

Update version, adjust corresponding buildconf, and correct logic.
1: Make minor corrections and improvements to scripts patch logic.
2: Upgrade to most recent stable release version 3.0.2.
3: Force selection of a single db backend, as multiple ones never
were supported (changing 'with_db<end>' identifiers accordingly.)
4: Unfortunately add gawk requirement although only partly needed.
5: Add openssl::with_threads requirement to solve strange and hard
to debug problems on Solaris leading to connection failures:

'host-dir JobId 0: Error: openssl.c:86 Connect failure: ERR=error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number'

and

'host-dir JobId 40: Fatal error: TLS negotiation failed with FD at "back1.host.com:9102"'

     1 Index: cipher/cipher.c
     2 diff -Nau cipher/cipher.c.orig cipher/cipher.c
     3 --- cipher/cipher.c.orig	2008-09-12 15:23:37.000000000 +0200
     4 +++ cipher/cipher.c	2009-02-18 19:07:30.388253084 +0100
     5 @@ -97,6 +97,10 @@
     6      { &_gcry_cipher_spec_rfc2268_40,
     7        &dummy_extra_spec,                  GCRY_CIPHER_RFC2268_40 },
     8  #endif
     9 +#if USE_IDEA
    10 +    { &_gcry_cipher_spec_idea,
    11 +      &dummy_extra_spec,                  GCRY_CIPHER_IDEA },
    12 +#endif
    13  #if USE_SEED
    14      { &_gcry_cipher_spec_seed, 
    15        &dummy_extra_spec,                  GCRY_CIPHER_SEED },
    16 Index: src/cipher.h
    17 diff -Nau src/cipher.h.orig src/cipher.h
    18 --- src/cipher.h.orig	2008-09-03 12:04:42.000000000 +0200
    19 +++ src/cipher.h	2009-02-18 19:09:20.193397539 +0100
    20 @@ -105,6 +105,7 @@
    21  extern gcry_cipher_spec_t _gcry_cipher_spec_camellia128;
    22  extern gcry_cipher_spec_t _gcry_cipher_spec_camellia192;
    23  extern gcry_cipher_spec_t _gcry_cipher_spec_camellia256;
    24 +extern gcry_cipher_spec_t _gcry_cipher_spec_idea;
    26  extern cipher_extra_spec_t _gcry_cipher_extraspec_tripledes;
    27  extern cipher_extra_spec_t _gcry_cipher_extraspec_aes;
    28 Index: tests/basic.c
    29 diff -Nau tests/basic.c.orig tests/basic.c
    30 --- tests/basic.c.orig	2008-09-18 16:35:57.000000000 +0200
    31 +++ tests/basic.c	2009-02-18 19:10:14.460255272 +0100
    32 @@ -1028,6 +1028,9 @@
    33      GCRY_CIPHER_CAMELLIA192,
    34      GCRY_CIPHER_CAMELLIA256,
    35  #endif
    36 +#if USE_IDEA
    37 +    GCRY_CIPHER_IDEA,
    38 +#endif
    39      0
    40    };
    41    static int algos2[] = {

mercurial