diff options
Diffstat (limited to 'tests/srp.c')
-rw-r--r-- | tests/srp.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/srp.c b/tests/srp.c index e659f22163..607e52ae46 100644 --- a/tests/srp.c +++ b/tests/srp.c @@ -131,7 +131,7 @@ static void client(int fd, const char *prio, const char *user, const char *pass, /* Use default priorities */ assert(gnutls_priority_set_direct(session, prio, NULL)>=0); - gnutls_handshake_set_timeout(session, 40 * 1000); + gnutls_handshake_set_timeout(session, 100 * 1000); /* put the anonymous credentials to the current session */ @@ -229,7 +229,7 @@ static void server(int fd, const char *prio) s_x509_cred); gnutls_transport_set_int(session, fd); - gnutls_handshake_set_timeout(session, 40 * 1000); + gnutls_handshake_set_timeout(session, 100 * 1000); do { ret = gnutls_handshake(session); @@ -329,21 +329,21 @@ const char *tpasswd_conf_file = void doit(void) { - FILE *fd; + FILE *fp; - fd = fopen("tpasswd.conf", "w"); - if (fd == NULL) + fp = fopen("tpasswd.conf", "w"); + if (fp == NULL) exit(1); - fwrite(tpasswd_conf_file, 1, strlen(tpasswd_conf_file), fd); - fclose(fd); + fwrite(tpasswd_conf_file, 1, strlen(tpasswd_conf_file), fp); + fclose(fp); - fd = fopen("tpasswd", "w"); - if (fd == NULL) + fp = fopen("tpasswd", "w"); + if (fp == NULL) exit(1); - fwrite(tpasswd_file, 1, strlen(tpasswd_file), fd); - fclose(fd); + fwrite(tpasswd_file, 1, strlen(tpasswd_file), fp); + fclose(fp); start("tls1.2 srp-1024", "NORMAL:-VERS-ALL:+VERS-TLS1.2:-KX-ALL:+SRP", "test", "test", 0); start("tls1.2 srp-1536", "NORMAL:-VERS-ALL:+VERS-TLS1.2:-KX-ALL:+SRP", "test2", "test2", 0); |