1SSL_GET_PEER_TMP_KEY(3)             OpenSSL            SSL_GET_PEER_TMP_KEY(3)
2
3
4

NAME

6       SSL_get_peer_tmp_key, SSL_get_server_tmp_key, SSL_get_tmp_key - get
7       information about temporary keys used during a handshake
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        long SSL_get_peer_tmp_key(SSL *ssl, EVP_PKEY **key);
13        long SSL_get_server_tmp_key(SSL *ssl, EVP_PKEY **key);
14        long SSL_get_tmp_key(SSL *ssl, EVP_PKEY **key);
15

DESCRIPTION

17       SSL_get_peer_tmp_key() returns the temporary key provided by the peer
18       and used during key exchange. For example, if ECDHE is in use, then
19       this represents the peer's public ECDHE key. On success a pointer to
20       the key is stored in *key. It is the caller's responsibility to free
21       this key after use using EVP_PKEY_free(3).
22
23       SSL_get_server_tmp_key() is a backwards compatibility alias for
24       SSL_get_peer_tmp_key().  Under that name it worked just on the client
25       side of the connection, its behaviour on the server end is release-
26       dependent.
27
28       SSL_get_tmp_key() returns the equivalent information for the local end
29       of the connection.
30

RETURN VALUES

32       All these functions return 1 on success and 0 otherwise.
33

NOTES

35       This function is implemented as a macro.
36

SEE ALSO

38       ssl(7), EVP_PKEY_free(3)
39
41       Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
42
43       Licensed under the OpenSSL license (the "License").  You may not use
44       this file except in compliance with the License.  You can obtain a copy
45       in the file LICENSE in the source distribution or at
46       <https://www.openssl.org/source/license.html>.
47
48
49
501.1.1d                            2019-10-03           SSL_GET_PEER_TMP_KEY(3)
Impressum