diff options
author | Michael Brown | 2010-06-16 02:31:29 +0200 |
---|---|---|
committer | Michael Brown | 2010-06-22 16:50:31 +0200 |
commit | 4327d5d39f101f1df0ace6c03f3b3ada5f6a6213 (patch) | |
tree | ccf92bdfd23046b6c7f64f87b57350f02f63ad6f /src/include/ipxe/tls.h | |
parent | [interface] Convert all name-resolution interfaces to generic interfaces (diff) | |
download | ipxe-4327d5d39f101f1df0ace6c03f3b3ada5f6a6213.tar.gz ipxe-4327d5d39f101f1df0ace6c03f3b3ada5f6a6213.tar.xz ipxe-4327d5d39f101f1df0ace6c03f3b3ada5f6a6213.zip |
[interface] Convert all data-xfer interfaces to generic interfaces
Remove data-xfer as an interface type, and replace data-xfer
interfaces with generic interfaces supporting the data-xfer methods.
Filter interfaces (as used by the TLS layer) are handled using the
generic pass-through interface capability. A side-effect of this is
that deliver_raw() no longer exists as a data-xfer method. (In
practice this doesn't lose any efficiency, since there are no
instances within the current codebase where xfer_deliver_raw() is used
to pass data to an interface supporting the deliver_raw() method.)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r-- | src/include/ipxe/tls.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 2cc36dd7..94cd322c 100644 --- a/src/include/ipxe/tls.h +++ b/src/include/ipxe/tls.h @@ -11,7 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stdint.h> #include <ipxe/refcnt.h> -#include <ipxe/filter.h> +#include <ipxe/interface.h> #include <ipxe/process.h> #include <ipxe/crypto.h> #include <ipxe/md5.h> @@ -134,9 +134,9 @@ struct tls_session { struct refcnt refcnt; /** Plaintext stream */ - struct xfer_filter_half plainstream; + struct interface plainstream; /** Ciphertext stream */ - struct xfer_filter_half cipherstream; + struct interface cipherstream; /** Current TX cipher specification */ struct tls_cipherspec tx_cipherspec; @@ -181,7 +181,7 @@ struct tls_session { void *rx_data; }; -extern int add_tls ( struct xfer_interface *xfer, - struct xfer_interface **next ); +extern int add_tls ( struct interface *xfer, + struct interface **next ); #endif /* _IPXE_TLS_H */ |