/src/gnutls/lib/ext/signature.h
Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /*  | 
2  |  |  * Copyright (C) 2002-2012 Free Software Foundation, Inc.  | 
3  |  |  *  | 
4  |  |  * Author: Nikos Mavrogiannopoulos  | 
5  |  |  *  | 
6  |  |  * This file is part of GnuTLS.  | 
7  |  |  *  | 
8  |  |  * The GnuTLS is free software; you can redistribute it and/or  | 
9  |  |  * modify it under the terms of the GNU Lesser General Public License  | 
10  |  |  * as published by the Free Software Foundation; either version 2.1 of  | 
11  |  |  * the License, or (at your option) any later version.  | 
12  |  |  *  | 
13  |  |  * This library is distributed in the hope that it will be useful, but  | 
14  |  |  * WITHOUT ANY WARRANTY; without even the implied warranty of  | 
15  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  | 
16  |  |  * Lesser General Public License for more details.  | 
17  |  |  *  | 
18  |  |  * You should have received a copy of the GNU Lesser General Public License  | 
19  |  |  * along with this program.  If not, see <https://www.gnu.org/licenses/>  | 
20  |  |  *  | 
21  |  |  */  | 
22  |  |  | 
23  |  | #ifndef GNUTLS_LIB_EXT_SIGNATURE_H  | 
24  |  | #define GNUTLS_LIB_EXT_SIGNATURE_H  | 
25  |  |  | 
26  |  | /* signature algorithms extension  | 
27  |  |  */  | 
28  |  |  | 
29  |  | #include "hello_ext.h"  | 
30  |  |  | 
31  |  | extern const hello_ext_entry_st ext_mod_sig;  | 
32  |  |  | 
33  |  | gnutls_sign_algorithm_t  | 
34  |  | _gnutls_session_get_sign_algo(gnutls_session_t session, gnutls_pcert_st *cert,  | 
35  |  |             gnutls_privkey_t privkey, unsigned client_cert,  | 
36  |  |             gnutls_kx_algorithm_t kx_algorithm);  | 
37  |  | int _gnutls_sign_algorithm_parse_data(gnutls_session_t session,  | 
38  |  |               const uint8_t *data, size_t data_size);  | 
39  |  | int _gnutls_sign_algorithm_write_params(gnutls_session_t session,  | 
40  |  |           gnutls_buffer_st *extdata);  | 
41  |  | int _gnutls_session_sign_algo_enabled(gnutls_session_t session,  | 
42  |  |               gnutls_sign_algorithm_t sig);  | 
43  |  |  | 
44  |  | static inline void  | 
45  |  | gnutls_sign_algorithm_set_server(gnutls_session_t session,  | 
46  |  |          gnutls_sign_algorithm_t sign)  | 
47  | 0  | { | 
48  | 0  |   session->security_parameters.server_sign_algo = sign;  | 
49  | 0  | } Unexecuted instantiation: hello_ext.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: certificate_request.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: certificate_verify.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: tls13-sig.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: signature.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: cert.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: tls-sig.c:gnutls_sign_algorithm_set_server Unexecuted instantiation: vko_gost.c:gnutls_sign_algorithm_set_server  | 
50  |  |  | 
51  |  | static inline void  | 
52  |  | gnutls_sign_algorithm_set_client(gnutls_session_t session,  | 
53  |  |          gnutls_sign_algorithm_t sign)  | 
54  | 0  | { | 
55  | 0  |   session->security_parameters.client_sign_algo = sign;  | 
56  | 0  | } Unexecuted instantiation: hello_ext.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: certificate_request.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: certificate_verify.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: tls13-sig.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: signature.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: cert.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: tls-sig.c:gnutls_sign_algorithm_set_client Unexecuted instantiation: vko_gost.c:gnutls_sign_algorithm_set_client  | 
57  |  |  | 
58  |  | #endif /* GNUTLS_LIB_EXT_SIGNATURE_H */  |