Coverage Report

Created: 2026-06-15 07:04

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/boringssl/include/openssl/base.h
Line
Count
Source
1
// Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//     https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef OPENSSL_HEADER_BASE_H
16
#define OPENSSL_HEADER_BASE_H
17
18
19
// This file should be the first included by all BoringSSL headers. All
20
// BoringSSL headers can be assumed to import this file, and this header can be
21
// assumed to include stddef.h (size_t) and stdint.h (uint*_t, etc).
22
23
#include <stddef.h>  // IWYU pragma: export
24
#include <stdint.h>  // IWYU pragma: export
25
#include <stdlib.h>
26
#include <sys/types.h>
27
28
#if defined(__MINGW32__)
29
// stdio.h is needed on MinGW for __MINGW_PRINTF_FORMAT.
30
#include <stdio.h>
31
#endif
32
33
#if defined(__APPLE__)
34
#include <TargetConditionals.h>
35
#endif
36
37
// Include a BoringSSL-only header so consumers including this header without
38
// setting up include paths do not accidentally pick up the system
39
// opensslconf.h.
40
#include <openssl/is_boringssl.h>
41
#include <openssl/opensslconf.h>
42
#include <openssl/target.h>  // IWYU pragma: export
43
44
#if defined(BORINGSSL_PREFIX)
45
#include <openssl/prefix_symbols.h>  // IWYU pragma: export
46
#endif
47
48
#if defined(__cplusplus)
49
extern "C" {
50
#endif
51
52
53
#if defined(__APPLE__)
54
// Note `TARGET_OS_MAC` is set for all Apple OS variants. `TARGET_OS_OSX`
55
// targets macOS specifically.
56
#if defined(TARGET_OS_OSX) && TARGET_OS_OSX
57
#define OPENSSL_MACOS
58
#endif
59
#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
60
#define OPENSSL_IOS
61
#endif
62
#endif
63
64
#define OPENSSL_IS_BORINGSSL
65
0
#define OPENSSL_VERSION_NUMBER 0x1010107f
66
#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
67
68
// BORINGSSL_API_VERSION is a positive integer that increments as BoringSSL
69
// changes over time. The value itself is not meaningful. It will be incremented
70
// whenever is convenient to coordinate an API change with consumers. This will
71
// not denote any special point in development.
72
//
73
// A consumer may use this symbol in the preprocessor to temporarily build
74
// against multiple revisions of BoringSSL at the same time. It is not
75
// recommended to do so for longer than is necessary.
76
#define BORINGSSL_API_VERSION 42
77
78
#if defined(BORINGSSL_SHARED_LIBRARY)
79
80
#if defined(OPENSSL_WINDOWS)
81
82
#if defined(BORINGSSL_IMPLEMENTATION)
83
#define OPENSSL_EXPORT __declspec(dllexport)
84
#else
85
#define OPENSSL_EXPORT __declspec(dllimport)
86
#endif
87
88
#else  // defined(OPENSSL_WINDOWS)
89
90
#if defined(BORINGSSL_IMPLEMENTATION)
91
#define OPENSSL_EXPORT __attribute__((visibility("default")))
92
#else
93
#define OPENSSL_EXPORT
94
#endif
95
96
#endif  // defined(OPENSSL_WINDOWS)
97
98
#else  // defined(BORINGSSL_SHARED_LIBRARY)
99
100
#define OPENSSL_EXPORT
101
102
#endif  // defined(BORINGSSL_SHARED_LIBRARY)
103
104
#if defined(_MSC_VER)
105
106
// OPENSSL_DEPRECATED is used to mark a function as deprecated. Use
107
// of any functions so marked in caller code will produce a warning.
108
// OPENSSL_BEGIN_ALLOW_DEPRECATED and OPENSSL_END_ALLOW_DEPRECATED
109
// can be used to suppress the warning in regions of caller code.
110
#define OPENSSL_DEPRECATED __declspec(deprecated)
111
#define OPENSSL_BEGIN_ALLOW_DEPRECATED \
112
  __pragma(warning(push)) __pragma(warning(disable : 4996))
113
#define OPENSSL_END_ALLOW_DEPRECATED __pragma(warning(pop))
114
115
#elif defined(__GNUC__) || defined(__clang__)
116
117
#define OPENSSL_DEPRECATED __attribute__((__deprecated__))
118
#define OPENSSL_BEGIN_ALLOW_DEPRECATED \
119
  _Pragma("GCC diagnostic push")       \
120
      _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
121
#define OPENSSL_END_ALLOW_DEPRECATED _Pragma("GCC diagnostic pop")
122
123
#else
124
125
#define OPENSSL_DEPRECATED
126
#define OPENSSL_BEGIN_ALLOW_DEPRECATED
127
#define OPENSSL_END_ALLOW_DEPRECATED
128
129
#endif
130
131
132
#if defined(__GNUC__) || defined(__clang__)
133
// MinGW has two different printf implementations. Ensure the format macro
134
// matches the selected implementation. See
135
// https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/.
136
#if defined(__MINGW_PRINTF_FORMAT)
137
#define OPENSSL_PRINTF_FORMAT_FUNC(string_index, first_to_check) \
138
  __attribute__((                                                \
139
      __format__(__MINGW_PRINTF_FORMAT, string_index, first_to_check)))
140
#else
141
#define OPENSSL_PRINTF_FORMAT_FUNC(string_index, first_to_check) \
142
  __attribute__((__format__(__printf__, string_index, first_to_check)))
143
#endif
144
#else
145
#define OPENSSL_PRINTF_FORMAT_FUNC(string_index, first_to_check)
146
#endif
147
148
// OPENSSL_GNUC_CLANG_PRAGMA emits a pragma on GCC or clang and nothing on other
149
// compilers.
150
#if defined(__GNUC__) || defined(__clang__)
151
#define OPENSSL_GNUC_CLANG_PRAGMA(arg) _Pragma(arg)
152
#else
153
#define OPENSSL_GNUC_CLANG_PRAGMA(arg)
154
#endif
155
156
// OPENSSL_CLANG_PRAGMA emits a pragma on clang and nothing on other compilers.
157
#if defined(__clang__)
158
1.55M
#define OPENSSL_CLANG_PRAGMA(arg) _Pragma(arg)
159
#else
160
#define OPENSSL_CLANG_PRAGMA(arg)
161
#endif
162
163
// OPENSSL_MSVC_PRAGMA emits a pragma on MSVC and nothing on other compilers.
164
#if defined(_MSC_VER)
165
#define OPENSSL_MSVC_PRAGMA(arg) __pragma(arg)
166
#else
167
#define OPENSSL_MSVC_PRAGMA(arg)
168
#endif
169
170
#if defined(__GNUC__) || defined(__clang__)
171
#define OPENSSL_UNUSED __attribute__((unused))
172
#elif defined(_MSC_VER)
173
// __pragma wants to be on a separate line. The following is what it takes to
174
// stop clang-format from messing with that.
175
// clang-format off
176
#define OPENSSL_UNUSED __pragma(warning(suppress : 4505)) \
177
/* */
178
// clang-format on
179
#else
180
#define OPENSSL_UNUSED
181
#endif
182
183
#if defined(BORINGSSL_ALWAYS_USE_STATIC_INLINE)
184
// Add OPENSSL_UNUSED so that, should an inline function be emitted via macro
185
// (e.g. a `STACK_OF(T)` implementation) in a source file without tripping
186
// clang's -Wunused-function.
187
#define OPENSSL_INLINE static inline OPENSSL_UNUSED
188
#else
189
#define OPENSSL_INLINE inline
190
#endif
191
192
#if defined(__cplusplus)
193
// enums can be predeclared, but only in C++ and only if given an explicit type.
194
// C doesn't support setting an explicit type for enums thus a #define is used
195
// to do this only for C++. However, the ABI type between C and C++ need to have
196
// equal sizes, which is confirmed in a unittest.
197
#define BORINGSSL_ENUM_INT : int
198
enum ssl_early_data_reason_t BORINGSSL_ENUM_INT;
199
enum ssl_encryption_level_t BORINGSSL_ENUM_INT;
200
enum ssl_private_key_result_t BORINGSSL_ENUM_INT;
201
enum ssl_renegotiate_mode_t BORINGSSL_ENUM_INT;
202
enum ssl_select_cert_result_t BORINGSSL_ENUM_INT;
203
enum ssl_select_cert_result_t BORINGSSL_ENUM_INT;
204
enum ssl_ticket_aead_result_t BORINGSSL_ENUM_INT;
205
enum ssl_verify_result_t BORINGSSL_ENUM_INT;
206
#else
207
#define BORINGSSL_ENUM_INT
208
#endif
209
210
// ossl_ssize_t is a signed type which is large enough to fit the size of any
211
// valid memory allocation. We prefer using `size_t`, but sometimes we need a
212
// signed type for OpenSSL API compatibility. This type can be used in such
213
// cases to avoid overflow.
214
//
215
// Not all `size_t` values fit in `ossl_ssize_t`, but all `size_t` values that
216
// are sizes of or indices into C objects, can be converted without overflow.
217
typedef ptrdiff_t ossl_ssize_t;
218
219
// CBS_ASN1_TAG is the type used by `CBS` and `CBB` for ASN.1 tags. See that
220
// header for details. This type is defined in base.h as a forward declaration.
221
typedef uint32_t CBS_ASN1_TAG;
222
223
// CRYPTO_THREADID is a dummy value.
224
typedef int CRYPTO_THREADID;
225
226
// An `ASN1_NULL` is an opaque type. asn1.h represents the ASN.1 NULL value as
227
// an opaque, non-NULL `ASN1_NULL*` pointer.
228
typedef struct asn1_null_st ASN1_NULL;
229
230
// CRYPTO_MUST_BE_NULL is an opaque type that is never returned from BoringSSL.
231
// It is used in function parameters that must be NULL.
232
typedef struct crypto_must_be_null_st CRYPTO_MUST_BE_NULL;
233
234
typedef int ASN1_BOOLEAN;
235
typedef struct ASN1_ITEM_st ASN1_ITEM;
236
typedef struct asn1_object_st ASN1_OBJECT;
237
typedef struct asn1_pctx_st ASN1_PCTX;
238
typedef struct asn1_string_st ASN1_BIT_STRING;
239
typedef struct asn1_string_st ASN1_BMPSTRING;
240
typedef struct asn1_string_st ASN1_ENUMERATED;
241
typedef struct asn1_string_st ASN1_GENERALIZEDTIME;
242
typedef struct asn1_string_st ASN1_GENERALSTRING;
243
typedef struct asn1_string_st ASN1_IA5STRING;
244
typedef struct asn1_string_st ASN1_INTEGER;
245
typedef struct asn1_string_st ASN1_OCTET_STRING;
246
typedef struct asn1_string_st ASN1_PRINTABLESTRING;
247
typedef struct asn1_string_st ASN1_STRING;
248
typedef struct asn1_string_st ASN1_T61STRING;
249
typedef struct asn1_string_st ASN1_TIME;
250
typedef struct asn1_string_st ASN1_UNIVERSALSTRING;
251
typedef struct asn1_string_st ASN1_UTCTIME;
252
typedef struct asn1_string_st ASN1_UTF8STRING;
253
typedef struct asn1_string_st ASN1_VISIBLESTRING;
254
typedef struct asn1_type_st ASN1_TYPE;
255
typedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;
256
typedef struct BASIC_CONSTRAINTS_st BASIC_CONSTRAINTS;
257
typedef struct CMS_ContentInfo_st CMS_ContentInfo;
258
typedef struct CMS_SignerInfo_st CMS_SignerInfo;
259
typedef struct DIST_POINT_st DIST_POINT;
260
typedef struct DSA_SIG_st DSA_SIG;
261
typedef struct GENERAL_NAME_st GENERAL_NAME;
262
typedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;
263
typedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;
264
typedef struct Netscape_spkac_st NETSCAPE_SPKAC;
265
typedef struct Netscape_spki_st NETSCAPE_SPKI;
266
typedef struct RIPEMD160state_st RIPEMD160_CTX;
267
typedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;
268
typedef struct X509_algor_st X509_ALGOR;
269
typedef struct X509_crl_st X509_CRL;
270
typedef struct X509_extension_st X509_EXTENSION;
271
typedef struct X509_info_st X509_INFO;
272
typedef struct X509_name_entry_st X509_NAME_ENTRY;
273
typedef struct X509_name_st X509_NAME;
274
typedef struct X509_pubkey_st X509_PUBKEY;
275
typedef struct X509_req_st X509_REQ;
276
typedef struct X509_sig_st X509_SIG;
277
typedef struct bignum_ctx BN_CTX;
278
typedef struct bignum_st BIGNUM;
279
typedef struct bio_method_st BIO_METHOD;
280
typedef struct bio_st BIO;
281
typedef struct blake2b_state_st BLAKE2B_CTX;
282
typedef struct bn_gencb_st BN_GENCB;
283
typedef struct bn_mont_ctx_st BN_MONT_CTX;
284
typedef struct buf_mem_st BUF_MEM;
285
typedef struct cbb_st CBB;
286
typedef struct cbs_st CBS;
287
typedef struct cmac_ctx_st CMAC_CTX;
288
typedef struct conf_st CONF;
289
typedef struct conf_value_st CONF_VALUE;
290
typedef struct crypto_buffer_pool_st CRYPTO_BUFFER_POOL;
291
typedef struct crypto_buffer_st CRYPTO_BUFFER;
292
typedef struct crypto_ivec_st CRYPTO_IVEC;
293
typedef struct crypto_iovec_st CRYPTO_IOVEC;
294
typedef struct ctr_drbg_state_st CTR_DRBG_STATE;
295
typedef struct dh_st DH;
296
typedef struct dsa_st DSA;
297
typedef struct ec_group_st EC_GROUP;
298
typedef struct ec_key_st EC_KEY;
299
typedef struct ec_point_st EC_POINT;
300
typedef struct ecdsa_method_st ECDSA_METHOD;
301
typedef struct ecdsa_sig_st ECDSA_SIG;
302
typedef struct engine_st ENGINE;
303
typedef struct env_md_ctx_st EVP_MD_CTX;
304
typedef struct env_md_st EVP_MD;
305
typedef struct evp_aead_st EVP_AEAD;
306
typedef struct evp_aead_ctx_st EVP_AEAD_CTX;
307
typedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;
308
typedef struct evp_cipher_st EVP_CIPHER;
309
typedef struct evp_encode_ctx_st EVP_ENCODE_CTX;
310
typedef struct evp_hpke_aead_st EVP_HPKE_AEAD;
311
typedef struct evp_hpke_ctx_st EVP_HPKE_CTX;
312
typedef struct evp_hpke_kdf_st EVP_HPKE_KDF;
313
typedef struct evp_hpke_kem_st EVP_HPKE_KEM;
314
typedef struct evp_hpke_key_st EVP_HPKE_KEY;
315
typedef struct evp_kem_st EVP_KEM;
316
typedef struct evp_pkey_alg_st EVP_PKEY_ALG;
317
typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
318
typedef struct evp_pkey_st EVP_PKEY;
319
typedef struct hmac_ctx_st HMAC_CTX;
320
typedef struct md4_state_st MD4_CTX;
321
typedef struct md5_state_st MD5_CTX;
322
typedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS;
323
typedef struct ossl_lib_ctx_st OSSL_LIB_CTX;
324
typedef struct ossl_param_st OSSL_PARAM;
325
typedef struct pkcs12_st PKCS12;
326
typedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;
327
typedef struct private_key_st X509_PKEY;
328
typedef struct rand_meth_st RAND_METHOD;
329
typedef struct rc4_key_st RC4_KEY;
330
typedef struct rsa_meth_st RSA_METHOD;
331
typedef struct rsa_pss_params_st RSA_PSS_PARAMS;
332
typedef struct rsa_st RSA;
333
typedef struct sha256_state_st SHA256_CTX;
334
typedef struct sha512_state_st SHA512_CTX;
335
typedef struct sha_state_st SHA_CTX;
336
typedef struct spake2_ctx_st SPAKE2_CTX;
337
typedef struct srtp_protection_profile_st SRTP_PROTECTION_PROFILE;
338
typedef struct ssl_cipher_st SSL_CIPHER;
339
typedef struct ssl_credential_st SSL_CREDENTIAL;
340
typedef struct ssl_ctx_st SSL_CTX;
341
typedef struct ssl_early_callback_ctx SSL_CLIENT_HELLO;
342
typedef struct ssl_ech_keys_st SSL_ECH_KEYS;
343
typedef struct ssl_method_st SSL_METHOD;
344
typedef struct ssl_private_key_method_st SSL_PRIVATE_KEY_METHOD;
345
typedef struct ssl_quic_method_st SSL_QUIC_METHOD;
346
typedef struct ssl_session_st SSL_SESSION;
347
typedef struct ssl_st SSL;
348
typedef struct ssl_ticket_aead_method_st SSL_TICKET_AEAD_METHOD;
349
typedef struct st_ERR_FNS ERR_FNS;
350
typedef struct trust_token_st TRUST_TOKEN;
351
typedef struct trust_token_client_st TRUST_TOKEN_CLIENT;
352
typedef struct trust_token_issuer_st TRUST_TOKEN_ISSUER;
353
typedef struct trust_token_method_st TRUST_TOKEN_METHOD;
354
typedef struct v3_ext_ctx X509V3_CTX;
355
typedef struct v3_ext_method X509V3_EXT_METHOD;
356
typedef struct x509_attributes_st X509_ATTRIBUTE;
357
typedef struct x509_lookup_st X509_LOOKUP;
358
typedef struct x509_lookup_method_st X509_LOOKUP_METHOD;
359
typedef struct x509_object_st X509_OBJECT;
360
typedef struct x509_purpose_st X509_PURPOSE;
361
typedef struct x509_revoked_st X509_REVOKED;
362
typedef struct x509_st X509;
363
typedef struct x509_store_ctx_st X509_STORE_CTX;
364
typedef struct x509_store_st X509_STORE;
365
366
typedef void *OPENSSL_BLOCK;
367
368
// BSSL_CHECK aborts if `condition` is not true.
369
#define BSSL_CHECK(condition) \
370
206M
  do {                        \
371
206M
    if (!(condition)) {       \
372
0
      abort();                \
373
0
    }                         \
374
206M
  } while (0);
375
376
#if defined(__cplusplus)
377
}  // extern C
378
#elif !defined(BORINGSSL_NO_CXX)
379
#define BORINGSSL_NO_CXX
380
#endif
381
382
#if defined(BORINGSSL_PREFIX)
383
#define BSSL_NAMESPACE_BEGIN \
384
  namespace bssl {           \
385
  inline namespace BORINGSSL_PREFIX {
386
#define BSSL_NAMESPACE_END \
387
  }                        \
388
  }
