summaryrefslogtreecommitdiffstats
path: root/src/net/tcp
diff options
context:
space:
mode:
authorMichael Brown2020-12-15 17:11:34 +0100
committerMichael Brown2020-12-15 17:54:06 +0100
commitf43a8f8b9f808fb0a8347663abf6efe6908821ed (patch)
tree012d6ffcb49d4c4744e12b8a8cbc207f13d3bf65 /src/net/tcp
parent[tls] Include root of trust within definition of TLS session (diff)
downloadipxe-f43a8f8b9f808fb0a8347663abf6efe6908821ed.tar.gz
ipxe-f43a8f8b9f808fb0a8347663abf6efe6908821ed.tar.xz
ipxe-f43a8f8b9f808fb0a8347663abf6efe6908821ed.zip
[crypto] Allow private key to be specified as a TLS connection parameter
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/tcp')
-rw-r--r--src/net/tcp/https.c2
-rw-r--r--src/net/tcp/syslogs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tcp/https.c b/src/net/tcp/https.c
index eae8ae5dc..85f1f124f 100644
--- a/src/net/tcp/https.c
+++ b/src/net/tcp/https.c
@@ -46,7 +46,7 @@ FEATURE ( FEATURE_PROTOCOL, "HTTPS", DHCP_EB_FEATURE_HTTPS, 1 );
*/
static int https_filter ( struct http_connection *conn ) {
- return add_tls ( &conn->socket, conn->uri->host, NULL );
+ return add_tls ( &conn->socket, conn->uri->host, NULL, NULL );
}
/** HTTPS URI opener */
diff --git a/src/net/tcp/syslogs.c b/src/net/tcp/syslogs.c
index f91864a44..f1f70d59e 100644
--- a/src/net/tcp/syslogs.c
+++ b/src/net/tcp/syslogs.c
@@ -246,7 +246,7 @@ static int apply_syslogs_settings ( void ) {
}
/* Add TLS filter */
- if ( ( rc = add_tls ( &syslogs, server, NULL ) ) != 0 ) {
+ if ( ( rc = add_tls ( &syslogs, server, NULL, NULL ) ) != 0 ) {
DBG ( "SYSLOGS cannot create TLS filter: %s\n",
strerror ( rc ) );
goto err_add_tls;