Line | Count | Source |
1 | | /* |
2 | | * Copyright (C) 2000-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_ERRORS_H |
24 | | #define GNUTLS_LIB_ERRORS_H |
25 | | |
26 | | #include "gnutls_int.h" |
27 | | #include "global.h" |
28 | | #include "mpi.h" |
29 | | #include <gnutls/x509.h> |
30 | | |
31 | | #ifdef __FILE__ |
32 | | #ifdef __LINE__ |
33 | | #define gnutls_assert() \ |
34 | 754k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", __FILE__, __func__, __LINE__); |
35 | | #else |
36 | | #define gnutls_assert() |
37 | | #endif |
38 | | #else /* __FILE__ not defined */ |
39 | | #define gnutls_assert() |
40 | | #endif |
41 | | |
42 | | inline static int _gnutls_asn2err(int asn_err) __GNUTLS_CONST__; |
43 | | |
44 | | inline static int _gnutls_asn2err(int asn_err) |
45 | 183k | { |
46 | 183k | switch (asn_err) { |
47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR |
48 | 535 | case ASN1_TIME_ENCODING_ERROR: |
49 | 535 | return GNUTLS_E_ASN1_TIME_ERROR; |
50 | 0 | #endif |
51 | 0 | case ASN1_FILE_NOT_FOUND: |
52 | 0 | return GNUTLS_E_FILE_ERROR; |
53 | 88.1k | case ASN1_ELEMENT_NOT_FOUND: |
54 | 88.1k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; |
55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: |
56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; |
57 | 41.4k | case ASN1_DER_ERROR: |
58 | 41.4k | return GNUTLS_E_ASN1_DER_ERROR; |
59 | 1.80k | case ASN1_VALUE_NOT_FOUND: |
60 | 1.80k | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; |
61 | 63 | case ASN1_GENERIC_ERROR: |
62 | 63 | return GNUTLS_E_ASN1_GENERIC_ERROR; |
63 | 34 | case ASN1_VALUE_NOT_VALID: |
64 | 34 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; |
65 | 45.6k | case ASN1_TAG_ERROR: |
66 | 45.6k | return GNUTLS_E_ASN1_TAG_ERROR; |
67 | 0 | case ASN1_TAG_IMPLICIT: |
68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; |
69 | 0 | case ASN1_ERROR_TYPE_ANY: |
70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; |
71 | 0 | case ASN1_SYNTAX_ERROR: |
72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; |
73 | 4.86k | case ASN1_MEM_ERROR: |
74 | 4.86k | return GNUTLS_E_SHORT_MEMORY_BUFFER; |
75 | 0 | case ASN1_MEM_ALLOC_ERROR: |
76 | 0 | return GNUTLS_E_MEMORY_ERROR; |
77 | 0 | case ASN1_DER_OVERFLOW: |
78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; |
79 | 999 | default: |
80 | 999 | return GNUTLS_E_ASN1_GENERIC_ERROR; |
81 | 183k | } |
82 | 183k | } Unexecuted instantiation: cert-cred.c:_gnutls_asn2err Unexecuted instantiation: global.c:_gnutls_asn2err Unexecuted instantiation: mem.c:_gnutls_asn2err Unexecuted instantiation: system.c:_gnutls_asn2err Unexecuted instantiation: str.c:_gnutls_asn2err Unexecuted instantiation: str-idna.c:_gnutls_asn2err Unexecuted instantiation: cert-cred-x509.c:_gnutls_asn2err Unexecuted instantiation: supplemental.c:_gnutls_asn2err Unexecuted instantiation: random.c:_gnutls_asn2err privkey.c:_gnutls_asn2err Line | Count | Source | 45 | 27.4k | { | 46 | 27.4k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 5 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 5 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 832 | case ASN1_DER_ERROR: | 58 | 832 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 1 | case ASN1_GENERIC_ERROR: | 62 | 1 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 26.6k | case ASN1_TAG_ERROR: | 66 | 26.6k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 27.4k | } | 82 | 27.4k | } |
Unexecuted instantiation: pcert.c:_gnutls_asn2err Line | Count | Source | 45 | 2 | { | 46 | 2 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1 | case ASN1_DER_ERROR: | 58 | 1 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1 | case ASN1_TAG_ERROR: | 66 | 1 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 2 | } | 82 | 2 | } |
Unexecuted instantiation: crypto-backend.c:_gnutls_asn2err Unexecuted instantiation: fips.c:_gnutls_asn2err Unexecuted instantiation: safe-memfuncs.c:_gnutls_asn2err Unexecuted instantiation: atfork.c:_gnutls_asn2err Unexecuted instantiation: urls.c:_gnutls_asn2err Unexecuted instantiation: keys-dummy.c:_gnutls_asn2err Line | Count | Source | 45 | 78.7k | { | 46 | 78.7k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 64.8k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 64.8k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 9.11k | case ASN1_DER_ERROR: | 58 | 9.11k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 1.04k | case ASN1_VALUE_NOT_FOUND: | 60 | 1.04k | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 14 | case ASN1_VALUE_NOT_VALID: | 64 | 14 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 0 | case ASN1_TAG_ERROR: | 66 | 0 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 3.48k | case ASN1_MEM_ERROR: | 74 | 3.48k | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 307 | default: | 80 | 307 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 78.7k | } | 82 | 78.7k | } |
Line | Count | Source | 45 | 5.48k | { | 46 | 5.48k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 66 | case ASN1_TIME_ENCODING_ERROR: | 49 | 66 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 1.22k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 1.22k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 3.59k | case ASN1_DER_ERROR: | 58 | 3.59k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 2 | case ASN1_VALUE_NOT_FOUND: | 60 | 2 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 1 | case ASN1_GENERIC_ERROR: | 62 | 1 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 478 | case ASN1_TAG_ERROR: | 66 | 478 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 116 | case ASN1_MEM_ERROR: | 74 | 116 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 2 | default: | 80 | 2 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 5.48k | } | 82 | 5.48k | } |
Line | Count | Source | 45 | 5.66k | { | 46 | 5.66k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 2.21k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 2.21k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1.78k | case ASN1_DER_ERROR: | 58 | 1.78k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 2 | case ASN1_GENERIC_ERROR: | 62 | 2 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 696 | case ASN1_TAG_ERROR: | 66 | 696 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 965 | case ASN1_MEM_ERROR: | 74 | 965 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 5.66k | } | 82 | 5.66k | } |
Line | Count | Source | 45 | 166 | { | 46 | 166 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 25 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 25 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 0 | case ASN1_DER_ERROR: | 58 | 0 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 0 | case ASN1_TAG_ERROR: | 66 | 0 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 141 | case ASN1_MEM_ERROR: | 74 | 141 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 166 | } | 82 | 166 | } |
extensions.c:_gnutls_asn2err Line | Count | Source | 45 | 158 | { | 46 | 158 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 84 | case ASN1_DER_ERROR: | 58 | 84 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 7 | case ASN1_VALUE_NOT_FOUND: | 60 | 7 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 44 | case ASN1_TAG_ERROR: | 66 | 44 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 23 | case ASN1_MEM_ERROR: | 74 | 23 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 158 | } | 82 | 158 | } |
key_decode.c:_gnutls_asn2err Line | Count | Source | 45 | 1.97k | { | 46 | 1.97k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 40 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 40 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 816 | case ASN1_DER_ERROR: | 58 | 816 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 1 | case ASN1_GENERIC_ERROR: | 62 | 1 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1.11k | case ASN1_TAG_ERROR: | 66 | 1.11k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 1.97k | } | 82 | 1.97k | } |
Unexecuted instantiation: key_encode.c:_gnutls_asn2err Line | Count | Source | 45 | 14.5k | { | 46 | 14.5k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 14.0k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 14.0k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 51 | case ASN1_DER_ERROR: | 58 | 51 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 28 | case ASN1_VALUE_NOT_FOUND: | 60 | 28 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 50 | case ASN1_TAG_ERROR: | 66 | 50 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 423 | default: | 80 | 423 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 14.5k | } | 82 | 14.5k | } |
Unexecuted instantiation: output.c:_gnutls_asn2err Line | Count | Source | 45 | 8.75k | { | 46 | 8.75k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 5.43k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 5.43k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1.93k | case ASN1_DER_ERROR: | 58 | 1.93k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 3 | case ASN1_GENERIC_ERROR: | 62 | 3 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 12 | case ASN1_VALUE_NOT_VALID: | 64 | 12 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1.36k | case ASN1_TAG_ERROR: | 66 | 1.36k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 4 | case ASN1_MEM_ERROR: | 74 | 4 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 8.75k | } | 82 | 8.75k | } |
pkcs12_bag.c:_gnutls_asn2err Line | Count | Source | 45 | 3 | { | 46 | 3 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1 | case ASN1_DER_ERROR: | 58 | 1 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2 | case ASN1_TAG_ERROR: | 66 | 2 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 3 | } | 82 | 3 | } |
Unexecuted instantiation: pkcs12_encr.c:_gnutls_asn2err pkcs7-crypt.c:_gnutls_asn2err Line | Count | Source | 45 | 507 | { | 46 | 507 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 48 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 48 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 184 | case ASN1_DER_ERROR: | 58 | 184 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 3 | case ASN1_GENERIC_ERROR: | 62 | 3 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 1 | case ASN1_VALUE_NOT_VALID: | 64 | 1 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 147 | case ASN1_TAG_ERROR: | 66 | 147 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 124 | default: | 80 | 124 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 507 | } | 82 | 507 | } |
Unexecuted instantiation: privkey_openssl.c:_gnutls_asn2err privkey_pkcs8.c:_gnutls_asn2err Line | Count | Source | 45 | 7.62k | { | 46 | 7.62k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 47 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 47 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 2.84k | case ASN1_DER_ERROR: | 58 | 2.84k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 3 | case ASN1_GENERIC_ERROR: | 62 | 3 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 4.73k | case ASN1_TAG_ERROR: | 66 | 4.73k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 7.62k | } | 82 | 7.62k | } |
privkey_pkcs8_pbes1.c:_gnutls_asn2err Line | Count | Source | 45 | 45 | { | 46 | 45 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 43 | case ASN1_DER_ERROR: | 58 | 43 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2 | case ASN1_TAG_ERROR: | 66 | 2 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 45 | } | 82 | 45 | } |
Unexecuted instantiation: prov-seed.c:_gnutls_asn2err Unexecuted instantiation: sign.c:_gnutls_asn2err Unexecuted instantiation: spki.c:_gnutls_asn2err Unexecuted instantiation: time.c:_gnutls_asn2err Unexecuted instantiation: tls_features.c:_gnutls_asn2err Unexecuted instantiation: verify-high.c:_gnutls_asn2err Unexecuted instantiation: verify-high2.c:_gnutls_asn2err Unexecuted instantiation: verify.c:_gnutls_asn2err Unexecuted instantiation: virt-san.c:_gnutls_asn2err Line | Count | Source | 45 | 12.4k | { | 46 | 12.4k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 266 | case ASN1_TIME_ENCODING_ERROR: | 49 | 266 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 128 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 128 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 8.44k | case ASN1_DER_ERROR: | 58 | 8.44k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 715 | case ASN1_VALUE_NOT_FOUND: | 60 | 715 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 3 | case ASN1_GENERIC_ERROR: | 62 | 3 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2.93k | case ASN1_TAG_ERROR: | 66 | 2.93k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 12.4k | } | 82 | 12.4k | } |
x509_dn.c:_gnutls_asn2err Line | Count | Source | 45 | 1.62k | { | 46 | 1.62k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1.13k | case ASN1_DER_ERROR: | 58 | 1.13k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 1 | case ASN1_GENERIC_ERROR: | 62 | 1 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 492 | case ASN1_TAG_ERROR: | 66 | 492 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 1.62k | } | 82 | 1.62k | } |
x509_ext.c:_gnutls_asn2err Line | Count | Source | 45 | 8.89k | { | 46 | 8.89k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 116 | case ASN1_TIME_ENCODING_ERROR: | 49 | 116 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 5.46k | case ASN1_DER_ERROR: | 58 | 5.46k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 13 | case ASN1_VALUE_NOT_FOUND: | 60 | 13 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 38 | case ASN1_GENERIC_ERROR: | 62 | 38 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 3.05k | case ASN1_TAG_ERROR: | 66 | 3.05k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 65 | case ASN1_MEM_ERROR: | 74 | 65 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 136 | default: | 80 | 136 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 8.89k | } | 82 | 8.89k | } |
Unexecuted instantiation: x509_write.c:_gnutls_asn2err Unexecuted instantiation: ciphers.c:_gnutls_asn2err Unexecuted instantiation: ecc.c:_gnutls_asn2err Unexecuted instantiation: mac.c:_gnutls_asn2err Unexecuted instantiation: publickey.c:_gnutls_asn2err Unexecuted instantiation: secparams.c:_gnutls_asn2err Unexecuted instantiation: accelerated.c:_gnutls_asn2err Unexecuted instantiation: cryptodev.c:_gnutls_asn2err Unexecuted instantiation: x86-common.c:_gnutls_asn2err Unexecuted instantiation: cipher.c:_gnutls_asn2err Unexecuted instantiation: gost28147.c:_gnutls_asn2err Unexecuted instantiation: init.c:_gnutls_asn2err Line | Count | Source | 45 | 47 | { | 46 | 47 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 21 | case ASN1_DER_ERROR: | 58 | 21 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 26 | case ASN1_TAG_ERROR: | 66 | 26 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 47 | } | 82 | 47 | } |
Unexecuted instantiation: rnd-fuzzer.c:_gnutls_asn2err Unexecuted instantiation: rnd.c:_gnutls_asn2err Unexecuted instantiation: rsa-keygen-fips186.c:_gnutls_asn2err Unexecuted instantiation: sysrng-linux.c:_gnutls_asn2err Unexecuted instantiation: compress.c:_gnutls_asn2err Unexecuted instantiation: errors.c:_gnutls_asn2err Unexecuted instantiation: dh.c:_gnutls_asn2err Unexecuted instantiation: kx.c:_gnutls_asn2err Unexecuted instantiation: priority.c:_gnutls_asn2err Unexecuted instantiation: hash_int.c:_gnutls_asn2err Unexecuted instantiation: cipher_int.c:_gnutls_asn2err Unexecuted instantiation: x509_b64.c:_gnutls_asn2err Unexecuted instantiation: hello_ext.c:_gnutls_asn2err Unexecuted instantiation: datum.c:_gnutls_asn2err Unexecuted instantiation: fingerprint.c:_gnutls_asn2err Unexecuted instantiation: certs.c:_gnutls_asn2err Unexecuted instantiation: str-iconv.c:_gnutls_asn2err Unexecuted instantiation: profiles.c:_gnutls_asn2err Unexecuted instantiation: str-unicode.c:_gnutls_asn2err Unexecuted instantiation: state.c:_gnutls_asn2err Unexecuted instantiation: file.c:_gnutls_asn2err Unexecuted instantiation: crypto-api.c:_gnutls_asn2err Unexecuted instantiation: dtls.c:_gnutls_asn2err Unexecuted instantiation: system_override.c:_gnutls_asn2err Unexecuted instantiation: pin.c:_gnutls_asn2err Unexecuted instantiation: prf.c:_gnutls_asn2err Unexecuted instantiation: cert-session.c:_gnutls_asn2err Unexecuted instantiation: dtls-sw.c:_gnutls_asn2err Unexecuted instantiation: secrets.c:_gnutls_asn2err Unexecuted instantiation: extv.c:_gnutls_asn2err Unexecuted instantiation: ocsp-api.c:_gnutls_asn2err Unexecuted instantiation: iov.c:_gnutls_asn2err Unexecuted instantiation: pathbuf.c:_gnutls_asn2err Unexecuted instantiation: audit.c:_gnutls_asn2err attributes.c:_gnutls_asn2err Line | Count | Source | 45 | 39 | { | 46 | 39 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 0 | case ASN1_DER_ERROR: | 58 | 0 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 0 | case ASN1_TAG_ERROR: | 66 | 0 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 32 | case ASN1_MEM_ERROR: | 74 | 32 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 7 | default: | 80 | 7 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 39 | } | 82 | 39 | } |
Unexecuted instantiation: email-verify.c:_gnutls_asn2err Unexecuted instantiation: hostname-verify.c:_gnutls_asn2err Unexecuted instantiation: ip.c:_gnutls_asn2err Unexecuted instantiation: krb5.c:_gnutls_asn2err Unexecuted instantiation: name_constraints.c:_gnutls_asn2err Line | Count | Source | 45 | 5.53k | { | 46 | 5.53k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 87 | case ASN1_TIME_ENCODING_ERROR: | 49 | 87 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 34 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 34 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 3.17k | case ASN1_DER_ERROR: | 58 | 3.17k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 2 | case ASN1_VALUE_NOT_FOUND: | 60 | 2 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 4 | case ASN1_GENERIC_ERROR: | 62 | 4 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2.20k | case ASN1_TAG_ERROR: | 66 | 2.20k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 34 | case ASN1_MEM_ERROR: | 74 | 34 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 5.53k | } | 82 | 5.53k | } |
Unexecuted instantiation: alpn.c:_gnutls_asn2err Unexecuted instantiation: client_cert_type.c:_gnutls_asn2err Unexecuted instantiation: compress_certificate.c:_gnutls_asn2err Unexecuted instantiation: cookie.c:_gnutls_asn2err Unexecuted instantiation: dumbfw.c:_gnutls_asn2err Unexecuted instantiation: early_data.c:_gnutls_asn2err Unexecuted instantiation: ec_point_formats.c:_gnutls_asn2err Unexecuted instantiation: etm.c:_gnutls_asn2err Unexecuted instantiation: ext_master_secret.c:_gnutls_asn2err Unexecuted instantiation: heartbeat.c:_gnutls_asn2err Unexecuted instantiation: key_share.c:_gnutls_asn2err Unexecuted instantiation: max_record.c:_gnutls_asn2err Unexecuted instantiation: post_handshake.c:_gnutls_asn2err Unexecuted instantiation: pre_shared_key.c:_gnutls_asn2err Unexecuted instantiation: psk_ke_modes.c:_gnutls_asn2err Unexecuted instantiation: record_size_limit.c:_gnutls_asn2err Unexecuted instantiation: safe_renegotiation.c:_gnutls_asn2err Unexecuted instantiation: server_cert_type.c:_gnutls_asn2err Unexecuted instantiation: server_name.c:_gnutls_asn2err Unexecuted instantiation: session_ticket.c:_gnutls_asn2err Unexecuted instantiation: signature.c:_gnutls_asn2err Unexecuted instantiation: srtp.c:_gnutls_asn2err Unexecuted instantiation: status_request.c:_gnutls_asn2err Unexecuted instantiation: supported_groups.c:_gnutls_asn2err Unexecuted instantiation: supported_versions.c:_gnutls_asn2err Line | Count | Source | 45 | 1 | { | 46 | 1 | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 0 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 0 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 0 | case ASN1_DER_ERROR: | 58 | 0 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1 | case ASN1_TAG_ERROR: | 66 | 1 | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 0 | case ASN1_MEM_ERROR: | 74 | 0 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 1 | } | 82 | 1 | } |
Unexecuted instantiation: psk_passwd.c:_gnutls_asn2err Unexecuted instantiation: cert_types.c:_gnutls_asn2err Unexecuted instantiation: ciphersuites.c:_gnutls_asn2err Unexecuted instantiation: groups.c:_gnutls_asn2err Unexecuted instantiation: protocols.c:_gnutls_asn2err Unexecuted instantiation: aes-cbc-x86-aesni.c:_gnutls_asn2err Unexecuted instantiation: aes-cbc-x86-ssse3.c:_gnutls_asn2err Unexecuted instantiation: aes-ccm-x86-aesni.c:_gnutls_asn2err Unexecuted instantiation: aes-gcm-padlock.c:_gnutls_asn2err Unexecuted instantiation: aes-gcm-x86-aesni.c:_gnutls_asn2err Unexecuted instantiation: aes-gcm-x86-pclmul-avx.c:_gnutls_asn2err Unexecuted instantiation: aes-gcm-x86-pclmul.c:_gnutls_asn2err Unexecuted instantiation: aes-gcm-x86-ssse3.c:_gnutls_asn2err Unexecuted instantiation: aes-padlock.c:_gnutls_asn2err Unexecuted instantiation: aes-xts-x86-aesni.c:_gnutls_asn2err Unexecuted instantiation: hmac-padlock.c:_gnutls_asn2err Unexecuted instantiation: hmac-x86-ssse3.c:_gnutls_asn2err Unexecuted instantiation: sha-padlock.c:_gnutls_asn2err Unexecuted instantiation: sha-x86-ssse3.c:_gnutls_asn2err Unexecuted instantiation: bignum-le.c:_gnutls_asn2err Unexecuted instantiation: dsa-compute-k.c:_gnutls_asn2err Unexecuted instantiation: dsa-keygen-fips186.c:_gnutls_asn2err Unexecuted instantiation: dsa-validate.c:_gnutls_asn2err Unexecuted instantiation: ecdsa-compute-k.c:_gnutls_asn2err Unexecuted instantiation: gostdsa-mask.c:_gnutls_asn2err Unexecuted instantiation: provable-prime.c:_gnutls_asn2err Unexecuted instantiation: tls1-prf.c:_gnutls_asn2err Unexecuted instantiation: record.c:_gnutls_asn2err Unexecuted instantiation: debug.c:_gnutls_asn2err Unexecuted instantiation: handshake-tls13.c:_gnutls_asn2err Unexecuted instantiation: mbuffers.c:_gnutls_asn2err Unexecuted instantiation: buffers.c:_gnutls_asn2err Unexecuted instantiation: handshake.c:_gnutls_asn2err Unexecuted instantiation: cipher-cbc.c:_gnutls_asn2err Unexecuted instantiation: db.c:_gnutls_asn2err Unexecuted instantiation: auth.c:_gnutls_asn2err Unexecuted instantiation: sslv2_compat.c:_gnutls_asn2err Unexecuted instantiation: session_pack.c:_gnutls_asn2err Unexecuted instantiation: constate.c:_gnutls_asn2err Unexecuted instantiation: tls-sig.c:_gnutls_asn2err Unexecuted instantiation: alert.c:_gnutls_asn2err Unexecuted instantiation: threads.c:_gnutls_asn2err Unexecuted instantiation: sockets.c:_gnutls_asn2err Unexecuted instantiation: dh-session.c:_gnutls_asn2err Unexecuted instantiation: handshake-checks.c:_gnutls_asn2err Unexecuted instantiation: dh-primes.c:_gnutls_asn2err Unexecuted instantiation: hello_ext_lib.c:_gnutls_asn2err Unexecuted instantiation: stek.c:_gnutls_asn2err Unexecuted instantiation: ktls.c:_gnutls_asn2err Unexecuted instantiation: encrypted_extensions.c:_gnutls_asn2err Unexecuted instantiation: certificate_request.c:_gnutls_asn2err Unexecuted instantiation: certificate_verify.c:_gnutls_asn2err Unexecuted instantiation: tls13-sig.c:_gnutls_asn2err Unexecuted instantiation: finished.c:_gnutls_asn2err Unexecuted instantiation: key_update.c:_gnutls_asn2err Unexecuted instantiation: hello_retry.c:_gnutls_asn2err Unexecuted instantiation: certificate.c:_gnutls_asn2err Unexecuted instantiation: psk_ext_parser.c:_gnutls_asn2err Unexecuted instantiation: anti_replay.c:_gnutls_asn2err Unexecuted instantiation: anon.c:_gnutls_asn2err Unexecuted instantiation: anon_ecdh.c:_gnutls_asn2err Unexecuted instantiation: dh_common.c:_gnutls_asn2err Unexecuted instantiation: dhe.c:_gnutls_asn2err Unexecuted instantiation: dhe_psk.c:_gnutls_asn2err Unexecuted instantiation: ecdhe.c:_gnutls_asn2err Unexecuted instantiation: psk.c:_gnutls_asn2err Unexecuted instantiation: rsa.c:_gnutls_asn2err Unexecuted instantiation: rsa_psk.c:_gnutls_asn2err Unexecuted instantiation: vko_gost.c:_gnutls_asn2err Unexecuted instantiation: session.c:_gnutls_asn2err Unexecuted instantiation: vko.c:_gnutls_asn2err Unexecuted instantiation: gost_keywrap.c:_gnutls_asn2err Unexecuted instantiation: gost-wrap.c:_gnutls_asn2err Unexecuted instantiation: srp.c:_gnutls_asn2err Unexecuted instantiation: cert-cred-rawpk.c:_gnutls_asn2err Unexecuted instantiation: ocsp_output.c:_gnutls_asn2err Unexecuted instantiation: pkcs7-output.c:_gnutls_asn2err Line | Count | Source | 45 | 3.77k | { | 46 | 3.77k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 0 | case ASN1_TIME_ENCODING_ERROR: | 49 | 0 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 113 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 113 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 1.95k | case ASN1_DER_ERROR: | 58 | 1.95k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 0 | case ASN1_VALUE_NOT_FOUND: | 60 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 3 | case ASN1_GENERIC_ERROR: | 62 | 3 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 7 | case ASN1_VALUE_NOT_VALID: | 64 | 7 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1.69k | case ASN1_TAG_ERROR: | 66 | 1.69k | return GNUTLS_E_ASN1_TAG_ERROR; | 67 | 0 | case ASN1_TAG_IMPLICIT: | 68 | 0 | return GNUTLS_E_ASN1_TAG_IMPLICIT; | 69 | 0 | case ASN1_ERROR_TYPE_ANY: | 70 | 0 | return GNUTLS_E_ASN1_TYPE_ANY_ERROR; | 71 | 0 | case ASN1_SYNTAX_ERROR: | 72 | 0 | return GNUTLS_E_ASN1_SYNTAX_ERROR; | 73 | 2 | case ASN1_MEM_ERROR: | 74 | 2 | return GNUTLS_E_SHORT_MEMORY_BUFFER; | 75 | 0 | case ASN1_MEM_ALLOC_ERROR: | 76 | 0 | return GNUTLS_E_MEMORY_ERROR; | 77 | 0 | case ASN1_DER_OVERFLOW: | 78 | 0 | return GNUTLS_E_ASN1_DER_OVERFLOW; | 79 | 0 | default: | 80 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 3.77k | } | 82 | 3.77k | } |
Unexecuted instantiation: pkcs7-attrs.c:_gnutls_asn2err Unexecuted instantiation: srp_kx.c:_gnutls_asn2err |
83 | | |
84 | | void _gnutls_log(int, const char *fmt, ...) |
85 | | #ifdef __GNUC__ |
86 | | __attribute__((format(printf, 2, 3))); |
87 | | #else |
88 | | ; |
89 | | #endif |
90 | | |
91 | | void _gnutls_audit_log(gnutls_session_t, const char *fmt, ...) |
92 | | #ifdef __GNUC__ |
93 | | __attribute__((format(printf, 2, 3))); |
94 | | #else |
95 | | ; |
96 | | #endif |
97 | | |
98 | | void _gnutls_mpi_log(const char *prefix, bigint_t a); |
99 | | |
100 | | #define _gnutls_cert_log(str, cert) \ |
101 | 0 | do { \ |
102 | 0 | if (unlikely(_gnutls_log_level >= 3)) { \ |
103 | 0 | gnutls_datum_t _cl_out; \ |
104 | 0 | int _cl_ret; \ |
105 | 0 | _cl_ret = gnutls_x509_crt_print( \ |
106 | 0 | cert, GNUTLS_CRT_PRINT_ONELINE, &_cl_out); \ |
107 | 0 | if (_cl_ret >= 0) { \ |
108 | 0 | _gnutls_log(3, "%s: %s\n", str, _cl_out.data); \ |
109 | 0 | gnutls_free(_cl_out.data); \ |
110 | 0 | } \ |
111 | 0 | } \ |
112 | 0 | } while (0) |
113 | | |
114 | | #define _gnutls_dn_log(str, dn) \ |
115 | 364 | do { \ |
116 | 364 | if (unlikely(_gnutls_log_level >= 3)) { \ |
117 | 0 | gnutls_datum_t _cl_out; \ |
118 | 0 | int _cl_ret; \ |
119 | 0 | _cl_ret = gnutls_x509_rdn_get2((dn), &_cl_out, 0); \ |
120 | 0 | if (_cl_ret >= 0) { \ |
121 | 0 | _gnutls_log(3, "%s: %s\n", str, _cl_out.data); \ |
122 | 0 | gnutls_free(_cl_out.data); \ |
123 | 0 | } \ |
124 | 0 | } \ |
125 | 364 | } while (0) |
126 | | |
127 | | #define _gnutls_reason_log(str, status) \ |
128 | 0 | do { \ |
129 | 0 | if (unlikely(_gnutls_log_level >= 3)) { \ |
130 | 0 | gnutls_datum_t _cl_out; \ |
131 | 0 | int _cl_ret; \ |
132 | 0 | _cl_ret = \ |
133 | 0 | gnutls_certificate_verification_status_print( \ |
134 | 0 | status, GNUTLS_CRT_X509, &_cl_out, 0); \ |
135 | 0 | if (_cl_ret >= 0) { \ |
136 | 0 | _gnutls_log(3, "%s: %s\n", str, _cl_out.data); \ |
137 | 0 | gnutls_free(_cl_out.data); \ |
138 | 0 | } \ |
139 | 0 | } \ |
140 | 0 | } while (0) |
141 | | |
142 | | #ifdef C99_MACROS |
143 | | #define LEVEL(l, ...) \ |
144 | 23.5M | do { \ |
145 | 23.5M | if (unlikely(_gnutls_log_level >= l)) \ |
146 | 23.5M | _gnutls_log(l, __VA_ARGS__); \ |
147 | 23.5M | } while (0) |
148 | | |
149 | 1.23M | #define _gnutls_debug_log(...) LEVEL(2, __VA_ARGS__) |
150 | 3.86M | #define _gnutls_assert_log(...) LEVEL(3, __VA_ARGS__) |
151 | 3.56M | #define _gnutls_handshake_log(...) LEVEL(4, __VA_ARGS__) |
152 | 5.09M | #define _gnutls_record_log(...) LEVEL(5, __VA_ARGS__) |
153 | 0 | #define _gnutls_dtls_log(...) LEVEL(6, __VA_ARGS__) |
154 | | |
155 | 221k | #define _gnutls_hard_log(...) LEVEL(9, __VA_ARGS__) |
156 | | |
157 | 7.95M | #define _gnutls_read_log(...) LEVEL(10, __VA_ARGS__) |
158 | 401k | #define _gnutls_write_log(...) LEVEL(11, __VA_ARGS__) |
159 | | #define _gnutls_io_log(...) LEVEL(12, __VA_ARGS__) |
160 | 1.16M | #define _gnutls_buffers_log(...) LEVEL(13, __VA_ARGS__) |
161 | | #define _gnutls_no_log(...) LEVEL(INT_MAX, __VA_ARGS__) |
162 | | #else |
163 | | #define _gnutls_debug_log _gnutls_null_log |
164 | | #define _gnutls_assert_log _gnutls_null_log |
165 | | #define _gnutls_handshake_log _gnutls_null_log |
166 | | #define _gnutls_io_log _gnutls_null_log |
167 | | #define _gnutls_buffers_log _gnutls_null_log |
168 | | #define _gnutls_hard_log _gnutls_null_log |
169 | | #define _gnutls_record_log _gnutls_null_log |
170 | | #define _gnutls_dtls_log _gnutls_null_log |
171 | | #define _gnutls_read_log _gnutls_null_log |
172 | | #define _gnutls_write_log _gnutls_null_log |
173 | | #define _gnutls_no_log _gnutls_null_log |
174 | | |
175 | | void _gnutls_null_log(void *, ...); |
176 | | |
177 | | #endif /* C99_MACROS */ |
178 | | |
179 | | /* GCC won't inline this by itself and results in a "fatal warning" |
180 | | otherwise. Making this a macro has been tried, but it interacts |
181 | | badly with the do..while in the expansion. Welcome to the dark |
182 | | side. */ |
183 | | static inline |
184 | | #ifdef __GNUC__ |
185 | | __attribute__((always_inline)) |
186 | | #endif |
187 | | int |
188 | | gnutls_assert_val_int(int val, const char *file, const char *func, |
189 | | int line) |
190 | 3.12M | { |
191 | 3.12M | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); |
192 | 3.12M | return val; |
193 | 3.12M | } Unexecuted instantiation: cert-cred.c:gnutls_assert_val_int Unexecuted instantiation: global.c:gnutls_assert_val_int Unexecuted instantiation: mem.c:gnutls_assert_val_int Unexecuted instantiation: system.c:gnutls_assert_val_int Unexecuted instantiation: str.c:gnutls_assert_val_int str-idna.c:gnutls_assert_val_int Line | Count | Source | 190 | 743 | { | 191 | 743 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 743 | return val; | 193 | 743 | } |
Unexecuted instantiation: cert-cred-x509.c:gnutls_assert_val_int Unexecuted instantiation: supplemental.c:gnutls_assert_val_int Unexecuted instantiation: random.c:gnutls_assert_val_int privkey.c:gnutls_assert_val_int Line | Count | Source | 190 | 21.0k | { | 191 | 21.0k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 21.0k | return val; | 193 | 21.0k | } |
pcert.c:gnutls_assert_val_int Line | Count | Source | 190 | 4.92k | { | 191 | 4.92k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.92k | return val; | 193 | 4.92k | } |
pubkey.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.83k | { | 191 | 1.83k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.83k | return val; | 193 | 1.83k | } |
Unexecuted instantiation: crypto-backend.c:gnutls_assert_val_int Unexecuted instantiation: fips.c:gnutls_assert_val_int Unexecuted instantiation: safe-memfuncs.c:gnutls_assert_val_int Unexecuted instantiation: atfork.c:gnutls_assert_val_int Unexecuted instantiation: urls.c:gnutls_assert_val_int Unexecuted instantiation: keys-dummy.c:gnutls_assert_val_int common.c:gnutls_assert_val_int Line | Count | Source | 190 | 44.9k | { | 191 | 44.9k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 44.9k | return val; | 193 | 44.9k | } |
Unexecuted instantiation: crl.c:gnutls_assert_val_int crq.c:gnutls_assert_val_int Line | Count | Source | 190 | 501 | { | 191 | 501 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 501 | return val; | 193 | 501 | } |
dn.c:gnutls_assert_val_int Line | Count | Source | 190 | 827 | { | 191 | 827 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 827 | return val; | 193 | 827 | } |
extensions.c:gnutls_assert_val_int Line | Count | Source | 190 | 921 | { | 191 | 921 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 921 | return val; | 193 | 921 | } |
key_decode.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.27k | { | 191 | 5.27k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.27k | return val; | 193 | 5.27k | } |
key_encode.c:gnutls_assert_val_int Line | Count | Source | 190 | 291 | { | 191 | 291 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 291 | return val; | 193 | 291 | } |
mpi.c:gnutls_assert_val_int Line | Count | Source | 190 | 71 | { | 191 | 71 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 71 | return val; | 193 | 71 | } |
Unexecuted instantiation: output.c:gnutls_assert_val_int pkcs12.c:gnutls_assert_val_int Line | Count | Source | 190 | 585 | { | 191 | 585 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 585 | return val; | 193 | 585 | } |
Unexecuted instantiation: pkcs12_bag.c:gnutls_assert_val_int pkcs12_encr.c:gnutls_assert_val_int Line | Count | Source | 190 | 21 | { | 191 | 21 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 21 | return val; | 193 | 21 | } |
pkcs7-crypt.c:gnutls_assert_val_int Line | Count | Source | 190 | 112 | { | 191 | 112 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 112 | return val; | 193 | 112 | } |
Unexecuted instantiation: privkey_openssl.c:gnutls_assert_val_int privkey_pkcs8.c:gnutls_assert_val_int Line | Count | Source | 190 | 966 | { | 191 | 966 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 966 | return val; | 193 | 966 | } |
privkey_pkcs8_pbes1.c:gnutls_assert_val_int Line | Count | Source | 190 | 32 | { | 191 | 32 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 32 | return val; | 193 | 32 | } |
Unexecuted instantiation: prov-seed.c:gnutls_assert_val_int sign.c:gnutls_assert_val_int Line | Count | Source | 190 | 782 | { | 191 | 782 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 782 | return val; | 193 | 782 | } |
Unexecuted instantiation: spki.c:gnutls_assert_val_int Unexecuted instantiation: time.c:gnutls_assert_val_int tls_features.c:gnutls_assert_val_int Line | Count | Source | 190 | 172 | { | 191 | 172 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 172 | return val; | 193 | 172 | } |
Unexecuted instantiation: verify-high.c:gnutls_assert_val_int Unexecuted instantiation: verify-high2.c:gnutls_assert_val_int Unexecuted instantiation: verify.c:gnutls_assert_val_int virt-san.c:gnutls_assert_val_int Line | Count | Source | 190 | 2.35k | { | 191 | 2.35k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 2.35k | return val; | 193 | 2.35k | } |
x509.c:gnutls_assert_val_int Line | Count | Source | 190 | 16.5k | { | 191 | 16.5k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 16.5k | return val; | 193 | 16.5k | } |
Unexecuted instantiation: x509_dn.c:gnutls_assert_val_int x509_ext.c:gnutls_assert_val_int Line | Count | Source | 190 | 46.7k | { | 191 | 46.7k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 46.7k | return val; | 193 | 46.7k | } |
Unexecuted instantiation: x509_write.c:gnutls_assert_val_int Unexecuted instantiation: ciphers.c:gnutls_assert_val_int ecc.c:gnutls_assert_val_int Line | Count | Source | 190 | 141 | { | 191 | 141 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 141 | return val; | 193 | 141 | } |
Unexecuted instantiation: mac.c:gnutls_assert_val_int Unexecuted instantiation: publickey.c:gnutls_assert_val_int Unexecuted instantiation: secparams.c:gnutls_assert_val_int Unexecuted instantiation: accelerated.c:gnutls_assert_val_int Unexecuted instantiation: cryptodev.c:gnutls_assert_val_int Unexecuted instantiation: x86-common.c:gnutls_assert_val_int cipher.c:gnutls_assert_val_int Line | Count | Source | 190 | 184k | { | 191 | 184k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 184k | return val; | 193 | 184k | } |
Unexecuted instantiation: gost28147.c:gnutls_assert_val_int Unexecuted instantiation: init.c:gnutls_assert_val_int pk.c:gnutls_assert_val_int Line | Count | Source | 190 | 21.9k | { | 191 | 21.9k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 21.9k | return val; | 193 | 21.9k | } |
Unexecuted instantiation: rnd-fuzzer.c:gnutls_assert_val_int Unexecuted instantiation: rnd.c:gnutls_assert_val_int Unexecuted instantiation: rsa-keygen-fips186.c:gnutls_assert_val_int Unexecuted instantiation: sysrng-linux.c:gnutls_assert_val_int Unexecuted instantiation: compress.c:gnutls_assert_val_int Unexecuted instantiation: errors.c:gnutls_assert_val_int Unexecuted instantiation: dh.c:gnutls_assert_val_int Unexecuted instantiation: kx.c:gnutls_assert_val_int Unexecuted instantiation: priority.c:gnutls_assert_val_int Unexecuted instantiation: hash_int.c:gnutls_assert_val_int Unexecuted instantiation: cipher_int.c:gnutls_assert_val_int x509_b64.c:gnutls_assert_val_int Line | Count | Source | 190 | 895 | { | 191 | 895 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 895 | return val; | 193 | 895 | } |
hello_ext.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.86k | { | 191 | 5.86k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.86k | return val; | 193 | 5.86k | } |
datum.c:gnutls_assert_val_int Line | Count | Source | 190 | 3 | { | 191 | 3 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 3 | return val; | 193 | 3 | } |
Unexecuted instantiation: fingerprint.c:gnutls_assert_val_int Unexecuted instantiation: certs.c:gnutls_assert_val_int str-iconv.c:gnutls_assert_val_int Line | Count | Source | 190 | 8.41k | { | 191 | 8.41k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 8.41k | return val; | 193 | 8.41k | } |
Unexecuted instantiation: profiles.c:gnutls_assert_val_int Unexecuted instantiation: str-unicode.c:gnutls_assert_val_int state.c:gnutls_assert_val_int Line | Count | Source | 190 | 7.00k | { | 191 | 7.00k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 7.00k | return val; | 193 | 7.00k | } |
Unexecuted instantiation: file.c:gnutls_assert_val_int crypto-api.c:gnutls_assert_val_int Line | Count | Source | 190 | 25.5k | { | 191 | 25.5k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 25.5k | return val; | 193 | 25.5k | } |
Unexecuted instantiation: dtls.c:gnutls_assert_val_int Unexecuted instantiation: system_override.c:gnutls_assert_val_int Unexecuted instantiation: pin.c:gnutls_assert_val_int Unexecuted instantiation: prf.c:gnutls_assert_val_int Unexecuted instantiation: cert-session.c:gnutls_assert_val_int Unexecuted instantiation: dtls-sw.c:gnutls_assert_val_int Unexecuted instantiation: secrets.c:gnutls_assert_val_int extv.c:gnutls_assert_val_int Line | Count | Source | 190 | 6.44k | { | 191 | 6.44k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 6.44k | return val; | 193 | 6.44k | } |
Unexecuted instantiation: ocsp-api.c:gnutls_assert_val_int Unexecuted instantiation: iov.c:gnutls_assert_val_int Unexecuted instantiation: pathbuf.c:gnutls_assert_val_int Unexecuted instantiation: audit.c:gnutls_assert_val_int Unexecuted instantiation: attributes.c:gnutls_assert_val_int Unexecuted instantiation: email-verify.c:gnutls_assert_val_int Unexecuted instantiation: hostname-verify.c:gnutls_assert_val_int Unexecuted instantiation: ip.c:gnutls_assert_val_int Unexecuted instantiation: krb5.c:gnutls_assert_val_int name_constraints.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.76k | { | 191 | 1.76k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.76k | return val; | 193 | 1.76k | } |
ocsp.c:gnutls_assert_val_int Line | Count | Source | 190 | 70 | { | 191 | 70 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 70 | return val; | 193 | 70 | } |
Unexecuted instantiation: alpn.c:gnutls_assert_val_int client_cert_type.c:gnutls_assert_val_int Line | Count | Source | 190 | 17 | { | 191 | 17 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 17 | return val; | 193 | 17 | } |
Unexecuted instantiation: compress_certificate.c:gnutls_assert_val_int cookie.c:gnutls_assert_val_int Line | Count | Source | 190 | 22 | { | 191 | 22 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 22 | return val; | 193 | 22 | } |
Unexecuted instantiation: dumbfw.c:gnutls_assert_val_int early_data.c:gnutls_assert_val_int Line | Count | Source | 190 | 81 | { | 191 | 81 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 81 | return val; | 193 | 81 | } |
ec_point_formats.c:gnutls_assert_val_int Line | Count | Source | 190 | 42 | { | 191 | 42 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 42 | return val; | 193 | 42 | } |
etm.c:gnutls_assert_val_int Line | Count | Source | 190 | 16 | { | 191 | 16 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 16 | return val; | 193 | 16 | } |
ext_master_secret.c:gnutls_assert_val_int Line | Count | Source | 190 | 12 | { | 191 | 12 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 12 | return val; | 193 | 12 | } |
Unexecuted instantiation: heartbeat.c:gnutls_assert_val_int key_share.c:gnutls_assert_val_int Line | Count | Source | 190 | 7.68k | { | 191 | 7.68k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 7.68k | return val; | 193 | 7.68k | } |
Unexecuted instantiation: max_record.c:gnutls_assert_val_int Unexecuted instantiation: post_handshake.c:gnutls_assert_val_int pre_shared_key.c:gnutls_assert_val_int Line | Count | Source | 190 | 4 | { | 191 | 4 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4 | return val; | 193 | 4 | } |
psk_ke_modes.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.48k | { | 191 | 1.48k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.48k | return val; | 193 | 1.48k | } |
record_size_limit.c:gnutls_assert_val_int Line | Count | Source | 190 | 256 | { | 191 | 256 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 256 | return val; | 193 | 256 | } |
safe_renegotiation.c:gnutls_assert_val_int Line | Count | Source | 190 | 12 | { | 191 | 12 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 12 | return val; | 193 | 12 | } |
server_cert_type.c:gnutls_assert_val_int Line | Count | Source | 190 | 15 | { | 191 | 15 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 15 | return val; | 193 | 15 | } |
server_name.c:gnutls_assert_val_int Line | Count | Source | 190 | 761 | { | 191 | 761 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 761 | return val; | 193 | 761 | } |
session_ticket.c:gnutls_assert_val_int Line | Count | Source | 190 | 540 | { | 191 | 540 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 540 | return val; | 193 | 540 | } |
signature.c:gnutls_assert_val_int Line | Count | Source | 190 | 103 | { | 191 | 103 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 103 | return val; | 193 | 103 | } |
Unexecuted instantiation: srtp.c:gnutls_assert_val_int status_request.c:gnutls_assert_val_int Line | Count | Source | 190 | 248 | { | 191 | 248 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 248 | return val; | 193 | 248 | } |
supported_groups.c:gnutls_assert_val_int Line | Count | Source | 190 | 47 | { | 191 | 47 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 47 | return val; | 193 | 47 | } |
supported_versions.c:gnutls_assert_val_int Line | Count | Source | 190 | 117 | { | 191 | 117 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 117 | return val; | 193 | 117 | } |
cert.c:gnutls_assert_val_int Line | Count | Source | 190 | 23.8k | { | 191 | 23.8k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 23.8k | return val; | 193 | 23.8k | } |
Unexecuted instantiation: psk_passwd.c:gnutls_assert_val_int Unexecuted instantiation: cert_types.c:gnutls_assert_val_int ciphersuites.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.51k | { | 191 | 1.51k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.51k | return val; | 193 | 1.51k | } |
Unexecuted instantiation: groups.c:gnutls_assert_val_int Unexecuted instantiation: protocols.c:gnutls_assert_val_int Unexecuted instantiation: aes-cbc-x86-aesni.c:gnutls_assert_val_int Unexecuted instantiation: aes-cbc-x86-ssse3.c:gnutls_assert_val_int aes-ccm-x86-aesni.c:gnutls_assert_val_int Line | Count | Source | 190 | 7.07k | { | 191 | 7.07k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 7.07k | return val; | 193 | 7.07k | } |
Unexecuted instantiation: aes-gcm-padlock.c:gnutls_assert_val_int Unexecuted instantiation: aes-gcm-x86-aesni.c:gnutls_assert_val_int aes-gcm-x86-pclmul-avx.c:gnutls_assert_val_int Line | Count | Source | 190 | 4.76k | { | 191 | 4.76k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.76k | return val; | 193 | 4.76k | } |
Unexecuted instantiation: aes-gcm-x86-pclmul.c:gnutls_assert_val_int Unexecuted instantiation: aes-gcm-x86-ssse3.c:gnutls_assert_val_int Unexecuted instantiation: aes-padlock.c:gnutls_assert_val_int Unexecuted instantiation: aes-xts-x86-aesni.c:gnutls_assert_val_int Unexecuted instantiation: hmac-padlock.c:gnutls_assert_val_int Unexecuted instantiation: hmac-x86-ssse3.c:gnutls_assert_val_int Unexecuted instantiation: sha-padlock.c:gnutls_assert_val_int Unexecuted instantiation: sha-x86-ssse3.c:gnutls_assert_val_int Unexecuted instantiation: bignum-le.c:gnutls_assert_val_int Unexecuted instantiation: dsa-compute-k.c:gnutls_assert_val_int Unexecuted instantiation: dsa-keygen-fips186.c:gnutls_assert_val_int Unexecuted instantiation: dsa-validate.c:gnutls_assert_val_int Unexecuted instantiation: ecdsa-compute-k.c:gnutls_assert_val_int Unexecuted instantiation: gostdsa-mask.c:gnutls_assert_val_int Unexecuted instantiation: provable-prime.c:gnutls_assert_val_int Unexecuted instantiation: tls1-prf.c:gnutls_assert_val_int record.c:gnutls_assert_val_int Line | Count | Source | 190 | 127k | { | 191 | 127k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 127k | return val; | 193 | 127k | } |
Unexecuted instantiation: debug.c:gnutls_assert_val_int handshake-tls13.c:gnutls_assert_val_int Line | Count | Source | 190 | 12 | { | 191 | 12 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 12 | return val; | 193 | 12 | } |
Unexecuted instantiation: mbuffers.c:gnutls_assert_val_int buffers.c:gnutls_assert_val_int Line | Count | Source | 190 | 2.39M | { | 191 | 2.39M | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 2.39M | return val; | 193 | 2.39M | } |
handshake.c:gnutls_assert_val_int Line | Count | Source | 190 | 24.5k | { | 191 | 24.5k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 24.5k | return val; | 193 | 24.5k | } |
cipher-cbc.c:gnutls_assert_val_int Line | Count | Source | 190 | 106 | { | 191 | 106 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 106 | return val; | 193 | 106 | } |
Unexecuted instantiation: db.c:gnutls_assert_val_int Unexecuted instantiation: auth.c:gnutls_assert_val_int Unexecuted instantiation: sslv2_compat.c:gnutls_assert_val_int Unexecuted instantiation: session_pack.c:gnutls_assert_val_int constate.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.61k | { | 191 | 1.61k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.61k | return val; | 193 | 1.61k | } |
tls-sig.c:gnutls_assert_val_int Line | Count | Source | 190 | 3.15k | { | 191 | 3.15k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 3.15k | return val; | 193 | 3.15k | } |
Unexecuted instantiation: alert.c:gnutls_assert_val_int Unexecuted instantiation: threads.c:gnutls_assert_val_int Unexecuted instantiation: sockets.c:gnutls_assert_val_int Unexecuted instantiation: dh-session.c:gnutls_assert_val_int Unexecuted instantiation: handshake-checks.c:gnutls_assert_val_int Unexecuted instantiation: dh-primes.c:gnutls_assert_val_int hello_ext_lib.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.67k | { | 191 | 5.67k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.67k | return val; | 193 | 5.67k | } |
Unexecuted instantiation: stek.c:gnutls_assert_val_int Unexecuted instantiation: ktls.c:gnutls_assert_val_int encrypted_extensions.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.25k | { | 191 | 5.25k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.25k | return val; | 193 | 5.25k | } |
certificate_request.c:gnutls_assert_val_int Line | Count | Source | 190 | 4.81k | { | 191 | 4.81k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.81k | return val; | 193 | 4.81k | } |
certificate_verify.c:gnutls_assert_val_int Line | Count | Source | 190 | 4.03k | { | 191 | 4.03k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.03k | return val; | 193 | 4.03k | } |
tls13-sig.c:gnutls_assert_val_int Line | Count | Source | 190 | 29 | { | 191 | 29 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 29 | return val; | 193 | 29 | } |
finished.c:gnutls_assert_val_int Line | Count | Source | 190 | 86.6k | { | 191 | 86.6k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 86.6k | return val; | 193 | 86.6k | } |
Unexecuted instantiation: key_update.c:gnutls_assert_val_int hello_retry.c:gnutls_assert_val_int Line | Count | Source | 190 | 543 | { | 191 | 543 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 543 | return val; | 193 | 543 | } |
certificate.c:gnutls_assert_val_int Line | Count | Source | 190 | 338 | { | 191 | 338 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 338 | return val; | 193 | 338 | } |
Unexecuted instantiation: psk_ext_parser.c:gnutls_assert_val_int Unexecuted instantiation: anti_replay.c:gnutls_assert_val_int Unexecuted instantiation: anon.c:gnutls_assert_val_int Unexecuted instantiation: anon_ecdh.c:gnutls_assert_val_int dh_common.c:gnutls_assert_val_int Line | Count | Source | 190 | 186 | { | 191 | 186 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 186 | return val; | 193 | 186 | } |
dhe.c:gnutls_assert_val_int Line | Count | Source | 190 | 127 | { | 191 | 127 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 127 | return val; | 193 | 127 | } |
Unexecuted instantiation: dhe_psk.c:gnutls_assert_val_int ecdhe.c:gnutls_assert_val_int Line | Count | Source | 190 | 899 | { | 191 | 899 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 899 | return val; | 193 | 899 | } |
Unexecuted instantiation: psk.c:gnutls_assert_val_int rsa.c:gnutls_assert_val_int Line | Count | Source | 190 | 19 | { | 191 | 19 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 19 | return val; | 193 | 19 | } |
Unexecuted instantiation: rsa_psk.c:gnutls_assert_val_int Unexecuted instantiation: vko_gost.c:gnutls_assert_val_int Unexecuted instantiation: session.c:gnutls_assert_val_int Unexecuted instantiation: vko.c:gnutls_assert_val_int Unexecuted instantiation: gost_keywrap.c:gnutls_assert_val_int Unexecuted instantiation: gost-wrap.c:gnutls_assert_val_int Unexecuted instantiation: srp.c:gnutls_assert_val_int Unexecuted instantiation: cert-cred-rawpk.c:gnutls_assert_val_int Unexecuted instantiation: ocsp_output.c:gnutls_assert_val_int Unexecuted instantiation: pkcs7-output.c:gnutls_assert_val_int pkcs7.c:gnutls_assert_val_int Line | Count | Source | 190 | 16 | { | 191 | 16 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 16 | return val; | 193 | 16 | } |
Unexecuted instantiation: pkcs7-attrs.c:gnutls_assert_val_int Unexecuted instantiation: srp_kx.c:gnutls_assert_val_int |
194 | | |
195 | | #define gnutls_assert_val(x) \ |
196 | 3.11M | gnutls_assert_val_int(x, __FILE__, __func__, __LINE__) |
197 | | #define gnutls_assert_val_fatal(x) \ |
198 | 1.27M | (((x) != GNUTLS_E_AGAIN && (x) != GNUTLS_E_INTERRUPTED) ? \ |
199 | 1.27M | gnutls_assert_val_int(x, __FILE__, __func__, __LINE__) : \ |
200 | 1.27M | (x)) |
201 | | |
202 | | #endif /* GNUTLS_LIB_ERRORS_H */ |