389
#else
390
#define BSSL_NAMESPACE_BEGIN namespace bssl {
391
#define BSSL_NAMESPACE_END }
392
#endif
393
394
#if defined(BORINGSSL_NO_CXX)
395
396
#define BORINGSSL_MAKE_DELETER(type, deleter)
397
#define BORINGSSL_MAKE_UP_REF(type, up_ref_func)
398
399
#else
400
401
// Work around consumers including our headers under extern "C".
402
extern "C++" {
403
404
#include <memory>
405
406
BSSL_NAMESPACE_BEGIN
407
408
namespace internal {
409
410
// The Enable parameter is ignored and only exists so specializations can use
411
// SFINAE.
412
template <typename T, typename Enable = void>
413
struct DeleterImpl {};
414
415
struct Deleter {
416
  template <typename T>
417
5.14M
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
5.14M
    DeleterImpl<T>::Free(ptr);
427
5.14M
  }
void bssl::internal::Deleter::operator()<ssl_ctx_st>(ssl_ctx_st*)
Line
Count
Source
417
5.09k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
5.09k
    DeleterImpl<T>::Free(ptr);
427
5.09k
  }
void bssl::internal::Deleter::operator()<evp_pkey_st>(evp_pkey_st*)
Line
Count
Source
417
422k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
422k
    DeleterImpl<T>::Free(ptr);
427
422k
  }
