Skip to content

Commit

Permalink
Enable TLS protocol by default, for outgoing connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimis committed May 6, 2015
1 parent 1f7d2b0 commit e25d59c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libcfnet/client_code.c
Expand Up @@ -200,6 +200,7 @@ AgentConnection *ServerConnection(const char *server, const char *port,

switch (flags.protocol_version)
{
case CF_PROTOCOL_UNDEFINED:
case CF_PROTOCOL_TLS:

/* Set the version to request during protocol negotiation. After
Expand Down Expand Up @@ -229,7 +230,6 @@ AgentConnection *ServerConnection(const char *server, const char *port,
LAST_SEEN_ROLE_CONNECT);
break;

case CF_PROTOCOL_UNDEFINED:
case CF_PROTOCOL_CLASSIC:

conn->conn_info->protocol = CF_PROTOCOL_CLASSIC;
Expand Down
2 changes: 1 addition & 1 deletion libpromises/mod_common.c
Expand Up @@ -261,7 +261,7 @@ const ConstraintSyntax CFG_CONTROLBODY[COMMON_CONTROL_MAX + 1] =
ConstraintSyntaxNewBool("fips_mode", "Activate full FIPS mode restrictions. Default value: false", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewReal("bwlimit", CF_VALRANGE, "Limit outgoing protocol bandwidth in Bytes per second", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewBool("cache_system_functions", "Cache the result of system functions. Default value: true", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewOption("protocol_version", "0,undefined,1,classic,2,latest", "CFEngine protocol version to use when connecting to the server. Default: classic", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewOption("protocol_version", "0,undefined,1,classic,2,latest", "CFEngine protocol version to use when connecting to the server. Default: \"latest\"", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewOption("tls_ciphers", "", "List of acceptable ciphers in outgoing TLS connections. For syntax help see man page for \"openssl ciphers\"", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewOption("tls_min_version", "", "Minimum acceptable TLS version for outgoing connections. Default is \"1.0\"", SYNTAX_STATUS_NORMAL),
ConstraintSyntaxNewNull()
Expand Down

0 comments on commit e25d59c

Please sign in to comment.