#
# DO NOT EDIT THIS FILE (invoke-gnutls-cli.texi)
#
-# It has been AutoGen-ed October 7, 2012 at 10:36:28 AM by AutoGen 5.16
+# It has been AutoGen-ed October 13, 2012 at 09:27:08 AM by AutoGen 5.16
# From the definitions ../src/cli-args.def
# and the template file agtexi-cmd.tpl
@end ignore
This is the ``connect, establish a plain session and start tls.'' option.
The TLS session will be initiated when EOF or a SIGALRM is received.
+@anchor{gnutls-cli disable-extensions}
+@subheading disable-extensions option
+@cindex gnutls-cli-disable-extensions
+
+This is the ``disable all the tls extensions'' option.
+This option disables all TLS extensions. Deprecated option. Use the priority string.
@anchor{gnutls-cli dh-bits}
@subheading dh-bits option
@cindex gnutls-cli-dh-bits
*
* DO NOT EDIT THIS FILE (cli-args.c)
*
- * It has been AutoGen-ed October 7, 2012 at 01:02:46 PM by AutoGen 5.16
+ * It has been AutoGen-ed October 13, 2012 at 09:26:42 AM by AutoGen 5.16
* From the definitions cli-args.def
* and the template file options
*
*
* DO NOT EDIT THIS FILE (cli-args.h)
*
- * It has been AutoGen-ed October 7, 2012 at 01:02:46 PM by AutoGen 5.16
+ * It has been AutoGen-ed October 13, 2012 at 09:26:42 AM by AutoGen 5.16
* From the definitions cli-args.def
* and the template file options
*
const char *x509_crlfile = NULL;
static int x509ctype;
static int disable_extensions;
+static unsigned int init_flags = GNUTLS_CLIENT;
static const char * priorities = NULL;
const char *psk_username = NULL;
if (udp)
{
- gnutls_init (&session, GNUTLS_CLIENT|GNUTLS_DATAGRAM);
+ gnutls_init (&session, GNUTLS_DATAGRAM|init_flags);
if (mtu)
gnutls_dtls_set_mtu(session, mtu);
}
else
- gnutls_init (&session, GNUTLS_CLIENT);
+ gnutls_init (&session, init_flags);
if ((ret = gnutls_priority_set_direct (session, priorities, &err)) < 0)
{
if (HAVE_OPT(HEARTBEAT))
gnutls_heartbeat_enable (session, GNUTLS_HB_PEER_ALLOWED_TO_SEND);
- /* OCSP status-request TLS extension */
- if (status_request_ocsp > 0 && disable_extensions == 0)
- {
- if (gnutls_ocsp_status_request_enable_client (session, NULL, 0, NULL) < 0)
- {
- fprintf (stderr, "Cannot set OCSP status request information.\n");
- exit (1);
- }
- }
-
-#ifdef ENABLE_SESSION_TICKET
- if (disable_extensions == 0 && !HAVE_OPT(NOTICKET)t)
- gnutls_session_ticket_enable_client (session);
-#endif
-
return session;
}
}
disable_extensions = HAVE_OPT( DISABLE_EXTENSIONS);
+ if (disable_extensions)
+ init_flags |= GNUTLS_NO_EXTENSIONS;
+
starttls = HAVE_OPT(STARTTLS);
resume = HAVE_OPT(RESUME);
rehandshake = HAVE_OPT(REHANDSHAKE);