void bssl::internal::Deleter::operator()<unsigned char>(unsigned char*)
Line
Count
Source
417
1.61k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
1.61k
    DeleterImpl<T>::Free(ptr);
427
1.61k
  }
void bssl::internal::Deleter::operator()<ssl_ech_keys_st>(ssl_ech_keys_st*)
Line
Count
Source
417
19.5k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
19.5k
    DeleterImpl<T>::Free(ptr);
427
19.5k
  }
void bssl::internal::Deleter::operator()<x509_st>(x509_st*)
Line
Count
Source
417
3.74k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
3.74k
    DeleterImpl<T>::Free(ptr);
427
3.74k
  }
void bssl::internal::Deleter::operator()<rsa_st>(rsa_st*)
Line
Count
Source
417
12
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
12
    DeleterImpl<T>::Free(ptr);
427
12
  }
void bssl::internal::Deleter::operator()<ssl_session_st>(ssl_session_st*)
Line
Count
Source
417
346k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
346k
    DeleterImpl<T>::Free(ptr);
427
346k
  }
void bssl::internal::Deleter::operator()<bio_st>(bio_st*)
Line
Count
Source
417
64.6k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
64.6k
    DeleterImpl<T>::Free(ptr);
427
64.6k
  }
void bssl::internal::Deleter::operator()<ssl_st>(ssl_st*)
Line
Count
Source
417
121k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
121k
    DeleterImpl<T>::Free(ptr);
427
121k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<dh_st>(dh_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<dsa_st>(dsa_st*)
void bssl::internal::Deleter::operator()<ec_key_st>(ec_key_st*)
Line
Count
Source
417
15.4k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
15.4k
    DeleterImpl<T>::Free(ptr);
427
15.4k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<crypto_buffer_pool_st>(crypto_buffer_pool_st*)
void bssl::internal::Deleter::operator()<crypto_buffer_st>(crypto_buffer_st*)
Line
Count
Source
417
337k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
337k
    DeleterImpl<T>::Free(ptr);
427
337k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<X509_crl_st>(X509_crl_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<x509_store_st>(x509_store_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<ssl_credential_st>(ssl_credential_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::ECHConfig>(bssl::ECHConfig*)
void bssl::internal::Deleter::operator()<bssl::ECHServerConfig>(bssl::ECHServerConfig*)
Line
Count
Source
417
12.7k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
12.7k
    DeleterImpl<T>::Free(ptr);
427
12.7k
  }
void bssl::internal::Deleter::operator()<bssl::SSLECHKeys>(bssl::SSLECHKeys*)
Line
Count
Source
417
444
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
444
    DeleterImpl<T>::Free(ptr);
427
444
  }
void bssl::internal::Deleter::operator()<bssl::SSLCredential>(bssl::SSLCredential*)
Line
Count
Source
417
273k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
273k
    DeleterImpl<T>::Free(ptr);
427
273k
  }
void bssl::internal::Deleter::operator()<stack_st_CRYPTO_BUFFER>(stack_st_CRYPTO_BUFFER*)
Line
Count
Source
417
320k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
320k
    DeleterImpl<T>::Free(ptr);
427
320k
  }
void bssl::internal::Deleter::operator()<bssl::SSLPAKEShare>(bssl::SSLPAKEShare*)
Line
Count
Source
417
41
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
41
    DeleterImpl<T>::Free(ptr);
427
41
  }
