This commit is contained in:
Christian Grothoff committed 2008-09-08 06:08:30 +00:00
1 parent 8fec52a837
commit a2f10ca9bd
4 files changed
+7 -16

No files matched your search

-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;
}