diff options
author | Simon Josefsson <simon@josefsson.org> | 2009-01-07 12:13:12 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2009-01-07 12:13:12 +0100 |
commit | 853e17f15174cded630124cc6b31798c2cd33f44 (patch) | |
tree | 4143acc1d70089f10db9f0d422bec86ab82da88e /lib | |
parent | 73b18e6f6336324619877923ac79b31ca19b5194 (diff) | |
download | gnutls-853e17f15174cded630124cc6b31798c2cd33f44.tar.gz |
Fix warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_algorithms.c | 13 | ||||
-rw-r--r-- | lib/gnutls_rsa_export.c | 9 | ||||
-rw-r--r-- | lib/openpgp/output.c | 3 | ||||
-rw-r--r-- | lib/x509/output.c | 3 | ||||
-rw-r--r-- | lib/x509/privkey.c | 7 |
5 files changed, 13 insertions, 22 deletions
diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index d37d494470..a8929edbf4 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation + * Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation * * Author: Nikos Mavrogiannopoulos * @@ -63,9 +63,6 @@ static const gnutls_cred_map cred_mappings[] = { #define GNUTLS_KX_MAP_ALG_LOOP_SERVER(a) \ GNUTLS_KX_MAP_LOOP( if(p->server_type == type) { a; break; }) -#define GNUTLS_KX_MAP_ALG_LOOP_CLIENT(a) \ - GNUTLS_KX_MAP_LOOP( if(p->client_type == type) { a; break; }) - /* KX mappings to PK algorithms */ typedef struct { @@ -371,8 +368,10 @@ typedef struct #define GNUTLS_ANON_DH_AES_256_CBC_SHA1 { 0x00, 0x3A } /* rfc4132 */ +#ifdef ENABLE_CAMELLIA #define GNUTLS_ANON_DH_CAMELLIA_128_CBC_SHA1 { 0x00,0x46 } #define GNUTLS_ANON_DH_CAMELLIA_256_CBC_SHA1 { 0x00,0x89 } +#endif /* PSK (not in TLS 1.0) * draft-ietf-tls-psk: @@ -416,8 +415,10 @@ typedef struct #define GNUTLS_RSA_AES_256_CBC_SHA1 { 0x00, 0x35 } /* rfc4132 */ +#ifdef ENABLE_CAMELLIA #define GNUTLS_RSA_CAMELLIA_128_CBC_SHA1 { 0x00,0x41 } #define GNUTLS_RSA_CAMELLIA_256_CBC_SHA1 { 0x00,0x84 } +#endif /* DHE DSS */ @@ -436,8 +437,10 @@ typedef struct #define GNUTLS_DHE_DSS_AES_128_CBC_SHA1 { 0x00, 0x32 } /* rfc4132 */ +#ifdef ENABLE_CAMELLIA #define GNUTLS_DHE_DSS_CAMELLIA_128_CBC_SHA1 { 0x00,0x44 } #define GNUTLS_DHE_DSS_CAMELLIA_256_CBC_SHA1 { 0x00,0x87 } +#endif /* DHE RSA */ @@ -449,8 +452,10 @@ typedef struct #define GNUTLS_DHE_RSA_AES_256_CBC_SHA1 { 0x00, 0x39 } /* rfc4132 */ +#ifdef ENABLE_CAMELLIA #define GNUTLS_DHE_RSA_CAMELLIA_128_CBC_SHA1 { 0x00,0x45 } #define GNUTLS_DHE_RSA_CAMELLIA_256_CBC_SHA1 { 0x00,0x88 } +#endif #define CIPHER_SUITES_COUNT sizeof(cs_algorithms)/sizeof(gnutls_cipher_suite_entry)-1 diff --git a/lib/gnutls_rsa_export.c b/lib/gnutls_rsa_export.c index 1ea83b7803..cf6da8e1cd 100644 --- a/lib/gnutls_rsa_export.c +++ b/lib/gnutls_rsa_export.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2002, 2003, 2004, 2005, 2008 Free Software Foundation + * Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009 Free Software Foundation * * Author: Nikos Mavrogiannopoulos * @@ -33,13 +33,6 @@ #include "x509/x509_int.h" #include "debug.h" -/* This function takes a number of bits and returns a supported - * number of bits. Ie a number of bits that we have a prime in the - * dh_primes structure. - */ - -#define MAX_SUPPORTED_BITS 512 - /* returns e and m, depends on the requested bits. * We only support limited key sizes. */ diff --git a/lib/openpgp/output.c b/lib/openpgp/output.c index 617cf77e83..5d7950f3aa 100644 --- a/lib/openpgp/output.c +++ b/lib/openpgp/output.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Free Software Foundation + * Copyright (C) 2007, 2008, 2009 Free Software Foundation * * Author: Simon Josefsson, Nikos Mavrogiannopoulos * @@ -32,7 +32,6 @@ /* I18n of error codes. */ #include "gettext.h" #define _(String) dgettext (PACKAGE, String) -#define N_(String) gettext_noop (String) #define addf _gnutls_string_append_printf #define adds _gnutls_string_append_str diff --git a/lib/x509/output.c b/lib/x509/output.c index e838166d82..83c4cb7644 100644 --- a/lib/x509/output.c +++ b/lib/x509/output.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Free Software Foundation + * Copyright (C) 2007, 2008, 2009 Free Software Foundation * * Author: Simon Josefsson * @@ -36,7 +36,6 @@ /* I18n of error codes. */ #include "gettext.h" #define _(String) dgettext (PACKAGE, String) -#define N_(String) gettext_noop (String) #define addf _gnutls_string_append_printf #define adds _gnutls_string_append_str diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c index 3e5c75f5f0..c7d6fcbc1b 100644 --- a/lib/x509/privkey.c +++ b/lib/x509/privkey.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003, 2004, 2005, 2007, 2008 Free Software Foundation + * Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation * * Author: Nikos Mavrogiannopoulos * @@ -36,11 +36,6 @@ static int _gnutls_asn1_encode_rsa (ASN1_TYPE * c2, bigint_t * params); -/* remove this when libgcrypt can handle the PKCS #1 coefficients from - * rsa keys - */ -#define CALC_COEFF 1 - /** * gnutls_x509_privkey_init - initialize a #gnutls_privkey_t structure * @key: The structure to be initialized |