void bssl::internal::Deleter::operator()<bssl::SSLKeyShare>(bssl::SSLKeyShare*)
Line
Count
Source
417
153k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
153k
    DeleterImpl<T>::Free(ptr);
427
153k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::spake2plus::Prover>(bssl::spake2plus::Prover*)
void bssl::internal::Deleter::operator()<ecdsa_sig_st>(ecdsa_sig_st*)
Line
Count
Source
417
17.1k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
17.1k
    DeleterImpl<T>::Free(ptr);
427
17.1k
  }
void bssl::internal::Deleter::operator()<bignum_st>(bignum_st*)
Line
Count
Source
417
656k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
656k
    DeleterImpl<T>::Free(ptr);
427
656k
  }
void bssl::internal::Deleter::operator()<ec_point_st>(ec_point_st*)
Line
Count
Source
417
111k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
111k
    DeleterImpl<T>::Free(ptr);
427
111k
  }
void bssl::internal::Deleter::operator()<bssl::SSLCipherPreferenceList>(bssl::SSLCipherPreferenceList*)
Line
Count
Source
417
22.0k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
22.0k
    DeleterImpl<T>::Free(ptr);
427
22.0k
  }
void bssl::internal::Deleter::operator()<stack_st_SSL_CIPHER>(stack_st_SSL_CIPHER*)
Line
Count
Source
417
30.4k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
30.4k
    DeleterImpl<T>::Free(ptr);
427
30.4k
  }
void bssl::internal::Deleter::operator()<buf_mem_st>(buf_mem_st*)
Line
Count
Source
417
449k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
449k
    DeleterImpl<T>::Free(ptr);
427
449k
  }
void bssl::internal::Deleter::operator()<bssl::SSL_HANDSHAKE>(bssl::SSL_HANDSHAKE*)
Line
Count
Source
417
160k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
160k
    DeleterImpl<T>::Free(ptr);
427
160k
  }
void bssl::internal::Deleter::operator()<char>(char*)
Line
Count
Source
417
28.4k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
28.4k
    DeleterImpl<T>::Free(ptr);
427
28.4k
  }
void bssl::internal::Deleter::operator()<bssl::SSL_HANDSHAKE_HINTS>(bssl::SSL_HANDSHAKE_HINTS*)
Line
Count
Source
417
83.8k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
83.8k
    DeleterImpl<T>::Free(ptr);
427
83.8k
  }
void bssl::internal::Deleter::operator()<std::__1::variant<bssl::SSLImportedPSK, std::__1::unique_ptr<ssl_session_st, bssl::internal::Deleter> > >(std::__1::variant<bssl::SSLImportedPSK, std::__1::unique_ptr<ssl_session_st, bssl::internal::Deleter> >*)
Line
Count
Source
417
322
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
322
    DeleterImpl<T>::Free(ptr);
427
322
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::spake2plus::Verifier>(bssl::spake2plus::Verifier*)
void bssl::internal::Deleter::operator()<bssl::err_save_state_st>(bssl::err_save_state_st*)
Line
Count
Source
417
32.1k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
32.1k
    DeleterImpl<T>::Free(ptr);
427
32.1k
  }
void bssl::internal::Deleter::operator()<bssl::SSLAEADContext>(bssl::SSLAEADContext*)
Line
Count
Source
417
381k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
381k
    DeleterImpl<T>::Free(ptr);
427
381k
  }
void bssl::internal::Deleter::operator()<bssl::CERT>(bssl::CERT*)
Line
Count
Source
417
126k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
126k
    DeleterImpl<T>::Free(ptr);
427
126k
  }
Unexecuted instantiation: ssl_key_share.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::ECKeyShare>(bssl::(anonymous namespace)::ECKeyShare*)
Unexecuted instantiation: ssl_key_share.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::X25519KeyShare>(bssl::(anonymous namespace)::X25519KeyShare*)
Unexecuted instantiation: ssl_key_share.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::X25519Kyber768KeyShare>(bssl::(anonymous namespace)::X25519Kyber768KeyShare*)
Unexecuted instantiation: ssl_key_share.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::X25519MLKEM768KeyShare>(bssl::(anonymous namespace)::X25519MLKEM768KeyShare*)
Unexecuted instantiation: ssl_key_share.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::MLKEM1024KeyShare>(bssl::(anonymous namespace)::MLKEM1024KeyShare*)
void bssl::internal::Deleter::operator()<bssl::SSL_CONFIG>(bssl::SSL_CONFIG*)
Line
Count
Source
417
121k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
121k
    DeleterImpl<T>::Free(ptr);
427
121k
  }
void bssl::internal::Deleter::operator()<stack_st_SRTP_PROTECTION_PROFILE>(stack_st_SRTP_PROTECTION_PROFILE*)
Line
Count
Source
417
3.36k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
3.36k
    DeleterImpl<T>::Free(ptr);
427
3.36k
  }
void bssl::internal::Deleter::operator()<bssl::SSLContext>(bssl::SSLContext*)
Line
Count
Source
417
243k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
243k
    DeleterImpl<T>::Free(ptr);
427
243k
  }
void bssl::internal::Deleter::operator()<bssl::TicketKey>(bssl::TicketKey*)
Line
Count
Source
417
389
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
389
    DeleterImpl<T>::Free(ptr);
427
389
  }
void bssl::internal::Deleter::operator()<X509_name_st>(X509_name_st*)
Line
Count
Source
417
1.20k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
1.20k
    DeleterImpl<T>::Free(ptr);
427
1.20k
  }
void bssl::internal::Deleter::operator()<stack_st_X509>(stack_st_X509*)
Line
Count
Source
417
18.4k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
18.4k
    DeleterImpl<T>::Free(ptr);
427
18.4k
  }
void bssl::internal::Deleter::operator()<x509_store_ctx_st>(x509_store_ctx_st*)
Line
Count
Source
417
8.42k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
8.42k
    DeleterImpl<T>::Free(ptr);
427
8.42k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_X509_NAME>(stack_st_X509_NAME*)
void bssl::internal::Deleter::operator()<bssl::RecordNumberEncrypter>(bssl::RecordNumberEncrypter*)
Line
Count
Source
417
43.6k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
43.6k
    DeleterImpl<T>::Free(ptr);
427
43.6k
  }
Unexecuted instantiation: tls13_enc.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::NullRecordNumberEncrypter>(bssl::(anonymous namespace)::NullRecordNumberEncrypter*)
Unexecuted instantiation: tls13_enc.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::AES128RecordNumberEncrypter>(bssl::(anonymous namespace)::AES128RecordNumberEncrypter*)
Unexecuted instantiation: tls13_enc.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::AES256RecordNumberEncrypter>(bssl::(anonymous namespace)::AES256RecordNumberEncrypter*)
Unexecuted instantiation: tls13_enc.cc:void bssl::internal::Deleter::operator()<bssl::(anonymous namespace)::ChaChaRecordNumberEncrypter>(bssl::(anonymous namespace)::ChaChaRecordNumberEncrypter*)
void bssl::internal::Deleter::operator()<bssl::MRUQueue<bssl::DTLSSentRecord, 32ul> >(bssl::MRUQueue<bssl::DTLSSentRecord, 32ul>*)
Line
Count
Source
417
11.1k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
11.1k
    DeleterImpl<T>::Free(ptr);
427
11.1k
  }
void bssl::internal::Deleter::operator()<bssl::DTLSIncomingMessage>(bssl::DTLSIncomingMessage*)
Line
Count
Source
417
52.0k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
52.0k
    DeleterImpl<T>::Free(ptr);
427
52.0k
  }
void bssl::internal::Deleter::operator()<bssl::DTLSWriteEpoch>(bssl::DTLSWriteEpoch*)
Line
Count
Source
417
8.20k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
8.20k
    DeleterImpl<T>::Free(ptr);
427
8.20k
  }
