diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-12-29 20:42:51 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-12-29 20:42:51 +0000 |
commit | d5945804e40d7ffaf94995467c1908c256b7368c (patch) | |
tree | 1bc1627b809ff81ad7731f804bad4b3c7a53476e /src | |
parent | 5b91d1a96b52c1e5ae4a03fe91012401f4669e7e (diff) | |
download | gnutls-d5945804e40d7ffaf94995467c1908c256b7368c.tar.gz |
some fixes in the gnutls-cli-debug program
Diffstat (limited to 'src')
-rw-r--r-- | src/tests.c | 3 | ||||
-rw-r--r-- | src/tls_test.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/tests.c b/src/tests.c index 7169814b23..7d16393126 100644 --- a/src/tests.c +++ b/src/tests.c @@ -159,19 +159,20 @@ int test_srp( gnutls_session session) { ADD_ALL_MACS(session); ADD_KX(session, GNUTLS_KX_SRP); + gnutls_credentials_set(session, GNUTLS_CRD_SRP, srp_cred); return do_handshake( session); } int test_export( gnutls_session session) { - ADD_ALL_CIPHERS(session); ADD_ALL_COMP(session); ADD_ALL_CERTTYPES(session); ADD_ALL_PROTOCOLS(session); ADD_ALL_MACS(session); ADD_KX(session, GNUTLS_KX_RSA_EXPORT); + ADD_CIPHER(session, GNUTLS_CIPHER_ARCFOUR_40); gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred); return do_handshake( session); diff --git a/src/tls_test.c b/src/tls_test.c index 6050e1a8c4..9fe38b4399 100644 --- a/src/tls_test.c +++ b/src/tls_test.c @@ -139,6 +139,11 @@ int main(int argc, char **argv) exit(1); } + if (gnutls_global_init_extra() < 0) { + fprintf(stderr, "global state initialization error\n"); + exit(1); + } + printf("Resolving '%s'...\n", hostname); /* get server name */ server_host = gethostbyname(hostname); |