• Home
  • Raw
  • Download

Lines Matching full:tls

2  * SSL/TLS interface definition
125 * struct tls_connection_params - Parameters for TLS connection
179 * TLS connection parameters to be configured with tls_connection_set_params()
226 * tls_init - Initialize TLS library
227 * @conf: Configuration data for TLS library
232 * session. In other words, there can be two concurrent TLS contexts. If global
234 * authentication types), the TLS library wrapper should maintain a reference
240 * tls_deinit - Deinitialize TLS library
241 * @tls_ctx: TLS context data from tls_init()
245 * shared between both authentication types), the TLS library wrapper should
253 * @tls_ctx: TLS context data from tls_init()
256 * Process all pending TLS errors.
261 * tls_connection_init - Initialize a new TLS connection
262 * @tls_ctx: TLS context data from tls_init()
268 * tls_connection_deinit - Free TLS connection data
269 * @tls_ctx: TLS context data from tls_init()
272 * Release all resources allocated for TLS connection.
277 * tls_connection_established - Has the TLS connection been completed?
278 * @tls_ctx: TLS context data from tls_init()
280 * Returns: 1 if TLS connection has been completed, 0 if not.
286 * @tls_ctx: TLS context data from tls_init()
297 * tls_connection_shutdown - Shutdown TLS connection
298 * @tls_ctx: TLS context data from tls_init()
302 * Shutdown current TLS connection without releasing all resources. New
316 * tls_connection_set_params - Set TLS connection parameters
317 * @tls_ctx: TLS context data from tls_init()
333 * tls_global_set_params - Set TLS parameters for all TLS connection
334 * @tls_ctx: TLS context data from tls_init()
335 * @params: Global TLS parameters
349 * @tls_ctx: TLS context data from tls_init()
360 * @tls_ctx: TLS context data from tls_init()
378 * tls_connection_get_random - Get random data from TLS connection
379 * @tls_ctx: TLS context data from tls_init()
389 * tls_connection_export_key - Derive keying material from a TLS connection
390 * @tls_ctx: TLS context data from tls_init()
395 * @out: Buffer for output data from TLS-PRF
412 * @tls_ctx: TLS context data from tls_init()
414 * @out: Buffer for output data from TLS-PRF
418 * Exports key material after the normal TLS key block for use with
427 * tls_connection_handshake - Process TLS handshake (client side)
428 * @tls_ctx: TLS context data from tls_init()
430 * @in_data: Input data from TLS server
439 * This function is used during TLS handshake. The first call is done with
442 * to TLS library by calling this function again with in_data pointing to the
443 * TLS message from the server.
445 * If the TLS handshake fails, this function may return %NULL. However, if the
446 * TLS library has a TLS alert to send out, that should be returned as the
450 * tls_connection_established() should return 1 once the TLS handshake has been
465 * tls_connection_server_handshake - Process TLS handshake (server side)
466 * @tls_ctx: TLS context data from tls_init()
468 * @in_data: Input data from TLS peer
480 * tls_connection_encrypt - Encrypt data into TLS tunnel
481 * @tls_ctx: TLS context data from tls_init()
484 * Returns: Encrypted TLS data or %NULL on failure
486 * This function is used after TLS handshake has been completed successfully to
495 * tls_connection_decrypt - Decrypt data from TLS tunnel
496 * @tls_ctx: TLS context data from tls_init()
498 * @in_data: Encrypted TLS data
499 * Returns: Decrypted TLS data or %NULL on failure
501 * This function is used after TLS handshake has been completed successfully to
516 * @tls_ctx: TLS context data from tls_init()
534 * @tls_ctx: TLS context data from tls_init()
545 * tls_get_version - Get the current TLS version number
546 * @tls_ctx: TLS context data from tls_init()
548 * @buf: Buffer for returning the TLS version number
552 * Get the currently used TLS version number.
559 * @tls_ctx: TLS context data from tls_init()
571 * tls_connection_enable_workaround - Enable TLS workaround options
572 * @tls_ctx: TLS context data from tls_init()
577 * buffer SSL/TLS implementations.
583 * tls_connection_client_hello_ext - Set TLS extension for ClientHello
584 * @tls_ctx: TLS context data from tls_init()
598 * @tls_ctx: TLS context data from tls_init()
607 * @tls_ctx: TLS context data from tls_init()
616 * @tls_ctx: TLS context data from tls_init()
660 * tls_get_tls_unique - Fetch "tls-unique" for channel binding
666 * This function can be used to fetch "tls-unique" (RFC 5929, Section 3) which
667 * is the first TLS Finished message sent in the most recent TLS handshake of
668 * the TLS connection.
673 * tls_connection_get_cipher_suite - Get current TLS cipher suite
675 * Returns: TLS cipher suite of the current connection or 0 on error