SSL_get_server_random (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
SSL_get_client_random, SSL_get_server_random, SSL_SESSION_get_master_key - retrieve internal TLS/SSL random values and master keySYNOPSIS
#include <openssl/ssl.h> size_t SSL_get_client_random(const SSL *ssl, unsigned char *out, size_t outlen); size_t SSL_get_server_random(const SSL *ssl, unsigned char *out, size_t outlen); size_t SSL_SESSION_get_master_key(const SSL_SESSION *session, unsigned char *out, size_t outlen);
DESCRIPTION
SSL_get_client_random() extracts the random value sent from the client to the server during the initialSSL_get_server_random() behaves the same, but extracts the random value sent from the server to the client during the initial
SSL_SESSION_get_master_key() behaves the same, but extracts the master secret used to guarantee the security of the
NOTES
You probably shouldn't use these functions.These functions expose internal values from the
Despite the names of SSL_get_client_random() and SSL_get_server_random(), they
The security of your
In current versions of the
Finally, though the ``client_random'' and ``server_random'' values are called ``random'', many
RETURN VALUES
If outlen is greater than 0, these functions return the number of bytes actually copied, which will be less than or equal to outlen.If outlen is 0, these functions return the maximum number of bytes they would copy---that is, the length of the underlying field.
SEE ALSO
ssl(3), RAND_bytes(3), SSL_export_keying_material(3)COPYRIGHT
Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.Licensed under the OpenSSL license (the ``License''). You may not use this file except in compliance with the License. You can obtain a copy in the file