The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Loading...
Searching...
No Matches
base.c
Go to the documentation of this file.
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15 */
16
17/**
18 * $Id: 46d53538804d9f2827a3fdc4ebc62a1d672341f5 $
19 *
20 * @file src/lib/tls/base.c
21 * @brief Initialise OpenSSL
22 *
23 * @copyright 2001 hereUare Communications, Inc. (raghud@hereuare.com)
24 * @copyright 2003 Alan DeKok (aland@freeradius.org)
25 * @copyright 2006-2016 The FreeRADIUS server project
26 */
27RCSID("$Id: 46d53538804d9f2827a3fdc4ebc62a1d672341f5 $")
28USES_APPLE_DEPRECATED_API /* OpenSSL API has been deprecated by Apple */
29
30#ifdef WITH_TLS
31#define LOG_PREFIX "tls"
32
33#include "log.h"
34#include "bio.h"
35
36#include <openssl/conf.h>
37#include <openssl/provider.h>
38
39#include <freeradius-devel/server/base.h>
40#include <freeradius-devel/tls/attrs.h>
41#include <freeradius-devel/tls/base.h>
42#include <freeradius-devel/tls/engine.h>
43#include <freeradius-devel/util/atexit.h>
44#include <freeradius-devel/util/debug.h>
45
46static uint32_t openssl_instance_count = 0;
47
48/** The context which holds any memory OpenSSL allocates
49 *
50 * This should be used to work around memory leaks in the OpenSSL.
51 */
52_Thread_local TALLOC_CTX *ssl_talloc_ctx;
53
54/** Used to control freeing of thread local OpenSSL resources
55 *
56 */
57static _Thread_local bool *async_pool_init;
58
59static OSSL_PROVIDER *openssl_default_provider = NULL;
60static OSSL_PROVIDER *openssl_legacy_provider = NULL;
61
62static uint32_t tls_instance_count = 0;
63
66fr_dict_t const *dict_tls;
67
68extern fr_dict_autoload_t tls_dict[];
69fr_dict_autoload_t tls_dict[] = {
70 { .out = &dict_freeradius, .proto = "freeradius" },
71 { .out = &dict_tls, .proto = "tls" },
72 { NULL }
73};
74
77
78/*
79 * Certificate decoding attributes
80 */
97
103
109
115
116extern fr_dict_attr_autoload_t tls_dict_attr[];
117fr_dict_attr_autoload_t tls_dict_attr[] = {
118 { .out = &attr_allow_session_resumption, .name = "Allow-Session-Resumption", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
119 { .out = &attr_session_resumed, .name = "EAP-Session-Resumed", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
120
121 /*
122 * Certificate decoding attributes
123 */
124 { .out = &attr_tls_certificate, .name = "TLS-Certificate", .type = FR_TYPE_TLV, .dict = &dict_freeradius },
125 { .out = &attr_tls_certificate_serial, .name = "TLS-Certificate.Serial", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
126 { .out = &attr_tls_certificate_signature, .name = "TLS-Certificate.Signature", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
127 { .out = &attr_tls_certificate_signature_algorithm, .name = "TLS-Certificate.Signature-Algorithm", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
128 { .out = &attr_tls_certificate_issuer, .name = "TLS-Certificate.Issuer", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
129 { .out = &attr_tls_certificate_not_before, .name = "TLS-Certificate.Not-Before", .type = FR_TYPE_DATE, .dict = &dict_freeradius },
130 { .out = &attr_tls_certificate_not_after, .name = "TLS-Certificate.Not-After", .type = FR_TYPE_DATE, .dict = &dict_freeradius },
131 { .out = &attr_tls_certificate_subject, .name = "TLS-Certificate.Subject", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
132 { .out = &attr_tls_certificate_common_name, .name = "TLS-Certificate.Common-Name", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
133 { .out = &attr_tls_certificate_subject_alt_name_dns, .name = "TLS-Certificate.Subject-Alt-Name-Dns", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
134 { .out = &attr_tls_certificate_subject_alt_name_email, .name = "TLS-Certificate.Subject-Alt-Name-Email", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
135 { .out = &attr_tls_certificate_subject_alt_name_upn, .name = "TLS-Certificate.Subject-Alt-Name-Upn", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
136 { .out = &attr_tls_certificate_x509v3_extended_key_usage, .name = "TLS-Certificate.X509v3-Extended-Key-Usage", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
137 { .out = &attr_tls_certificate_x509v3_subject_key_identifier, .name = "TLS-Certificate.X509v3-Subject-Key-Identifier", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
138 { .out = &attr_tls_certificate_x509v3_authority_key_identifier, .name = "TLS-Certificate.X509v3-Authority-Key-Identifier", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
139 { .out = &attr_tls_certificate_x509v3_basic_constraints, .name = "TLS-Certificate.X509v3-Basic-Constraints", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
140
141 { .out = &attr_tls_client_error_code, .name = "TLS-Client-Error-Code", .type = FR_TYPE_UINT8, .dict = &dict_freeradius },
142 { .out = &attr_tls_ocsp_cert_valid, .name = "TLS-OCSP-Cert-Valid", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
143 { .out = &attr_tls_ocsp_next_update, .name = "TLS-OCSP-Next-Update", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
144 { .out = &attr_tls_ocsp_response, .name = "TLS-OCSP-Response", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
145 { .out = &attr_tls_psk_identity, .name = "TLS-PSK-Identity", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
146
147 { .out = &attr_tls_session_cert_file, .name = "TLS-Session-Certificate-File", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
148 { .out = &attr_tls_session_require_client_cert, .name = "TLS-Session-Require-Client-Certificate", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
149 { .out = &attr_tls_session_cipher_suite, .name = "TLS-Session-Cipher-Suite", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
150 { .out = &attr_tls_session_version, .name = "TLS-Session-Version", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
151 { .out = &attr_tls_session_resume_type, .name = "TLS-Session-Resume-Type", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
152
153 /*
154 * Eventually all TLS attributes will be in the TLS dictionary
155 */
156 { .out = &attr_tls_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_tls },
157 { .out = &attr_tls_session_data, .name = "Session-Data", .type = FR_TYPE_OCTETS, .dict = &dict_tls },
158 { .out = &attr_tls_session_id, .name = "Session-Id", .type = FR_TYPE_OCTETS, .dict = &dict_tls },
159 { .out = &attr_tls_session_resumed, .name = "Session-Resumed", .type = FR_TYPE_BOOL, .dict = &dict_tls },
160 { .out = &attr_tls_session_ttl, .name = "Session-TTL", .type = FR_TYPE_TIME_DELTA, .dict = &dict_tls },
161 { NULL }
162};
163
164/*
165 * request types
166 */
173
174/*
175 * response types
176 */
180
181/*
182 * session resumption
183 */
186
187extern fr_dict_enum_autoload_t tls_dict_enum[];
188fr_dict_enum_autoload_t tls_dict_enum[] = {
189 { .out = &enum_tls_packet_type_load_session, .name = "Load-Session", .attr = &attr_tls_packet_type },
190 { .out = &enum_tls_packet_type_store_session, .name = "Store-Session", .attr = &attr_tls_packet_type },
191 { .out = &enum_tls_packet_type_clear_session, .name = "Clear-Session", .attr = &attr_tls_packet_type },
192 { .out = &enum_tls_packet_type_verify_certificate, .name = "Verify-Certificate", .attr = &attr_tls_packet_type },
193 { .out = &enum_tls_packet_type_new_session, .name = "New-Session", .attr = &attr_tls_packet_type },
194 { .out = &enum_tls_packet_type_establish_session, .name = "Establish-Session", .attr = &attr_tls_packet_type },
195
196 { .out = &enum_tls_packet_type_success, .name = "Success", .attr = &attr_tls_packet_type },
197 { .out = &enum_tls_packet_type_failure, .name = "Failure", .attr = &attr_tls_packet_type },
198 { .out = &enum_tls_packet_type_notfound, .name = "Notfound", .attr = &attr_tls_packet_type },
199
200 { .out = &enum_tls_session_resumed_stateful, .name = "stateful", .attr = &attr_tls_session_resume_type },
201 { .out = &enum_tls_session_resumed_stateless, .name = "stateless", .attr = &attr_tls_session_resume_type },
202 { NULL }
203};
204
205/*
206 * Updated by threads.c in the server, and left alone for everyone else.
207 */
208int fr_tls_max_threads = 1;
209
210/** Allocate memory for OpenSSL in the NULL context
211 *
212 * @param len to alloc.
213 * @return realloc.
214 */
215static void *fr_openssl_talloc(size_t len, char const *file, NDEBUG_UNUSED int line)
216{
217 static char const *async_file;
218 void *chunk;
219
220 if (!file) {
221 chunk = talloc_array(ssl_talloc_ctx, uint8_t, len);
222
223#ifndef NDEBUG
224 talloc_set_name(chunk, "fr_openssl_talloc");
225#endif
226 return chunk;
227 }
228
229 /*
230 * Cache the filename pointer for the async_posix.c
231 * source file, so we can figure out when we're
232 * being asked for stack memory.
233 *
234 * This is terrible, we're basically guessing at the
235 * stack size. OpenSSL 3.1.0 will have proper
236 * allocation functions so we can something more
237 * sensible.
238 */
239 if (!async_file) {
240 char const *sep;
241
242 sep = strrchr(file, '/');
243 if (!sep) {
244 sep = file;
245 } else {
246 sep++;
247 }
248 if (strcmp(sep, "async_posix.c") == 0) {
249 async_file = file;
250 alloc_stack:
251 len *= 4;
252 }
253 } else if (file == async_file) goto alloc_stack;
254
255 chunk = talloc_array(ssl_talloc_ctx, uint8_t, len);
256#ifndef NDEBUG
257 talloc_set_name(chunk, "%s:%d", file, line);
258#endif
259 return chunk;
260}
261
262/** Reallocate memory for OpenSSL in the NULL context
263 *
264 * @param old memory to realloc.
265 * @param len to extend to.
266 * @return realloced memory.
267 */
268static void *fr_openssl_talloc_realloc(void *old, size_t len, NDEBUG_UNUSED char const *file, NDEBUG_UNUSED int line)
269{
270 void *chunk;
271
272 chunk = talloc_realloc_size(ssl_talloc_ctx, old, len);
273#ifndef NDEBUG
274 talloc_set_name(chunk, "%s:%d", file, line);
275#endif
276 return chunk;
277}
278
279/** Free memory allocated by OpenSSL
280 *
281 * @param to_free memory to free.
282 */
283#ifdef NDEBUG
284/*
285 * If we're not debugging, use only the filename. Otherwise the
286 * cost of snprintf() is too large.
287 */
288static void fr_openssl_talloc_free(void *to_free, char const *file, UNUSED int line)
289{
290 (void)_talloc_free(to_free, file);
291}
292#else
293static void fr_openssl_talloc_free(void *to_free, char const *file, int line)
294{
295 char buffer[256];
296
297 snprintf(buffer, sizeof(buffer), "%s:%i", file, line);
298 (void)_talloc_free(to_free, buffer);
299}
300#endif
301
302/** Cleanup async pools if the thread exits
303 *
304 */
305static int _openssl_thread_free(void *init)
306{
307 ASYNC_cleanup_thread();
308 return talloc_free(init);
309}
310
311/** Perform thread-specific initialisation for OpenSSL
312 *
313 * Async contexts are what OpenSSL uses to track
314 *
315 * @param[in] async_pool_size_init The initial number of async contexts
316 * we keep in the pool.
317 * @param[in] async_pool_size_max The maximum number of async contexts
318 * we keep in the thread-local pool.
319 * @return
320 * - 0 on success.
321 * - -1 on failure.
322 */
323int fr_openssl_thread_init(size_t async_pool_size_init, size_t async_pool_size_max)
324{
325 /*
326 * Hack to use thread local destructor code
327 */
328 if (!async_pool_init) {
329 bool *init = talloc_zero(NULL, bool);
330
331 if (ASYNC_init_thread(async_pool_size_max, async_pool_size_init) != 1) {
332 fr_tls_log(NULL, "Failed initialising OpenSSL async context pool");
333 return -1;
334 }
335
336 fr_atexit_thread_local(async_pool_init, _openssl_thread_free, init);
337 }
338
339 return 0;
340}
341
342/** Free any memory alloced by libssl
343 *
344 * OpenSSL >= 1.1.0 uses an atexit handler to automatically free
345 * memory. However, we need to call OPENSSL_cleanup manually because
346 * some of the SSL ctx is parented to the main config which will get
347 * freed before the atexit handler, causing a segfault on exit.
348 */
349void fr_openssl_free(void)
350{
351 if (--openssl_instance_count > 0) return;
352
353 fr_tls_log_free();
354
355 fr_tls_bio_free();
356}
357
358static void _openssl_provider_free(void)
359{
360 if (openssl_default_provider && !OSSL_PROVIDER_unload(openssl_default_provider)) {
361 fr_tls_log(NULL, "Failed unloading default provider");
362 }
363 openssl_default_provider = NULL;
364
365 if (openssl_legacy_provider && !OSSL_PROVIDER_unload(openssl_legacy_provider)) {
366 fr_tls_log(NULL, "Failed unloading legacy provider");
367 }
368 openssl_legacy_provider = NULL;
369}
370
371static int fr_openssl_cleanup(UNUSED void *uctx)
372{
373 OPENSSL_cleanup();
374 return 0;
375}
376
377/** Add all the default ciphers and message digests to our context.
378 *
379 * This should be called exactly once from main, before reading the main config
380 * or initialising any modules.
381 */
382int fr_openssl_init(void)
383{
384 if (openssl_instance_count > 0) {
385 openssl_instance_count++;
386 return 0;
387 }
388
389 /*
390 * This will only fail if memory has already been allocated
391 * by OpenSSL.
392 */
393 if (CRYPTO_set_mem_functions(fr_openssl_talloc, fr_openssl_talloc_realloc, fr_openssl_talloc_free) != 1) {
394 fr_tls_log(NULL, "Failed to set OpenSSL memory allocation functions. fr_openssl_init() called too late");
395 return -1;
396 }
397
398 /*
399 * NO_ATEXIT has no effect if init is done after
400 * loading providers, and we need to control the
401 * exit handler as it needs to be executed last
402 * after all the EVP_MD ctx have been called, as
403 * they may unload elements of providers once all
404 * the contexts have been cleaned up.
405 */
406 if (OPENSSL_init_ssl(OPENSSL_INIT_NO_ATEXIT | OPENSSL_INIT_LOAD_CONFIG, NULL) != 1) {
407 fr_tls_log(NULL, "Failed calling OPENSSL_init_crypto()");
408 return -1;
409 }
410
411 /*
412 * Load the default provider for most algorithms
413 */
414 openssl_default_provider = OSSL_PROVIDER_load(NULL, "default");
415 if (!openssl_default_provider) {
416 fr_tls_log(NULL, "Failed loading default provider");
417 return -1;
418 }
419
420 /*
421 * Needed for MD4
422 *
423 * https://www.openssl.org/docs/man3.0/man7/migration_guide.html#Legacy-Algorithms
424 */
425 openssl_legacy_provider = OSSL_PROVIDER_load(NULL, "legacy");
426 if (!openssl_legacy_provider) {
427 fr_tls_log(NULL, "Failed loading legacy provider");
428 return -1;
429 }
430
431 /*
432 * It's best to use OpenSSL's cleanup stack
433 * as then everything is cleaned up relative
434 * to the OPENSSL_cleanup() call.
435 */
436 OPENSSL_atexit(_openssl_provider_free);
437
438 /*
439 * SHA256 is in all versions of OpenSSL, but isn't
440 * initialized by default. It's needed for WiMAX
441 * certificates.
442 */
443 EVP_add_digest(EVP_sha256());
444
445 fr_tls_log_init();
446
447 fr_tls_bio_init();
448
449 /*
450 * Use an atexit handler to try and ensure
451 * that OpenSSL gets freed last.
452 *
453 * All EVP_*ctxs need to be freed before we
454 * de-initialise the libraries else we get
455 * crashes (at least with OpenSSL 3.0.1).
456 */
457 fr_atexit_global(fr_openssl_cleanup, NULL);
458
459 openssl_instance_count++;
460
461 return 0;
462}
463
464/** Enable or disable fips mode
465 *
466 * @param[in] enabled If true enable fips mode if false disable fips mode.
467 * @return
468 * - 0 on success.
469 * - -1 on failure
470 */
471int fr_openssl_fips_mode(bool enabled)
472{
473 if (!EVP_set_default_properties(NULL, enabled ? "fips=yes" : "fips=no")) {
474 fr_tls_log(NULL, "Failed %s OpenSSL FIPS mode", enabled ? "enabling" : "disabling");
475 return -1;
476 }
477
478 return 0;
479}
480
481/** Load dictionary attributes
482 *
483 * This is a separate function because of ordering issues.
484 * OpenSSL may need to be initialised before anything else
485 * including the dictionary loader.
486 *
487 * fr_openssl_free will unload both the dictionary and the
488 * OpenSSL library.
489 */
490int fr_tls_dict_init(void)
491{
492 if (tls_instance_count > 0) {
493 tls_instance_count++;
494 return 0;
495 }
496
497 tls_instance_count++;
498
499 if (fr_dict_autoload(tls_dict) < 0) {
500 PERROR("Failed initialising protocol library");
501 fail:
502 tls_instance_count--;
503 fr_openssl_free();
504 return -1;
505 }
506
507 if (fr_dict_attr_autoload(tls_dict_attr) < 0) {
508 PERROR("Failed resolving attributes");
509 goto fail;
510 }
511
512 if (fr_dict_enum_autoload(tls_dict_enum) < 0) {
513 PERROR("Failed resolving enums");
514 goto fail;
515 }
516
517 return 0;
518}
519
520void fr_tls_dict_free(void)
521{
522 if (--tls_instance_count > 0) return;
523
524 fr_dict_autofree(tls_dict);
525}
526#endif /* WITH_TLS */
static int const char char buffer[256]
Definition acutest.h:576
int const char * file
Definition acutest.h:702
int const char int line
Definition acutest.h:702
#define fr_atexit_global(_func, _uctx)
Add a free function to the global free list.
Definition atexit.h:59
#define fr_atexit_thread_local(_name, _free, _uctx)
Definition atexit.h:221
static bool init
Definition fuzzer.c:41
#define USES_APPLE_DEPRECATED_API
Definition build.h:470
#define RCSID(id)
Definition build.h:483
#define NDEBUG_UNUSED
Definition build.h:326
#define UNUSED
Definition build.h:315
int fr_dict_enum_autoload(fr_dict_enum_autoload_t const *to_load)
Process a dict_attr_autoload element to load/verify a dictionary attribute.
Definition dict_util.c:4051
#define fr_dict_autofree(_to_free)
Definition dict.h:853
fr_value_box_t const ** out
Enumeration value.
Definition dict.h:257
fr_dict_attr_t const ** out
Where to write a pointer to the resolved fr_dict_attr_t.
Definition dict.h:268
fr_dict_t const ** out
Where to write a pointer to the loaded/resolved fr_dict_t.
Definition dict.h:281
int fr_dict_attr_autoload(fr_dict_attr_autoload_t const *to_load)
Process a dict_attr_autoload element to load/verify a dictionary attribute.
Definition dict_util.c:4090
#define fr_dict_autoload(_to_load)
Definition dict.h:850
Specifies an attribute which must be present for the module to function.
Definition dict.h:267
Specifies a dictionary which must be loaded/loadable for the module to function.
Definition dict.h:280
Specifies a value which must be present for the module to function.
Definition dict.h:256
static fr_dict_t const * dict_freeradius
Definition base.c:37
fr_dict_attr_t const * attr_tls_certificate
Attribute definitions for lib curl.
Definition base.c:36
fr_dict_t const * dict_tls
Definition base.c:79
fr_dict_t const * dict_radius
Definition base.c:78
#define PERROR(_fmt,...)
Definition log.h:228
fr_value_box_t const * enum_tls_packet_type_store_session
HIDDEN fr_dict_attr_t const * attr_tls_certificate_subject
HIDDEN fr_dict_attr_t const * attr_tls_certificate_x509v3_extended_key_usage
HIDDEN fr_dict_attr_t const * attr_tls_packet_type
HIDDEN fr_dict_attr_t const * attr_tls_certificate_x509v3_authority_key_identifier
HIDDEN fr_dict_attr_t const * attr_session_resumed
fr_value_box_t const * enum_tls_packet_type_failure
HIDDEN fr_dict_attr_t const * attr_tls_session_resumed
HIDDEN fr_dict_attr_t const * attr_tls_session_version
HIDDEN fr_dict_attr_t const * attr_tls_ocsp_cert_valid
HIDDEN fr_dict_attr_t const * attr_tls_certificate_x509v3_basic_constraints
fr_value_box_t const * enum_tls_packet_type_success
HIDDEN fr_dict_attr_t const * attr_tls_certificate_serial
HIDDEN fr_dict_attr_t const * attr_tls_session_require_client_cert
HIDDEN fr_dict_attr_t const * attr_tls_certificate_subject_alt_name_dns
HIDDEN fr_dict_attr_t const * attr_tls_session_ttl
fr_value_box_t const * enum_tls_session_resumed_stateful
HIDDEN fr_dict_attr_t const * attr_tls_session_data
HIDDEN fr_dict_attr_t const * attr_tls_certificate_not_after
HIDDEN fr_dict_attr_t const * attr_tls_certificate_not_before
fr_value_box_t const * enum_tls_packet_type_new_session
HIDDEN fr_dict_attr_t const * attr_tls_certificate_signature_algorithm
HIDDEN fr_dict_attr_t const * attr_tls_client_error_code
fr_value_box_t const * enum_tls_packet_type_load_session
fr_value_box_t const * enum_tls_packet_type_establish_session
HIDDEN fr_dict_attr_t const * attr_tls_certificate_subject_alt_name_upn
HIDDEN fr_dict_attr_t const * attr_tls_ocsp_response
HIDDEN fr_dict_attr_t const * attr_tls_session_id
HIDDEN fr_dict_attr_t const * attr_tls_certificate_x509v3_subject_key_identifier
fr_value_box_t const * enum_tls_packet_type_clear_session
HIDDEN fr_dict_attr_t const * attr_tls_session_cipher_suite
HIDDEN fr_dict_attr_t const * attr_tls_certificate_common_name
HIDDEN fr_dict_attr_t const * attr_tls_psk_identity
HIDDEN fr_dict_attr_t const * attr_tls_certificate_issuer
fr_value_box_t const * enum_tls_session_resumed_stateless
fr_value_box_t const * enum_tls_packet_type_notfound
HIDDEN fr_dict_attr_t const * attr_tls_certificate_signature
HIDDEN fr_dict_attr_t const * attr_tls_session_resume_type
HIDDEN fr_dict_attr_t const * attr_tls_ocsp_next_update
fr_value_box_t const * enum_tls_packet_type_verify_certificate
HIDDEN fr_dict_attr_t const * attr_tls_session_cert_file
HIDDEN fr_dict_attr_t const * attr_tls_certificate_subject_alt_name_email
HIDDEN fr_dict_attr_t const * attr_allow_session_resumption
talloc_free(reap)
@ FR_TYPE_TIME_DELTA
A period of time measured in nanoseconds.
@ FR_TYPE_TLV
Contains nested attributes.
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_DATE
Unix time stamp, always has value >2^31.
@ FR_TYPE_UINT8
8 Bit unsigned integer.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_BOOL
A truth value.
@ FR_TYPE_OCTETS
Raw octets.
unsigned int uint32_t
unsigned char uint8_t
PUBLIC int snprintf(char *string, size_t length, char *format, va_alist)
Definition snprintf.c:689