void bssl::internal::Deleter::operator()<bssl::DTLSReadEpoch>(bssl::DTLSReadEpoch*)
Line
Count
Source
417
36.0k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
36.0k
    DeleterImpl<T>::Free(ptr);
427
36.0k
  }
void bssl::internal::Deleter::operator()<bssl::DTLSPrevReadEpoch>(bssl::DTLSPrevReadEpoch*)
Line
Count
Source
417
33.5k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
33.5k
    DeleterImpl<T>::Free(ptr);
427
33.5k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::DTLS1_STATE>(bssl::DTLS1_STATE*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::SSL3_STATE>(bssl::SSL3_STATE*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<evp_pkey_ctx_st>(evp_pkey_ctx_st*)
bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_finish_keygen<6, 5>(unsigned char*, mldsa::(anonymous namespace)::private_key<6, 5>*)::Values>(mldsa::(anonymous namespace)::mldsa_finish_keygen<6, 5>(unsigned char*, mldsa::(anonymous namespace)::private_key<6, 5>*)::Values*)
Line
Count
Source
417
336
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
336
    DeleterImpl<T>::Free(ptr);
427
336
  }
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::fips::keygen_self_test()::Values>(mldsa::(anonymous namespace)::fips::keygen_self_test()::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<6, 5>(unsigned char*, mldsa::(anonymous namespace)::private_key<6, 5> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<6, 5>(unsigned char*, mldsa::(anonymous namespace)::private_key<6, 5> const*, unsigned char const*, unsigned char const*)::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::fips::sign_self_test()::Values>(mldsa::(anonymous namespace)::fips::sign_self_test()::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<6, 5>(mldsa::(anonymous namespace)::public_key<6> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<6, 5>(mldsa::(anonymous namespace)::public_key<6> const*, unsigned char const*, unsigned char const*)::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::fips::verify_self_test()::Values>(mldsa::(anonymous namespace)::fips::verify_self_test()::Values*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::RSAImpl>(bssl::RSAImpl*)
void bssl::internal::Deleter::operator()<bn_mont_ctx_st>(bn_mont_ctx_st*)
Line
Count
Source
417
23.2k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
23.2k
    DeleterImpl<T>::Free(ptr);
427
23.2k
  }
void bssl::internal::Deleter::operator()<bignum_ctx>(bignum_ctx*)
Line
Count
Source
417
75.7k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
75.7k
    DeleterImpl<T>::Free(ptr);
427
75.7k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::ECCustomGroup>(bssl::ECCustomGroup*)
void bssl::internal::Deleter::operator()<bssl::ECKey>(bssl::ECKey*)
Line
Count
Source
417
2.96k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
2.96k
    DeleterImpl<T>::Free(ptr);
427
2.96k
  }
bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_finish_keygen<8, 7>(unsigned char*, mldsa::(anonymous namespace)::private_key<8, 7>*)::Values>(mldsa::(anonymous namespace)::mldsa_finish_keygen<8, 7>(unsigned char*, mldsa::(anonymous namespace)::private_key<8, 7>*)::Values*)
Line
Count
Source
417
435
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
435
    DeleterImpl<T>::Free(ptr);
427
435
  }
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<8, 7>(unsigned char*, mldsa::(anonymous namespace)::private_key<8, 7> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<8, 7>(unsigned char*, mldsa::(anonymous namespace)::private_key<8, 7> const*, unsigned char const*, unsigned char const*)::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<8, 7>(mldsa::(anonymous namespace)::public_key<8> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<8, 7>(mldsa::(anonymous namespace)::public_key<8> const*, unsigned char const*, unsigned char const*)::Values*)
bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_finish_keygen<4, 4>(unsigned char*, mldsa::(anonymous namespace)::private_key<4, 4>*)::Values>(mldsa::(anonymous namespace)::mldsa_finish_keygen<4, 4>(unsigned char*, mldsa::(anonymous namespace)::private_key<4, 4>*)::Values*)
Line
Count
Source
417
219
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
219
    DeleterImpl<T>::Free(ptr);
427
219
  }
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<4, 4>(unsigned char*, mldsa::(anonymous namespace)::private_key<4, 4> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_sign_mu_no_self_test<4, 4>(unsigned char*, mldsa::(anonymous namespace)::private_key<4, 4> const*, unsigned char const*, unsigned char const*)::Values*)
Unexecuted instantiation: bcm.cc:void bssl::internal::Deleter::operator()<mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<4, 4>(mldsa::(anonymous namespace)::public_key<4> const*, unsigned char const*, unsigned char const*)::Values>(mldsa::(anonymous namespace)::mldsa_verify_mu_no_self_test<4, 4>(mldsa::(anonymous namespace)::public_key<4> const*, unsigned char const*, unsigned char const*)::Values*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::Bio>(bssl::Bio*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<ec_group_st>(ec_group_st*)
void bssl::internal::Deleter::operator()<bssl::EvpPkey>(bssl::EvpPkey*)
Line
Count
Source
417
223k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
223k
    DeleterImpl<T>::Free(ptr);
427
223k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::EvpPkeyCtx>(bssl::EvpPkeyCtx*)
void bssl::internal::Deleter::operator()<bssl::DSAImpl>(bssl::DSAImpl*)
Line
Count
Source
417
5.59k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
5.59k
    DeleterImpl<T>::Free(ptr);
427
5.59k
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA44Traits> >((anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA44Traits>*)
Line
Count
Source
417
25
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
25
    DeleterImpl<T>::Free(ptr);
427
25
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA44Traits> >((anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA44Traits>*)
Line
Count
Source
417
29
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
29
    DeleterImpl<T>::Free(ptr);
427
29
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA65Traits> >((anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA65Traits>*)
Line
Count
Source
417
19
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
19
    DeleterImpl<T>::Free(ptr);
427
19
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA65Traits> >((anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA65Traits>*)
Line
Count
Source
417
12
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
12
    DeleterImpl<T>::Free(ptr);
427
12
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA87Traits> >((anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLDSA87Traits>*)
Line
Count
Source
417
32
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
32
    DeleterImpl<T>::Free(ptr);
427
32
  }
p_mldsa.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA87Traits> >((anonymous namespace)::PublicKeyData<(anonymous namespace)::MLDSA87Traits>*)
Line
Count
Source
417
31
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
31
    DeleterImpl<T>::Free(ptr);
427
31
  }
p_mlkem.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLKEM768Traits> >((anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLKEM768Traits>*)
Line
Count
Source
417
26
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
26
    DeleterImpl<T>::Free(ptr);
427
26
  }
p_mlkem.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PublicKeyData<(anonymous namespace)::MLKEM768Traits> >((anonymous namespace)::PublicKeyData<(anonymous namespace)::MLKEM768Traits>*)
Line
Count
Source
417
141
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
141
    DeleterImpl<T>::Free(ptr);
427
141
  }
p_mlkem.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLKEM1024Traits> >((anonymous namespace)::PrivateKeyData<(anonymous namespace)::MLKEM1024Traits>*)
Line
Count
Source
417
33
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
33
    DeleterImpl<T>::Free(ptr);
427
33
  }
p_mlkem.cc:void bssl::internal::Deleter::operator()<(anonymous namespace)::PublicKeyData<(anonymous namespace)::MLKEM1024Traits> >((anonymous namespace)::PublicKeyData<(anonymous namespace)::MLKEM1024Traits>*)
Line
Count
Source
417
146
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
146
    DeleterImpl<T>::Free(ptr);
427
146
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<asn1_object_st>(asn1_object_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::CryptoBufferPoolHandle>(bssl::CryptoBufferPoolHandle*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::CryptoBufferPool>(bssl::CryptoBufferPool*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::CryptoBuffer>(bssl::CryptoBuffer*)
void bssl::internal::Deleter::operator()<stack_st_X509_OBJECT>(stack_st_X509_OBJECT*)
Line
Count
Source
417
5.09k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
5.09k
    DeleterImpl<T>::Free(ptr);
427
5.09k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::X509Store>(bssl::X509Store*)
void bssl::internal::Deleter::operator()<X509_VERIFY_PARAM_st>(X509_VERIFY_PARAM_st*)
Line
Count
Source
417
5.09k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
5.09k
    DeleterImpl<T>::Free(ptr);
427
5.09k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<x509_lookup_st>(x509_lookup_st*)
void bssl::internal::Deleter::operator()<X509_name_entry_st>(X509_name_entry_st*)
Line
Count
Source
417
1.29k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
1.29k
    DeleterImpl<T>::Free(ptr);
427
1.29k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<X509_algor_st>(X509_algor_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<asn1_type_st>(asn1_type_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::X509_NAME_CACHE>(bssl::X509_NAME_CACHE*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<X509_pubkey_st>(X509_pubkey_st*)
void bssl::internal::Deleter::operator()<bssl::X509Impl>(bssl::X509Impl*)
Line
Count
Source
417
14.5k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
14.5k
    DeleterImpl<T>::Free(ptr);
427
14.5k
  }
void bssl::internal::Deleter::operator()<asn1_string_st>(asn1_string_st*)
Line
Count
Source
417
2.71k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
2.71k
    DeleterImpl<T>::Free(ptr);
427
2.71k
  }
Unexecuted instantiation: void bssl::internal::Deleter::operator()<DSA_SIG_st>(DSA_SIG_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<bssl::ByDirEntry>(bssl::ByDirEntry*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_POLICYINFO>(stack_st_POLICYINFO*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_POLICY_MAPPING>(stack_st_POLICY_MAPPING*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<POLICY_MAPPING_st>(POLICY_MAPPING_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<POLICY_CONSTRAINTS_st>(POLICY_CONSTRAINTS_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<POLICYQUALINFO_st>(POLICYQUALINFO_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<POLICYINFO_st>(POLICYINFO_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_CONF_VALUE>(stack_st_CONF_VALUE*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<GENERAL_SUBTREE_st>(GENERAL_SUBTREE_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<NAME_CONSTRAINTS_st>(NAME_CONSTRAINTS_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_OPENSSL_STRING>(stack_st_OPENSSL_STRING*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_GENERAL_NAME>(stack_st_GENERAL_NAME*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_ACCESS_DESCRIPTION>(stack_st_ACCESS_DESCRIPTION*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<stack_st_X509_EXTENSION>(stack_st_X509_EXTENSION*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<ACCESS_DESCRIPTION_st>(ACCESS_DESCRIPTION_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<GENERAL_NAME_st>(GENERAL_NAME_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<AUTHORITY_KEYID_st>(AUTHORITY_KEYID_st*)
Unexecuted instantiation: void bssl::internal::Deleter::operator()<conf_st>(conf_st*)
void bssl::internal::Deleter::operator()<X509_extension_st>(X509_extension_st*)
Line
Count
Source
417
3.80k
  void operator()(T *ptr) {
418
    // Rather than specialize Deleter for each type, we specialize
419
    // DeleterImpl. This allows bssl::UniquePtr<T> to be used while only
420
    // including base.h as long as the destructor is not emitted. This matches
421
    // std::unique_ptr's behavior on forward-declared types.
422
    //
423
    // DeleterImpl itself is specialized in the corresponding module's header
424
    // and must be included to release an object. If not included, the compiler
425
    // will error that DeleterImpl<T> does not have a method Free.
426
3.80k
    DeleterImpl<T>::Free(ptr);
427
3.80k
  }
428
};
429
430
template <typename T, typename CleanupRet, void (*init)(T *),
431
          CleanupRet (*cleanup)(T *)>
432
class StackAllocated {
433
 public:
434
1.65M
  StackAllocated() { init(&ctx_); }
bssl::internal::StackAllocated<cbb_st, void, &CBB_zero, &CBB_cleanup>::StackAllocated()
Line
Count
Source
434
1.11M
  StackAllocated() { init(&ctx_); }
bssl::internal::StackAllocated<evp_cipher_ctx_st, int, &EVP_CIPHER_CTX_init, &EVP_CIPHER_CTX_cleanup>::StackAllocated()
Line
Count
Source
434
1.78k
  StackAllocated() { init(&ctx_); }
bssl::internal::StackAllocated<hmac_ctx_st, void, &HMAC_CTX_init, &HMAC_CTX_cleanup>::StackAllocated()
Line
Count
Source
434
1.76k
  StackAllocated() { init(&ctx_); }
bssl::internal::StackAllocated<evp_hpke_ctx_st, void, &EVP_HPKE_CTX_zero, &EVP_HPKE_CTX_cleanup>::StackAllocated()
Line
Count
Source
434
160k
  StackAllocated() { init(&ctx_); }
bssl::internal::StackAllocated<evp_aead_ctx_st, void, &EVP_AEAD_CTX_zero, &EVP_AEAD_CTX_cleanup>::StackAllocated()
Line
Count
Source
434
381k
  StackAllocated() { init(&ctx_); }
435
1.65M
  ~StackAllocated() { cleanup(&ctx_); }
bssl::internal::StackAllocated<cbb_st, void, &CBB_zero, &CBB_cleanup>::~StackAllocated()
Line
Count
Source
435
1.11M
  ~StackAllocated() { cleanup(&ctx_); }
bssl::internal::StackAllocated<hmac_ctx_st, void, &HMAC_CTX_init, &HMAC_CTX_cleanup>::~StackAllocated()
Line
Count
Source
435
1.76k
  ~StackAllocated() { cleanup(&ctx_); }
bssl::internal::StackAllocated<evp_cipher_ctx_st, int, &EVP_CIPHER_CTX_init, &EVP_CIPHER_CTX_cleanup>::~StackAllocated()
Line
Count
Source
435
1.78k
  ~StackAllocated() { cleanup(&ctx_); }
bssl::internal::StackAllocated<evp_hpke_ctx_st, void, &EVP_HPKE_CTX_zero, &EVP_HPKE_CTX_cleanup>::~StackAllocated()
Line
Count
Source
435
160k
  ~StackAllocated() { cleanup(&ctx_); }
bssl::internal::StackAllocated<evp_aead_ctx_st, void, &EVP_AEAD_CTX_zero, &EVP_AEAD_CTX_cleanup>::~StackAllocated()
Line
Count
Source
435
381k
  ~StackAllocated() { cleanup(&ctx_); }
436
437
  StackAllocated(const StackAllocated &) = delete;
438
  StackAllocated &operator=(const StackAllocated &) = delete;
439
440
11.3M
  T *get() { return &ctx_; }
bssl::internal::StackAllocated<cbb_st, void, &CBB_zero, &CBB_cleanup>::get()
Line
Count
Source
440
11.2M
  T *get() { return &ctx_; }
bssl::internal::StackAllocated<evp_hpke_ctx_st, void, &EVP_HPKE_CTX_zero, &EVP_HPKE_CTX_cleanup>::get()
Line
Count
Source
440
615
  T *get() { return &ctx_; }
bssl::internal::StackAllocated<evp_cipher_ctx_st, int, &EVP_CIPHER_CTX_init, &EVP_CIPHER_CTX_cleanup>::get()
Line
Count
Source
440
3.58k
  T *get() { return &ctx_; }
bssl::internal::StackAllocated<hmac_ctx_st, void, &HMAC_CTX_init, &HMAC_CTX_cleanup>::get()
Line
Count
Source
440
17.1k
  T *get() { return &ctx_; }
bssl::internal::StackAllocated<evp_aead_ctx_st, void, &EVP_AEAD_CTX_zero, &EVP_AEAD_CTX_cleanup>::get()
Line
Count
Source
440
148k
  T *get() { return &ctx_; }
441
23.8k
  const T *get() const { return &ctx_; }
442
443
  T *operator->() { return &ctx_; }
444
  const T *operator->() const { return &ctx_; }
445
446
444
  void Reset() {
447
444
    cleanup(&ctx_);
448
444
    init(&ctx_);
449
444
  }
450
451
 private:
452
  T ctx_;
453
};
454
455
template <typename T, typename CleanupRet, void (*init)(T *),
456
          CleanupRet (*cleanup)(T *), void (*move)(T *, T *)>
457
class StackAllocatedMovable {
458
 public:
459
663k
  StackAllocatedMovable() { init(&ctx_); }
bssl::internal::StackAllocatedMovable<evp_hpke_key_st, void, &EVP_HPKE_KEY_zero, &EVP_HPKE_KEY_cleanup, &EVP_HPKE_KEY_move>::StackAllocatedMovable()
Line
Count
Source
459
26.2k
  StackAllocatedMovable() { init(&ctx_); }
bssl::internal::StackAllocatedMovable<env_md_ctx_st, int, &EVP_MD_CTX_init, &EVP_MD_CTX_cleanup, &EVP_MD_CTX_move>::StackAllocatedMovable()
Line
Count
Source
459
636k
  StackAllocatedMovable() { init(&ctx_); }
460
663k
  ~StackAllocatedMovable() { cleanup(&ctx_); }
bssl::internal::StackAllocatedMovable<evp_hpke_key_st, void, &EVP_HPKE_KEY_zero, &EVP_HPKE_KEY_cleanup, &EVP_HPKE_KEY_move>::~StackAllocatedMovable()
Line
Count
Source
460
26.2k
  ~StackAllocatedMovable() { cleanup(&ctx_); }
bssl::internal::StackAllocatedMovable<env_md_ctx_st, int, &EVP_MD_CTX_init, &EVP_MD_CTX_cleanup, &EVP_MD_CTX_move>::~StackAllocatedMovable()
Line
Count
Source
460
636k
  ~StackAllocatedMovable() { cleanup(&ctx_); }
461
462
  StackAllocatedMovable(StackAllocatedMovable &&other) {
463
    init(&ctx_);
464
    move(&ctx_, &other.ctx_);
465
  }
466
0
  StackAllocatedMovable &operator=(StackAllocatedMovable &&other) {
467
0
    move(&ctx_, &other.ctx_);
468
0
    return *this;
469
0
  }
470
471
2.12M
  T *get() { return &ctx_; }
bssl::internal::StackAllocatedMovable<evp_hpke_key_st, void, &EVP_HPKE_KEY_zero, &EVP_HPKE_KEY_cleanup, &EVP_HPKE_KEY_move>::get()
Line
Count
Source
471
26.2k
  T *get() { return &ctx_; }
bssl::internal::StackAllocatedMovable<env_md_ctx_st, int, &EVP_MD_CTX_init, &EVP_MD_CTX_cleanup, &EVP_MD_CTX_move>::get()
Line
Count
Source
471
2.09M
  T *get() { return &ctx_; }
472
553k
  const T *get() const { return &ctx_; }
bssl::internal::StackAllocatedMovable<evp_hpke_key_st, void, &EVP_HPKE_KEY_zero, &EVP_HPKE_KEY_cleanup, &EVP_HPKE_KEY_move>::get() const
Line
Count
Source
472
340
  const T *get() const { return &ctx_; }
bssl::internal::StackAllocatedMovable<env_md_ctx_st, int, &EVP_MD_CTX_init, &EVP_MD_CTX_cleanup, &EVP_MD_CTX_move>::get() const
Line
Count
Source
472
553k
  const T *get() const { return &ctx_; }
473
474
0
  T *operator->() { return &ctx_; }
475
  const T *operator->() const { return &ctx_; }
476
477
161k
  void Reset() {
478
161k
    cleanup(&ctx_);
479
161k
    init(&ctx_);
480
161k
  }
481
482
 private:
483
  T ctx_;
484
};
485
486
}  // namespace internal
487
488
#define BORINGSSL_MAKE_DELETER(type, deleter)     \
489
  namespace internal {                            \
490
  template <>                                     \
491
  struct DeleterImpl<type> {                      \
492
3.15M
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<ssl_ctx_st, void>::Free(ssl_ctx_st*)
Line
Count
Source
492
5.09k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<evp_pkey_st, void>::Free(evp_pkey_st*)
Line
Count
Source
492
422k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<unsigned char, void>::Free(unsigned char*)
Line
Count
Source
492
1.61k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<ssl_ech_keys_st, void>::Free(ssl_ech_keys_st*)
Line
Count
Source
492
19.5k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<x509_st, void>::Free(x509_st*)
Line
Count
Source
492
4.92k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<rsa_st, void>::Free(rsa_st*)
Line
Count
Source
492
12
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<ssl_session_st, void>::Free(ssl_session_st*)
Line
Count
Source
492
346k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<bio_st, void>::Free(bio_st*)
Line
Count
Source
492
64.6k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<ssl_st, void>::Free(ssl_st*)
Line
Count
Source
492
121k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<buf_mem_st, void>::Free(buf_mem_st*)
Line
Count
Source
492
449k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<bio_method_st, void>::Free(bio_method_st*)
bssl::internal::DeleterImpl<char, void>::Free(char*)
Line
Count
Source
492
28.4k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<evp_aead_ctx_st, void>::Free(evp_aead_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<evp_cipher_ctx_st, void>::Free(evp_cipher_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<env_md_ctx_st, void>::Free(env_md_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<evp_pkey_ctx_st, void>::Free(evp_pkey_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<spake2_ctx_st, void>::Free(spake2_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<evp_hpke_ctx_st, void>::Free(evp_hpke_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<evp_hpke_key_st, void>::Free(evp_hpke_key_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<engine_st, void>::Free(engine_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<PKCS7, void>::Free(PKCS7*)
bssl::internal::DeleterImpl<bignum_st, void>::Free(bignum_st*)
Line
Count
Source
492
656k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<bignum_ctx, void>::Free(bignum_ctx*)
Line
Count
Source
492
75.7k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<bn_mont_ctx_st, void>::Free(bn_mont_ctx_st*)
Line
Count
Source
492
23.2k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<asn1_object_st, void>::Free(asn1_object_st*)
bssl::internal::DeleterImpl<asn1_string_st, void>::Free(asn1_string_st*)
Line
Count
Source
492
2.71k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<asn1_type_st, void>::Free(asn1_type_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<conf_st, void>::Free(conf_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<dh_st, void>::Free(dh_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<dsa_st, void>::Free(dsa_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<DSA_SIG_st, void>::Free(DSA_SIG_st*)
bssl::internal::DeleterImpl<ec_key_st, void>::Free(ec_key_st*)
Line
Count
Source
492
15.4k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<ec_point_st, void>::Free(ec_point_st*)
Line
Count
Source
492
111k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<ec_group_st, void>::Free(ec_group_st*)
bssl::internal::DeleterImpl<ecdsa_sig_st, void>::Free(ecdsa_sig_st*)
Line
Count
Source
492
17.1k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<crypto_buffer_pool_st, void>::Free(crypto_buffer_pool_st*)
bssl::internal::DeleterImpl<crypto_buffer_st, void>::Free(crypto_buffer_st*)
Line
Count
Source
492
737k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<ACCESS_DESCRIPTION_st, void>::Free(ACCESS_DESCRIPTION_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<AUTHORITY_KEYID_st, void>::Free(AUTHORITY_KEYID_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<BASIC_CONSTRAINTS_st, void>::Free(BASIC_CONSTRAINTS_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<conf_value_st, void>::Free(conf_value_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<DIST_POINT_st, void>::Free(DIST_POINT_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<GENERAL_NAME_st, void>::Free(GENERAL_NAME_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<GENERAL_SUBTREE_st, void>::Free(GENERAL_SUBTREE_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<NAME_CONSTRAINTS_st, void>::Free(NAME_CONSTRAINTS_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<Netscape_spki_st, void>::Free(Netscape_spki_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<POLICY_CONSTRAINTS_st, void>::Free(POLICY_CONSTRAINTS_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<POLICY_MAPPING_st, void>::Free(POLICY_MAPPING_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<POLICYINFO_st, void>::Free(POLICYINFO_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<POLICYQUALINFO_st, void>::Free(POLICYQUALINFO_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<rsa_pss_params_st, void>::Free(rsa_pss_params_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_algor_st, void>::Free(X509_algor_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<x509_attributes_st, void>::Free(x509_attributes_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_crl_st, void>::Free(X509_crl_st*)
bssl::internal::DeleterImpl<X509_extension_st, void>::Free(X509_extension_st*)
Line
Count
Source
492
3.80k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_info_st, void>::Free(X509_info_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<x509_lookup_st, void>::Free(x509_lookup_st*)
bssl::internal::DeleterImpl<X509_name_st, void>::Free(X509_name_st*)
Line
Count
Source
492
1.20k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<X509_name_entry_st, void>::Free(X509_name_entry_st*)
Line
Count
Source
492
1.29k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<x509_object_st, void>::Free(x509_object_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_pubkey_st, void>::Free(X509_pubkey_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_req_st, void>::Free(X509_req_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<x509_revoked_st, void>::Free(x509_revoked_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<X509_sig_st, void>::Free(X509_sig_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<x509_store_st, void>::Free(x509_store_st*)
bssl::internal::DeleterImpl<x509_store_ctx_st, void>::Free(x509_store_ctx_st*)
Line
Count
Source
492
8.42k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<X509_VERIFY_PARAM_st, void>::Free(X509_VERIFY_PARAM_st*)
Line
Count
Source
492
5.09k
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<ssl_credential_st, void>::Free(ssl_credential_st*)
bssl::internal::DeleterImpl<bssl::err_save_state_st, void>::Free(bssl::err_save_state_st*)
Line
Count
Source
492
32.1k
    static void Free(type *ptr) { deleter(ptr); } \
bssl::internal::DeleterImpl<std::__1::variant<bssl::SSLImportedPSK, std::__1::unique_ptr<ssl_session_st, bssl::internal::Deleter> >, void>::Free(std::__1::variant<bssl::SSLImportedPSK, std::__1::unique_ptr<ssl_session_st, bssl::internal::Deleter> >*)
Line
Count
Source
492
322
    static void Free(type *ptr) { deleter(ptr); } \
Unexecuted instantiation: bssl::internal::DeleterImpl<hmac_ctx_st, void>::Free(hmac_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<cmac_ctx_st, void>::Free(cmac_ctx_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<ctr_drbg_state_st, void>::Free(ctr_drbg_state_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<pkcs12_st, void>::Free(pkcs12_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<pkcs8_priv_key_info_st, void>::Free(pkcs8_priv_key_info_st*)
Unexecuted instantiation: bssl::internal::DeleterImpl<CMS_ContentInfo_st, void>::Free(CMS_ContentInfo_st*)
493
  };                                              \
494
  }
495
496
// Holds ownership of heap-allocated BoringSSL structures. Sample usage:
497
//   bssl::UniquePtr<RSA> rsa(RSA_new());
498
//   bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem()));
499
template <typename T>
500
using UniquePtr = std::unique_ptr<T, internal::Deleter>;
501
502
#define BORINGSSL_MAKE_UP_REF(type, up_ref_func)             \
503
1.40M
  inline UniquePtr<type> UpRef(type *v) {                    \
504
1.40M
    if (v != nullptr) {                                      \
505
1.08M
      up_ref_func(v);                                        \
506
1.08M
    }                                                        \
507
1.40M
    return UniquePtr<type>(v);                               \
508
1.40M
  }                                                          \
Unexecuted instantiation: bssl::UpRef(bio_st*)
bssl::UpRef(evp_pkey_st*)
Line
Count
Source
503
372k
  inline UniquePtr<type> UpRef(type *v) {                    \
504
372k
    if (v != nullptr) {                                      \
505
357k
      up_ref_func(v);                                        \
506
357k
    }                                                        \
507
372k
    return UniquePtr<type>(v);                               \
508
372k
  }                                                          \
Unexecuted instantiation: bssl::UpRef(rsa_st*)
Unexecuted instantiation: bssl::UpRef(dh_st*)
Unexecuted instantiation: bssl::UpRef(dsa_st*)
Unexecuted instantiation: bssl::UpRef(ec_key_st*)
Unexecuted instantiation: bssl::UpRef(crypto_buffer_pool_st*)
bssl::UpRef(crypto_buffer_st*)
Line
Count
Source
503
739k
  inline UniquePtr<type> UpRef(type *v) {                    \
504
739k
    if (v != nullptr) {                                      \
505
438k
      up_ref_func(v);                                        \
506
438k
    }                                                        \
507
739k
    return UniquePtr<type>(v);                               \
508
739k
  }                                                          \
bssl::UpRef(x509_st*)
Line
Count
Source
503
175k
  inline UniquePtr<type> UpRef(type *v) {                    \
504
175k
    if (v != nullptr) {                                      \
505
173k
      up_ref_func(v);                                        \
506
173k
    }                                                        \
507
175k
    return UniquePtr<type>(v);                               \
508
175k
  }                                                          \
Unexecuted instantiation: bssl::UpRef(X509_crl_st*)
Unexecuted instantiation: bssl::UpRef(x509_store_st*)
Unexecuted instantiation: bssl::UpRef(ssl_credential_st*)
Unexecuted instantiation: bssl::UpRef(ssl_ctx_st*)
Unexecuted instantiation: bssl::UpRef(ssl_ech_keys_st*)
bssl::UpRef(ssl_session_st*)
Line
Count
Source
503
118k
  inline UniquePtr<type> UpRef(type *v) {                    \
504
118k
    if (v != nullptr) {                                      \
505
116k
      up_ref_func(v);                                        \
506
116k
    }                                                        \
507
118k
    return UniquePtr<type>(v);                               \
508
118k
  }                                                          \
509
                                                             \
510
1.03M
  inline UniquePtr<type> UpRef(const UniquePtr<type> &ptr) { \
511
1.03M
    return UpRef(ptr.get());                                 \
512
1.03M
  }
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<bio_st, bssl::internal::Deleter> const&)
bssl::UpRef(std::__1::unique_ptr<evp_pkey_st, bssl::internal::Deleter> const&)
Line
Count
Source
510
365k
  inline UniquePtr<type> UpRef(const UniquePtr<type> &ptr) { \
511
365k
    return UpRef(ptr.get());                                 \
512
365k
  }
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<rsa_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<dh_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<dsa_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<ec_key_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<crypto_buffer_pool_st, bssl::internal::Deleter> const&)
bssl::UpRef(std::__1::unique_ptr<crypto_buffer_st, bssl::internal::Deleter> const&)
Line
Count
Source
510
537k
  inline UniquePtr<type> UpRef(const UniquePtr<type> &ptr) { \
511
537k
    return UpRef(ptr.get());                                 \
512
537k
  }
bssl::UpRef(std::__1::unique_ptr<x509_st, bssl::internal::Deleter> const&)
Line
Count
Source
510
127k
  inline UniquePtr<type> UpRef(const UniquePtr<type> &ptr) { \
511
127k
    return UpRef(ptr.get());                                 \
512
127k
  }
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<X509_crl_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<x509_store_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<ssl_credential_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<ssl_ctx_st, bssl::internal::Deleter> const&)
Unexecuted instantiation: bssl::UpRef(std::__1::unique_ptr<ssl_ech_keys_st, bssl::internal::Deleter> const&)
bssl::UpRef(std::__1::unique_ptr<ssl_session_st, bssl::internal::Deleter> const&)
Line
Count
Source
510
682
  inline UniquePtr<type> UpRef(const UniquePtr<type> &ptr) { \
511
682
    return UpRef(ptr.get());                                 \
512
682
  }
513
514
BSSL_NAMESPACE_END
515
516
}  // extern C++
517
518
#endif  // !BORINGSSL_NO_CXX
519
520
#endif  // OPENSSL_HEADER_BASE_H