1SSL_GET_PEER_SIGNATURE_NID(3)       OpenSSL      SSL_GET_PEER_SIGNATURE_NID(3)
2
3
4

NAME

6       SSL_get_peer_signature_nid, SSL_get_peer_signature_type_nid,
7       SSL_get_signature_nid, SSL_get_signature_type_nid - get TLS message
8       signing types
9

SYNOPSIS

11        #include <openssl/ssl.h>
12
13        int SSL_get_peer_signature_nid(SSL *ssl, int *psig_nid);
14        int SSL_get_peer_signature_type_nid(const SSL *ssl, int *psigtype_nid);
15        int SSL_get_signature_nid(SSL *ssl, int *psig_nid);
16        int SSL_get_signature_type_nid(const SSL *ssl, int *psigtype_nid);
17

DESCRIPTION

19       SSL_get_peer_signature_nid() sets *psig_nid to the NID of the digest
20       used by the peer to sign TLS messages. It is implemented as a macro.
21
22       SSL_get_peer_signature_type_nid() sets *psigtype_nid to the signature
23       type used by the peer to sign TLS messages. Currently the signature
24       type is the NID of the public key type used for signing except for PSS
25       signing where it is EVP_PKEY_RSA_PSS. To differentiate between
26       rsa_pss_rsae_* and rsa_pss_pss_* signatures, it's necessary to check
27       the type of public key in the peer's certificate.
28
29       SSL_get_signature_nid() and SSL_get_signature_type_nid() return the
30       equivalent information for the local end of the connection.
31

RETURN VALUES

33       These functions return 1 for success and 0 for failure. There are
34       several possible reasons for failure: the cipher suite has no signature
35       (e.g. it uses RSA key exchange or is anonymous), the TLS version is
36       below 1.2 or the functions were called too early, e.g. before the peer
37       signed a message.
38

SEE ALSO

40       ssl(7), SSL_get_peer_certificate(3),
41
43       Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
44
45       Licensed under the OpenSSL license (the "License").  You may not use
46       this file except in compliance with the License.  You can obtain a copy
47       in the file LICENSE in the source distribution or at
48       <https://www.openssl.org/source/license.html>.
49
50
51
521.1.1i                            2021-07-22     SSL_GET_PEER_SIGNATURE_NID(3)
Impressum