1SSL_GET_PEER_SIGNATURE_NID(3) OpenSSL SSL_GET_PEER_SIGNATURE_NID(3)
2
3
4
6 SSL_get_peer_signature_nid, SSL_get_peer_signature_type_nid - get TLS
7 message signing types
8
10 #include <openssl/ssl.h>
11
12 int SSL_get_peer_signature_nid(SSL *ssl, int *psig_nid);
13 int SSL_get_peer_signature_type_nid(const SSL *ssl, int *psigtype_nid);
14
16 SSL_get_peer_signature_nid() sets *psig_nid to the NID of the digest
17 used by the peer to sign TLS messages. It is implemented as a macro.
18
19 SSL_get_peer_signature_type_nid() sets *psigtype_nid to the signature
20 type used by the peer to sign TLS messages. Currently the signature
21 type is the NID of the public key type used for signing except for PSS
22 signing where it is EVP_PKEY_RSA_PSS. To differentiate between
23 rsa_pss_rsae_* and rsa_pss_pss_* signatures, it's necessary to check
24 the type of public key in the peer's certificate.
25
27 These functions return 1 for success and 0 for failure. There are
28 several possible reasons for failure: the cipher suite has no signature
29 (e.g. it uses RSA key exchange or is anonymous), the TLS version is
30 below 1.2 or the functions were called before the peer signed a
31 message.
32
34 ssl(7), SSL_get_peer_certificate(3),
35
37 Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
38
39 Licensed under the OpenSSL license (the "License"). You may not use
40 this file except in compliance with the License. You can obtain a copy
41 in the file LICENSE in the source distribution or at
42 <https://www.openssl.org/source/license.html>.
43
44
45
461.1.1 2018-09-11 SSL_GET_PEER_SIGNATURE_NID(3)