Coverage Report

Created: 2023-03-26 07:33

/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,
35
            gnutls_pcert_st * cert,
36
            gnutls_privkey_t privkey,
37
            unsigned client_cert,
38
            gnutls_kx_algorithm_t kx_algorithm);
39
int _gnutls_sign_algorithm_parse_data(gnutls_session_t session,
40
              const uint8_t * data, size_t data_size);
41
int _gnutls_sign_algorithm_write_params(gnutls_session_t session,
42
          gnutls_buffer_st * extdata);
43
int _gnutls_session_sign_algo_enabled(gnutls_session_t session,
44
              gnutls_sign_algorithm_t sig);
45
46
static inline void
47
gnutls_sign_algorithm_set_server(gnutls_session_t session,
48
         gnutls_sign_algorithm_t sign)
49
0
{
50
0
  session->security_parameters.server_sign_algo = sign;
51
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: tls-sig.c:gnutls_sign_algorithm_set_server
52
53
static inline void
54
gnutls_sign_algorithm_set_client(gnutls_session_t session,
55
         gnutls_sign_algorithm_t sign)
56
0
{
57
0
  session->security_parameters.client_sign_algo = sign;
58
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: tls-sig.c:gnutls_sign_algorithm_set_client
59
60
#endif        /* GNUTLS_LIB_EXT_SIGNATURE_H */