This commit is contained in:
Christian Grothoff
2008-09-08 06:08:30 +00:00
parent 8fec52a837
commit a2f10ca9bd
4 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -27,4 +27,4 @@ memmem.c \
strverscmp.c \
md5.c \
des.c
+1 -2
View File
@@ -2,8 +2,7 @@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/include \
-I$(top_srcdir)/src/daemon/https/lgl \
-I$(top_srcdir)/src/daemon/https/tls \
-I$(top_srcdir)/src/daemon/https/includes
-I$(top_srcdir)/src/daemon/https/tls
noinst_LTLIBRARIES = libasn1.la
-2
View File
@@ -8,8 +8,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/daemon/https/lgl \
-I$(top_srcdir)/src/daemon/https/minitasn1 \
-I$(top_srcdir)/src/daemon/https/x509 \
-I$(top_srcdir)/src/daemon/https/openpgp \
-I$(top_srcdir)/src/daemon/https/opencdk \
-I$(GCRYPT_CPPFLAGS)
noinst_LTLIBRARIES = libtls.la
+5 -11
View File
@@ -66,22 +66,16 @@ MHD_gnutls_cipher_set_priority (mhd_gtls_session_t session, const int *list)
return 0;
}
inline static int
static int
_set_priority (mhd_gtls_priority_st * st, const int *list)
{
int num = 0, i;
int num = 0;
while (list[num] != 0)
while ( (list[num] != 0) &&
(num < MAX_ALGOS) )
num++;
if (num > MAX_ALGOS)
num = MAX_ALGOS;
st->num_algorithms = num;
for (i = 0; i < num; i++)
{
st->priority[i] = list[i];
}
memcpy(st->priority, list, num * sizeof(int));
return 0;
}