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 | 650k | _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 | 167k | { |
46 | 167k | switch (asn_err) { |
47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR |
48 | 497 | case ASN1_TIME_ENCODING_ERROR: |
49 | 497 | return GNUTLS_E_ASN1_TIME_ERROR; |
50 | 0 | #endif |
51 | 0 | case ASN1_FILE_NOT_FOUND: |
52 | 0 | return GNUTLS_E_FILE_ERROR; |
53 | 81.1k | case ASN1_ELEMENT_NOT_FOUND: |
54 | 81.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 | 39.8k | case ASN1_DER_ERROR: |
58 | 39.8k | return GNUTLS_E_ASN1_DER_ERROR; |
59 | 1.70k | case ASN1_VALUE_NOT_FOUND: |
60 | 1.70k | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; |
61 | 61 | case ASN1_GENERIC_ERROR: |
62 | 61 | return GNUTLS_E_ASN1_GENERIC_ERROR; |
63 | 34 | case ASN1_VALUE_NOT_VALID: |
64 | 34 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; |
65 | 38.9k | case ASN1_TAG_ERROR: |
66 | 38.9k | 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.60k | case ASN1_MEM_ERROR: |
74 | 4.60k | 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 | 922 | default: |
80 | 922 | return GNUTLS_E_ASN1_GENERIC_ERROR; |
81 | 167k | } |
82 | 167k | } 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 | 22.3k | { | 46 | 22.3k | 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 | 672 | case ASN1_DER_ERROR: | 58 | 672 | 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 | 21.6k | case ASN1_TAG_ERROR: | 66 | 21.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 | 22.3k | } | 82 | 22.3k | } |
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 | 73.0k | { | 46 | 73.0k | 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 | 58.4k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 58.4k | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 10.1k | case ASN1_DER_ERROR: | 58 | 10.1k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 974 | case ASN1_VALUE_NOT_FOUND: | 60 | 974 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 0 | case ASN1_GENERIC_ERROR: | 62 | 0 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 16 | case ASN1_VALUE_NOT_VALID: | 64 | 16 | 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.21k | case ASN1_MEM_ERROR: | 74 | 3.21k | 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 | 294 | default: | 80 | 294 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 73.0k | } | 82 | 73.0k | } |
Line | Count | Source | 45 | 5.40k | { | 46 | 5.40k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 68 | case ASN1_TIME_ENCODING_ERROR: | 49 | 68 | 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.25k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 1.25k | 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.54k | case ASN1_DER_ERROR: | 58 | 3.54k | 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 | 440 | case ASN1_TAG_ERROR: | 66 | 440 | 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 | 91 | case ASN1_MEM_ERROR: | 74 | 91 | 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.40k | } | 82 | 5.40k | } |
Line | Count | Source | 45 | 5.82k | { | 46 | 5.82k | 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.32k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 2.32k | 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.80k | case ASN1_DER_ERROR: | 58 | 1.80k | 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 | 705 | case ASN1_TAG_ERROR: | 66 | 705 | 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 | 996 | case ASN1_MEM_ERROR: | 74 | 996 | 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.82k | } | 82 | 5.82k | } |
Line | Count | Source | 45 | 243 | { | 46 | 243 | 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 | 94 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 94 | 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 | 149 | case ASN1_MEM_ERROR: | 74 | 149 | 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 | 243 | } | 82 | 243 | } |
extensions.c:_gnutls_asn2err Line | Count | Source | 45 | 160 | { | 46 | 160 | 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 | 83 | case ASN1_DER_ERROR: | 58 | 83 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 13 | case ASN1_VALUE_NOT_FOUND: | 60 | 13 | 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 | 39 | case ASN1_TAG_ERROR: | 66 | 39 | 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 | 25 | case ASN1_MEM_ERROR: | 74 | 25 | 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 | 160 | } | 82 | 160 | } |
key_decode.c:_gnutls_asn2err Line | Count | Source | 45 | 1.68k | { | 46 | 1.68k | 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 | 38 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 38 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 722 | case ASN1_DER_ERROR: | 58 | 722 | 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 | 929 | case ASN1_TAG_ERROR: | 66 | 929 | 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.68k | } | 82 | 1.68k | } |
Unexecuted instantiation: key_encode.c:_gnutls_asn2err Line | Count | Source | 45 | 13.6k | { | 46 | 13.6k | 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 | 13.0k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 13.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 | 45 | case ASN1_DER_ERROR: | 58 | 45 | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 30 | case ASN1_VALUE_NOT_FOUND: | 60 | 30 | 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 | 47 | case ASN1_TAG_ERROR: | 66 | 47 | 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 | 402 | default: | 80 | 402 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 13.6k | } | 82 | 13.6k | } |
Unexecuted instantiation: output.c:_gnutls_asn2err Line | Count | Source | 45 | 9.01k | { | 46 | 9.01k | 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.60k | case ASN1_ELEMENT_NOT_FOUND: | 54 | 5.60k | 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 | 4 | case ASN1_GENERIC_ERROR: | 62 | 4 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 11 | case ASN1_VALUE_NOT_VALID: | 64 | 11 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 1.43k | case ASN1_TAG_ERROR: | 66 | 1.43k | 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 | 5 | case ASN1_MEM_ERROR: | 74 | 5 | 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 | 9.01k | } | 82 | 9.01k | } |
pkcs12_bag.c:_gnutls_asn2err Line | Count | Source | 45 | 5 | { | 46 | 5 | 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 | 5 | case ASN1_TAG_ERROR: | 66 | 5 | 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 | 5 | } | 82 | 5 | } |
Unexecuted instantiation: pkcs12_encr.c:_gnutls_asn2err pkcs7-crypt.c:_gnutls_asn2err Line | Count | Source | 45 | 448 | { | 46 | 448 | 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 | 170 | case ASN1_DER_ERROR: | 58 | 170 | 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 | 136 | case ASN1_TAG_ERROR: | 66 | 136 | 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 | 91 | default: | 80 | 91 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 448 | } | 82 | 448 | } |
Unexecuted instantiation: privkey_openssl.c:_gnutls_asn2err privkey_pkcs8.c:_gnutls_asn2err Line | Count | Source | 45 | 6.28k | { | 46 | 6.28k | 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 | 50 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 50 | 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.25k | case ASN1_DER_ERROR: | 58 | 2.25k | 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 | 3.97k | case ASN1_TAG_ERROR: | 66 | 3.97k | 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 | 6.28k | } | 82 | 6.28k | } |
privkey_pkcs8_pbes1.c:_gnutls_asn2err Line | Count | Source | 45 | 37 | { | 46 | 37 | 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 | 34 | case ASN1_DER_ERROR: | 58 | 34 | 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 | 3 | case ASN1_TAG_ERROR: | 66 | 3 | 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 | 37 | } | 82 | 37 | } |
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 | 10.6k | { | 46 | 10.6k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 210 | case ASN1_TIME_ENCODING_ERROR: | 49 | 210 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 126 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 126 | return GNUTLS_E_ASN1_ELEMENT_NOT_FOUND; | 55 | 0 | case ASN1_IDENTIFIER_NOT_FOUND: | 56 | 0 | return GNUTLS_E_ASN1_IDENTIFIER_NOT_FOUND; | 57 | 7.15k | case ASN1_DER_ERROR: | 58 | 7.15k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 662 | case ASN1_VALUE_NOT_FOUND: | 60 | 662 | 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.49k | case ASN1_TAG_ERROR: | 66 | 2.49k | 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 | 10.6k | } | 82 | 10.6k | } |
x509_dn.c:_gnutls_asn2err Line | Count | Source | 45 | 1.75k | { | 46 | 1.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 | 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.24k | case ASN1_DER_ERROR: | 58 | 1.24k | 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 | 510 | case ASN1_TAG_ERROR: | 66 | 510 | 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.75k | } | 82 | 1.75k | } |
x509_ext.c:_gnutls_asn2err Line | Count | Source | 45 | 8.11k | { | 46 | 8.11k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 136 | case ASN1_TIME_ENCODING_ERROR: | 49 | 136 | 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.01k | case ASN1_DER_ERROR: | 58 | 5.01k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 17 | case ASN1_VALUE_NOT_FOUND: | 60 | 17 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 35 | case ASN1_GENERIC_ERROR: | 62 | 35 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2.72k | case ASN1_TAG_ERROR: | 66 | 2.72k | 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 | 73 | case ASN1_MEM_ERROR: | 74 | 73 | 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 | 125 | default: | 80 | 125 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 8.11k | } | 82 | 8.11k | } |
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 | 46 | { | 46 | 46 | 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 | 22 | case ASN1_DER_ERROR: | 58 | 22 | 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 | 24 | case ASN1_TAG_ERROR: | 66 | 24 | 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 | 46 | } | 82 | 46 | } |
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 | 31 | { | 46 | 31 | 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 | 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 | 8 | default: | 80 | 8 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 81 | 31 | } | 82 | 31 | } |
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.38k | { | 46 | 5.38k | switch (asn_err) { | 47 | 0 | #ifdef ASN1_TIME_ENCODING_ERROR | 48 | 83 | case ASN1_TIME_ENCODING_ERROR: | 49 | 83 | return GNUTLS_E_ASN1_TIME_ERROR; | 50 | 0 | #endif | 51 | 0 | case ASN1_FILE_NOT_FOUND: | 52 | 0 | return GNUTLS_E_FILE_ERROR; | 53 | 30 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 30 | 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.09k | case ASN1_DER_ERROR: | 58 | 3.09k | return GNUTLS_E_ASN1_DER_ERROR; | 59 | 2 | case ASN1_VALUE_NOT_FOUND: | 60 | 2 | return GNUTLS_E_ASN1_VALUE_NOT_FOUND; | 61 | 5 | case ASN1_GENERIC_ERROR: | 62 | 5 | return GNUTLS_E_ASN1_GENERIC_ERROR; | 63 | 0 | case ASN1_VALUE_NOT_VALID: | 64 | 0 | return GNUTLS_E_ASN1_VALUE_NOT_VALID; | 65 | 2.13k | case ASN1_TAG_ERROR: | 66 | 2.13k | 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.38k | } | 82 | 5.38k | } |
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.72k | { | 46 | 3.72k | 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 | 104 | case ASN1_ELEMENT_NOT_FOUND: | 54 | 104 | 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.91k | case ASN1_DER_ERROR: | 58 | 1.91k | 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 | 6 | case ASN1_VALUE_NOT_VALID: | 64 | 6 | 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.72k | } | 82 | 3.72k | } |
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 | 310 | do { \ |
116 | 310 | 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 | 310 | } 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 | 21.3M | do { \ |
145 | 21.3M | if (unlikely(_gnutls_log_level >= l)) \ |
146 | 21.3M | _gnutls_log(l, __VA_ARGS__); \ |
147 | 21.3M | } while (0) |
148 | | |
149 | 992k | #define _gnutls_debug_log(...) LEVEL(2, __VA_ARGS__) |
150 | 3.43M | #define _gnutls_assert_log(...) LEVEL(3, __VA_ARGS__) |
151 | 2.83M | #define _gnutls_handshake_log(...) LEVEL(4, __VA_ARGS__) |
152 | 4.70M | #define _gnutls_record_log(...) LEVEL(5, __VA_ARGS__) |
153 | 0 | #define _gnutls_dtls_log(...) LEVEL(6, __VA_ARGS__) |
154 | | |
155 | 183k | #define _gnutls_hard_log(...) LEVEL(9, __VA_ARGS__) |
156 | | |
157 | 7.78M | #define _gnutls_read_log(...) LEVEL(10, __VA_ARGS__) |
158 | 315k | #define _gnutls_write_log(...) LEVEL(11, __VA_ARGS__) |
159 | | #define _gnutls_io_log(...) LEVEL(12, __VA_ARGS__) |
160 | 1.11M | #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 | 2.79M | { |
191 | 2.79M | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); |
192 | 2.79M | return val; |
193 | 2.79M | } 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 | 759 | { | 191 | 759 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 759 | return val; | 193 | 759 | } |
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 | 16.7k | { | 191 | 16.7k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 16.7k | return val; | 193 | 16.7k | } |
pcert.c:gnutls_assert_val_int Line | Count | Source | 190 | 3.91k | { | 191 | 3.91k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 3.91k | return val; | 193 | 3.91k | } |
pubkey.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.54k | { | 191 | 1.54k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.54k | return val; | 193 | 1.54k | } |
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.2k | { | 191 | 44.2k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 44.2k | return val; | 193 | 44.2k | } |
Unexecuted instantiation: crl.c:gnutls_assert_val_int crq.c:gnutls_assert_val_int Line | Count | Source | 190 | 476 | { | 191 | 476 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 476 | return val; | 193 | 476 | } |
dn.c:gnutls_assert_val_int Line | Count | Source | 190 | 768 | { | 191 | 768 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 768 | return val; | 193 | 768 | } |
extensions.c:gnutls_assert_val_int Line | Count | Source | 190 | 657 | { | 191 | 657 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 657 | return val; | 193 | 657 | } |
key_decode.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.03k | { | 191 | 5.03k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.03k | return val; | 193 | 5.03k | } |
key_encode.c:gnutls_assert_val_int Line | Count | Source | 190 | 278 | { | 191 | 278 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 278 | return val; | 193 | 278 | } |
mpi.c:gnutls_assert_val_int Line | Count | Source | 190 | 53 | { | 191 | 53 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 53 | return val; | 193 | 53 | } |
Unexecuted instantiation: output.c:gnutls_assert_val_int pkcs12.c:gnutls_assert_val_int Line | Count | Source | 190 | 666 | { | 191 | 666 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 666 | return val; | 193 | 666 | } |
Unexecuted instantiation: pkcs12_bag.c:gnutls_assert_val_int pkcs12_encr.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 | } |
pkcs7-crypt.c:gnutls_assert_val_int Line | Count | Source | 190 | 87 | { | 191 | 87 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 87 | return val; | 193 | 87 | } |
Unexecuted instantiation: privkey_openssl.c:gnutls_assert_val_int privkey_pkcs8.c:gnutls_assert_val_int Line | Count | Source | 190 | 845 | { | 191 | 845 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 845 | return val; | 193 | 845 | } |
privkey_pkcs8_pbes1.c:gnutls_assert_val_int Line | Count | Source | 190 | 28 | { | 191 | 28 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 28 | return val; | 193 | 28 | } |
Unexecuted instantiation: prov-seed.c:gnutls_assert_val_int sign.c:gnutls_assert_val_int Line | Count | Source | 190 | 888 | { | 191 | 888 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 888 | return val; | 193 | 888 | } |
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 | 174 | { | 191 | 174 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 174 | return val; | 193 | 174 | } |
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.63k | { | 191 | 2.63k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 2.63k | return val; | 193 | 2.63k | } |
x509.c:gnutls_assert_val_int Line | Count | Source | 190 | 15.5k | { | 191 | 15.5k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 15.5k | return val; | 193 | 15.5k | } |
Unexecuted instantiation: x509_dn.c:gnutls_assert_val_int x509_ext.c:gnutls_assert_val_int Line | Count | Source | 190 | 38.1k | { | 191 | 38.1k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 38.1k | return val; | 193 | 38.1k | } |
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 | 99 | { | 191 | 99 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 99 | return val; | 193 | 99 | } |
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 | 113k | { | 191 | 113k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 113k | return val; | 193 | 113k | } |
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 | 19.7k | { | 191 | 19.7k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 19.7k | return val; | 193 | 19.7k | } |
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 | 943 | { | 191 | 943 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 943 | return val; | 193 | 943 | } |
hello_ext.c:gnutls_assert_val_int Line | Count | Source | 190 | 5.05k | { | 191 | 5.05k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.05k | return val; | 193 | 5.05k | } |
datum.c:gnutls_assert_val_int Line | Count | Source | 190 | 5 | { | 191 | 5 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5 | return val; | 193 | 5 | } |
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.73k | { | 191 | 8.73k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 8.73k | return val; | 193 | 8.73k | } |
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 | 5.29k | { | 191 | 5.29k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.29k | return val; | 193 | 5.29k | } |
Unexecuted instantiation: file.c:gnutls_assert_val_int crypto-api.c:gnutls_assert_val_int Line | Count | Source | 190 | 19.4k | { | 191 | 19.4k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 19.4k | return val; | 193 | 19.4k | } |
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 | 5.74k | { | 191 | 5.74k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5.74k | return val; | 193 | 5.74k | } |
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.78k | { | 191 | 1.78k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.78k | return val; | 193 | 1.78k | } |
ocsp.c:gnutls_assert_val_int Line | Count | Source | 190 | 72 | { | 191 | 72 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 72 | return val; | 193 | 72 | } |
Unexecuted instantiation: alpn.c:gnutls_assert_val_int client_cert_type.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: compress_certificate.c:gnutls_assert_val_int cookie.c:gnutls_assert_val_int Line | Count | Source | 190 | 25 | { | 191 | 25 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 25 | return val; | 193 | 25 | } |
Unexecuted instantiation: dumbfw.c:gnutls_assert_val_int early_data.c:gnutls_assert_val_int Line | Count | Source | 190 | 79 | { | 191 | 79 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 79 | return val; | 193 | 79 | } |
ec_point_formats.c:gnutls_assert_val_int Line | Count | Source | 190 | 37 | { | 191 | 37 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 37 | return val; | 193 | 37 | } |
etm.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 | } |
ext_master_secret.c:gnutls_assert_val_int Line | Count | Source | 190 | 10 | { | 191 | 10 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 10 | return val; | 193 | 10 | } |
Unexecuted instantiation: heartbeat.c:gnutls_assert_val_int key_share.c:gnutls_assert_val_int Line | Count | Source | 190 | 6.59k | { | 191 | 6.59k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 6.59k | return val; | 193 | 6.59k | } |
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 | 5 | { | 191 | 5 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 5 | return val; | 193 | 5 | } |
psk_ke_modes.c:gnutls_assert_val_int Line | Count | Source | 190 | 1.26k | { | 191 | 1.26k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.26k | return val; | 193 | 1.26k | } |
record_size_limit.c:gnutls_assert_val_int Line | Count | Source | 190 | 277 | { | 191 | 277 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 277 | return val; | 193 | 277 | } |
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 | 16 | { | 191 | 16 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 16 | return val; | 193 | 16 | } |
server_name.c:gnutls_assert_val_int Line | Count | Source | 190 | 692 | { | 191 | 692 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 692 | return val; | 193 | 692 | } |
session_ticket.c:gnutls_assert_val_int Line | Count | Source | 190 | 450 | { | 191 | 450 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 450 | return val; | 193 | 450 | } |
signature.c:gnutls_assert_val_int Line | Count | Source | 190 | 85 | { | 191 | 85 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 85 | return val; | 193 | 85 | } |
Unexecuted instantiation: srtp.c:gnutls_assert_val_int status_request.c:gnutls_assert_val_int Line | Count | Source | 190 | 222 | { | 191 | 222 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 222 | return val; | 193 | 222 | } |
supported_groups.c:gnutls_assert_val_int Line | Count | Source | 190 | 43 | { | 191 | 43 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 43 | return val; | 193 | 43 | } |
supported_versions.c:gnutls_assert_val_int Line | Count | Source | 190 | 96 | { | 191 | 96 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 96 | return val; | 193 | 96 | } |
cert.c:gnutls_assert_val_int Line | Count | Source | 190 | 21.2k | { | 191 | 21.2k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 21.2k | return val; | 193 | 21.2k | } |
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.26k | { | 191 | 1.26k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.26k | return val; | 193 | 1.26k | } |
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 | 6.26k | { | 191 | 6.26k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 6.26k | return val; | 193 | 6.26k | } |
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 | 3.65k | { | 191 | 3.65k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 3.65k | return val; | 193 | 3.65k | } |
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 | 84.9k | { | 191 | 84.9k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 84.9k | return val; | 193 | 84.9k | } |
Unexecuted instantiation: debug.c:gnutls_assert_val_int handshake-tls13.c:gnutls_assert_val_int Line | Count | Source | 190 | 13 | { | 191 | 13 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 13 | return val; | 193 | 13 | } |
Unexecuted instantiation: mbuffers.c:gnutls_assert_val_int buffers.c:gnutls_assert_val_int Line | Count | Source | 190 | 2.25M | { | 191 | 2.25M | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 2.25M | return val; | 193 | 2.25M | } |
handshake.c:gnutls_assert_val_int Line | Count | Source | 190 | 19.3k | { | 191 | 19.3k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 19.3k | return val; | 193 | 19.3k | } |
cipher-cbc.c:gnutls_assert_val_int Line | Count | Source | 190 | 90 | { | 191 | 90 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 90 | return val; | 193 | 90 | } |
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.30k | { | 191 | 1.30k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 1.30k | return val; | 193 | 1.30k | } |
tls-sig.c:gnutls_assert_val_int Line | Count | Source | 190 | 2.36k | { | 191 | 2.36k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 2.36k | return val; | 193 | 2.36k | } |
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 | 4.33k | { | 191 | 4.33k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.33k | return val; | 193 | 4.33k | } |
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 | 4.56k | { | 191 | 4.56k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.56k | return val; | 193 | 4.56k | } |
certificate_request.c:gnutls_assert_val_int Line | Count | Source | 190 | 4.30k | { | 191 | 4.30k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 4.30k | return val; | 193 | 4.30k | } |
certificate_verify.c:gnutls_assert_val_int Line | Count | Source | 190 | 3.60k | { | 191 | 3.60k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 3.60k | return val; | 193 | 3.60k | } |
tls13-sig.c:gnutls_assert_val_int Line | Count | Source | 190 | 20 | { | 191 | 20 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 20 | return val; | 193 | 20 | } |
finished.c:gnutls_assert_val_int Line | Count | Source | 190 | 53.3k | { | 191 | 53.3k | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 53.3k | return val; | 193 | 53.3k | } |
Unexecuted instantiation: key_update.c:gnutls_assert_val_int hello_retry.c:gnutls_assert_val_int Line | Count | Source | 190 | 434 | { | 191 | 434 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 434 | return val; | 193 | 434 | } |
certificate.c:gnutls_assert_val_int Line | Count | Source | 190 | 282 | { | 191 | 282 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 282 | return val; | 193 | 282 | } |
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 | 168 | { | 191 | 168 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 168 | return val; | 193 | 168 | } |
dhe.c:gnutls_assert_val_int Line | Count | Source | 190 | 114 | { | 191 | 114 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 114 | return val; | 193 | 114 | } |
Unexecuted instantiation: dhe_psk.c:gnutls_assert_val_int ecdhe.c:gnutls_assert_val_int Line | Count | Source | 190 | 732 | { | 191 | 732 | _gnutls_assert_log("ASSERT: %s[%s]:%d\n", file, func, line); | 192 | 732 | return val; | 193 | 732 | } |
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 | 2.78M | gnutls_assert_val_int(x, __FILE__, __func__, __LINE__) |
197 | | #define gnutls_assert_val_fatal(x) \ |
198 | 1.16M | (((x) != GNUTLS_E_AGAIN && (x) != GNUTLS_E_INTERRUPTED) ? \ |
199 | 1.16M | gnutls_assert_val_int(x, __FILE__, __func__, __LINE__) : \ |
200 | 1.16M | (x)) |
201 | | |
202 | | #endif /* GNUTLS_LIB_ERRORS_H */ |