iPXE
Functions | Variables
https.c File Reference

Secure Hyper Text Transfer Protocol (HTTPS) More...

#include <ipxe/open.h>
#include <ipxe/uri.h>
#include <ipxe/tls.h>
#include <ipxe/http.h>
#include <ipxe/features.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
 FEATURE (FEATURE_PROTOCOL, "HTTPS", DHCP_EB_FEATURE_HTTPS, 1)
 
static int https_filter (struct http_connection *conn)
 Add HTTPS filter. More...
 

Variables

struct uri_opener https_uri_opener __uri_opener
 HTTPS URI opener. More...
 
struct http_scheme https_scheme __http_scheme
 HTTP URI scheme. More...
 

Detailed Description

Secure Hyper Text Transfer Protocol (HTTPS)

Definition in file https.c.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ FEATURE()

FEATURE ( FEATURE_PROTOCOL  ,
"HTTPS"  ,
DHCP_EB_FEATURE_HTTPS  ,
 
)

◆ https_filter()

static int https_filter ( struct http_connection conn)
static

Add HTTPS filter.

Parameters
connHTTP connection
Return values
rcReturn status code

Definition at line 47 of file https.c.

47  {
48 
49  return add_tls ( &conn->socket, conn->uri->host, NULL, NULL );
50 }
struct interface socket
Transport layer interface.
Definition: http.h:84
const char * host
Host name.
Definition: uri.h:76
struct uri * uri
Connection URI.
Definition: http.h:80
#define NULL
NULL pointer (VOID *)
Definition: Base.h:321
int add_tls(struct interface *xfer, const char *name, struct x509_root *root, struct private_key *key)
Add TLS on an interface.
Definition: tls.c:3816

References add_tls(), uri::host, NULL, http_connection::socket, and http_connection::uri.

Variable Documentation

◆ __uri_opener

struct uri_opener https_uri_opener __uri_opener
Initial value:
= {
.scheme = "https",
.open = http_open_uri,
}
int http_open_uri(struct interface *xfer, struct uri *uri)
Open HTTP transaction for simple URI.
Definition: httpcore.c:1937

HTTPS URI opener.

Definition at line 53 of file https.c.

◆ __http_scheme

struct http_scheme https_scheme __http_scheme
Initial value:
= {
.name = "https",
.port = HTTPS_PORT,
.filter = https_filter,
}
#define HTTPS_PORT
HTTPS default port.
Definition: http.h:37
static int https_filter(struct http_connection *conn)
Add HTTPS filter.
Definition: https.c:47

HTTP URI scheme.

Definition at line 59 of file https.c.