/src/gnutls/lib/ext/pre_shared_key.h
Line | Count | Source (jump to first uncovered line) |
1 | | #ifndef GNUTLS_LIB_EXT_PRE_SHARED_KEY_H |
2 | | # define GNUTLS_LIB_EXT_PRE_SHARED_KEY_H |
3 | | |
4 | | # include "auth/psk.h" |
5 | | # include <hello_ext.h> |
6 | | # include "tls13/session_ticket.h" |
7 | | |
8 | 0 | # define PRE_SHARED_KEY_TLS_ID 41 |
9 | | |
10 | | extern const hello_ext_entry_st ext_mod_pre_shared_key; |
11 | | |
12 | | inline static |
13 | | unsigned _gnutls_have_psk_credentials(const gnutls_psk_client_credentials_t |
14 | | cred, gnutls_session_t session) |
15 | 0 | { |
16 | 0 | if ((cred->get_function || cred->username.data) |
17 | 0 | && session->internals.priorities->have_psk) |
18 | 0 | return 1; |
19 | 0 | else |
20 | 0 | return 0; |
21 | 0 | } Unexecuted instantiation: handshake-tls13.c:_gnutls_have_psk_credentials Unexecuted instantiation: handshake.c:_gnutls_have_psk_credentials Unexecuted instantiation: hello_ext.c:_gnutls_have_psk_credentials Unexecuted instantiation: session_ticket.c:_gnutls_have_psk_credentials |
22 | | |
23 | | int _gnutls_generate_early_secrets_for_psk(gnutls_session_t session); |
24 | | |
25 | | #endif /* GNUTLS_LIB_EXT_PRE_SHARED_KEY_H */ |