gnutls_session_get_master_secret(3)

gnutls_session_get_master_secret3

Api function

Usage

#include <gnutls/gnutls.h>

void gnutls_session_get_master_secret(gnutls_session_t session, gnutls_datum_t * secret);

Arguments

gnutls_session_t session

is a gnutls_session_t type.

gnutls_datum_t * secret

the session's master secret

Overview

This function returns pointers to the master secret used in the TLS session. The pointers are not to be modified or deallocated.

This function is only applicable under TLS 1.2 or earlier versions.

Since

3.5.0

Releases

9 releases since Debian 4.0 (Etch); the text changed 8 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

Reporting bugs

Report bugs to <[email protected]>.
Home page: https://www.gnutls.org

From gnutls 3.8.13-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.