The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
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: ff6d0430d1ab79d68044a89ea1f08eff26829e09 $
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  */
27 RCSID("$Id: ff6d0430d1ab79d68044a89ea1f08eff26829e09 $")
28 USES_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 
46 static 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  */
57 static _Thread_local bool *async_pool_init;
58 
59 static OSSL_PROVIDER *openssl_default_provider = NULL;
60 static OSSL_PROVIDER *openssl_legacy_provider = NULL;
61 
62 static uint32_t tls_instance_count = 0;
63 
65 fr_dict_t const *dict_radius;
66 fr_dict_t const *dict_tls;
67 
68 extern fr_dict_autoload_t tls_dict[];
69 fr_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 
108 
114 
115 extern fr_dict_attr_autoload_t tls_dict_attr[];
116 fr_dict_attr_autoload_t tls_dict_attr[] = {
117  { .out = &attr_allow_session_resumption, .name = "Allow-Session-Resumption", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
118  { .out = &attr_session_resumed, .name = "EAP-Session-Resumed", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
119 
120  /*
121  * Certificate decoding attributes
122  */
123  { .out = &attr_tls_certificate, .name = "TLS-Certificate", .type = FR_TYPE_TLV, .dict = &dict_freeradius },
124  { .out = &attr_tls_certificate_serial, .name = "TLS-Certificate.Serial", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
125  { .out = &attr_tls_certificate_signature, .name = "TLS-Certificate.Signature", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
126  { .out = &attr_tls_certificate_signature_algorithm, .name = "TLS-Certificate.Signature-Algorithm", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
127  { .out = &attr_tls_certificate_issuer, .name = "TLS-Certificate.Issuer", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
128  { .out = &attr_tls_certificate_not_before, .name = "TLS-Certificate.Not-Before", .type = FR_TYPE_DATE, .dict = &dict_freeradius },
129  { .out = &attr_tls_certificate_not_after, .name = "TLS-Certificate.Not-After", .type = FR_TYPE_DATE, .dict = &dict_freeradius },
130  { .out = &attr_tls_certificate_subject, .name = "TLS-Certificate.Subject", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
131  { .out = &attr_tls_certificate_common_name, .name = "TLS-Certificate.Common-Name", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
132  { .out = &attr_tls_certificate_subject_alt_name_dns, .name = "TLS-Certificate.Subject-Alt-Name-Dns", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
133  { .out = &attr_tls_certificate_subject_alt_name_email, .name = "TLS-Certificate.Subject-Alt-Name-Email", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
134  { .out = &attr_tls_certificate_subject_alt_name_upn, .name = "TLS-Certificate.Subject-Alt-Name-Upn", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
135  { .out = &attr_tls_certificate_x509v3_extended_key_usage, .name = "TLS-Certificate.X509v3-Extended-Key-Usage", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
136  { .out = &attr_tls_certificate_x509v3_subject_key_identifier, .name = "TLS-Certificate.X509v3-Subject-Key-Identifier", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
137  { .out = &attr_tls_certificate_x509v3_authority_key_identifier, .name = "TLS-Certificate.X509v3-Authority-Key-Identifier", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
138  { .out = &attr_tls_certificate_x509v3_basic_constraints, .name = "TLS-Certificate.X509v3-Basic-Constraints", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
139 
140  { .out = &attr_tls_client_error_code, .name = "TLS-Client-Error-Code", .type = FR_TYPE_UINT8, .dict = &dict_freeradius },
141  { .out = &attr_tls_ocsp_cert_valid, .name = "TLS-OCSP-Cert-Valid", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
142  { .out = &attr_tls_ocsp_next_update, .name = "TLS-OCSP-Next-Update", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
143  { .out = &attr_tls_ocsp_response, .name = "TLS-OCSP-Response", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
144  { .out = &attr_tls_psk_identity, .name = "TLS-PSK-Identity", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
145 
146  { .out = &attr_tls_session_cert_file, .name = "TLS-Session-Certificate-File", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
147  { .out = &attr_tls_session_require_client_cert, .name = "TLS-Session-Require-Client-Certificate", .type = FR_TYPE_BOOL, .dict = &dict_freeradius },
148  { .out = &attr_tls_session_cipher_suite, .name = "TLS-Session-Cipher-Suite", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
149  { .out = &attr_tls_session_version, .name = "TLS-Session-Version", .type = FR_TYPE_STRING, .dict = &dict_freeradius },
150 
151  /*
152  * Eventually all TLS attributes will be in the TLS dictionary
153  */
154  { .out = &attr_tls_packet_type, .name = "Packet-Type", .type = FR_TYPE_UINT32, .dict = &dict_tls },
155  { .out = &attr_tls_session_data, .name = "Session-Data", .type = FR_TYPE_OCTETS, .dict = &dict_tls },
156  { .out = &attr_tls_session_id, .name = "Session-Id", .type = FR_TYPE_OCTETS, .dict = &dict_tls },
157  { .out = &attr_tls_session_resumed, .name = "Session-Resumed", .type = FR_TYPE_BOOL, .dict = &dict_tls },
158  { .out = &attr_tls_session_ttl, .name = "Session-TTL", .type = FR_TYPE_TIME_DELTA, .dict = &dict_tls },
159  { NULL }
160 };
161 
162 /*
163  * request types
164  */
169 
170 /*
171  * response types
172  */
176 
177 extern fr_dict_enum_autoload_t tls_dict_enum[];
178 fr_dict_enum_autoload_t tls_dict_enum[] = {
179  { .out = &enum_tls_packet_type_load_session, .name = "Load-Session", .attr = &attr_tls_packet_type },
180  { .out = &enum_tls_packet_type_store_session, .name = "Store-Session", .attr = &attr_tls_packet_type },
181  { .out = &enum_tls_packet_type_clear_session, .name = "Clear-Session", .attr = &attr_tls_packet_type },
182  { .out = &enum_tls_packet_type_verify_certificate, .name = "Verify-Certificate", .attr = &attr_tls_packet_type },
183 
184  { .out = &enum_tls_packet_type_success, .name = "Success", .attr = &attr_tls_packet_type },
185  { .out = &enum_tls_packet_type_failure, .name = "Failure", .attr = &attr_tls_packet_type },
186  { .out = &enum_tls_packet_type_notfound, .name = "Notfound", .attr = &attr_tls_packet_type },
187  { NULL }
188 };
189 
190 /*
191  * Updated by threads.c in the server, and left alone for everyone else.
192  */
193 int fr_tls_max_threads = 1;
194 
195 /** Allocate memory for OpenSSL in the NULL context
196  *
197  * @param len to alloc.
198  * @return realloc.
199  */
200 static void *fr_openssl_talloc(size_t len, char const *file, NDEBUG_UNUSED int line)
201 {
202  static char const *async_file;
203  void *chunk;
204 
205  if (!file) {
206  chunk = talloc_array(ssl_talloc_ctx, uint8_t, len);
207 
208 #ifndef NDEBUG
209  talloc_set_name(chunk, "fr_openssl_talloc");
210 #endif
211  return chunk;
212  }
213 
214  /*
215  * Cache the filename pointer for the async_posix.c
216  * source file, so we can figure out when we're
217  * being asked for stack memory.
218  *
219  * This is terrible, we're basically guessing at the
220  * stack size. OpenSSL 3.1.0 will have proper
221  * allocation functions so we can something more
222  * sensible.
223  */
224  if (!async_file) {
225  char const *sep;
226 
227  sep = strrchr(file, '/');
228  if (!sep) {
229  sep = file;
230  } else {
231  sep++;
232  }
233  if (strcmp(sep, "async_posix.c") == 0) {
234  async_file = file;
235  alloc_stack:
236  len *= 4;
237  }
238  } else if (file == async_file) goto alloc_stack;
239 
240  chunk = talloc_array(ssl_talloc_ctx, uint8_t, len);
241 #ifndef NDEBUG
242  talloc_set_name(chunk, "%s:%u", file, line);
243 #endif
244  return chunk;
245 }
246 
247 /** Reallocate memory for OpenSSL in the NULL context
248  *
249  * @param old memory to realloc.
250  * @param len to extend to.
251  * @return realloced memory.
252  */
253 static void *fr_openssl_talloc_realloc(void *old, size_t len, NDEBUG_UNUSED char const *file, NDEBUG_UNUSED int line)
254 {
255  void *chunk;
256 
257  chunk = talloc_realloc_size(ssl_talloc_ctx, old, len);
258 #ifndef NDEBUG
259  talloc_set_name(chunk, "%s:%u", file, line);
260 #endif
261  return chunk;
262 }
263 
264 /** Free memory allocated by OpenSSL
265  *
266  * @param to_free memory to free.
267  */
268 #ifdef NDEBUG
269 /*
270  * If we're not debugging, use only the filename. Otherwise the
271  * cost of snprintf() is too large.
272  */
273 static void fr_openssl_talloc_free(void *to_free, char const *file, UNUSED int line)
274 {
275  (void)_talloc_free(to_free, file);
276 }
277 #else
278 static void fr_openssl_talloc_free(void *to_free, char const *file, int line)
279 {
280  char buffer[256];
281 
282  snprintf(buffer, sizeof(buffer), "%s:%i", file, line);
283  (void)_talloc_free(to_free, buffer);
284 }
285 #endif
286 
287 /** Cleanup async pools if the thread exits
288  *
289  */
290 static int _openssl_thread_free(void *init)
291 {
292  ASYNC_cleanup_thread();
293  return talloc_free(init);
294 }
295 
296 /** Perform thread-specific initialisation for OpenSSL
297  *
298  * Async contexts are what OpenSSL uses to track
299  *
300  * @param[in] async_pool_size_init The initial number of async contexts
301  * we keep in the pool.
302  * @param[in] async_pool_size_max The maximum number of async contexts
303  * we keep in the thread-local pool.
304  * @return
305  * - 0 on success.
306  * - -1 on failure.
307  */
308 int fr_openssl_thread_init(size_t async_pool_size_init, size_t async_pool_size_max)
309 {
310  /*
311  * Hack to use thread local destructor code
312  */
313  if (!async_pool_init) {
314  bool *init = talloc_zero(NULL, bool);
315 
316  if (ASYNC_init_thread(async_pool_size_max, async_pool_size_init) != 1) {
317  fr_tls_log(NULL, "Failed initialising OpenSSL async context pool");
318  return -1;
319  }
320 
321  fr_atexit_thread_local(async_pool_init, _openssl_thread_free, init);
322  }
323 
324  return 0;
325 }
326 
327 /** Free any memory alloced by libssl
328  *
329  * OpenSSL >= 1.1.0 uses an atexit handler to automatically free
330  * memory. However, we need to call OPENSSL_cleanup manually because
331  * some of the SSL ctx is parented to the main config which will get
332  * freed before the atexit handler, causing a segfault on exit.
333  */
334 void fr_openssl_free(void)
335 {
336  if (--openssl_instance_count > 0) return;
337 
338  fr_tls_log_free();
339 
340  fr_tls_bio_free();
341 }
342 
343 static void _openssl_provider_free(void)
344 {
345  if (openssl_default_provider && !OSSL_PROVIDER_unload(openssl_default_provider)) {
346  fr_tls_log(NULL, "Failed unloading default provider");
347  }
348  openssl_default_provider = NULL;
349 
350  if (openssl_legacy_provider && !OSSL_PROVIDER_unload(openssl_legacy_provider)) {
351  fr_tls_log(NULL, "Failed unloading legacy provider");
352  }
353  openssl_legacy_provider = NULL;
354 }
355 
356 static int fr_openssl_cleanup(UNUSED void *uctx)
357 {
358  OPENSSL_cleanup();
359  return 0;
360 }
361 
362 /** Add all the default ciphers and message digests to our context.
363  *
364  * This should be called exactly once from main, before reading the main config
365  * or initialising any modules.
366  */
367 int fr_openssl_init(void)
368 {
369  if (openssl_instance_count > 0) {
370  openssl_instance_count++;
371  return 0;
372  }
373 
374  /*
375  * This will only fail if memory has already been allocated
376  * by OpenSSL.
377  */
378  if (CRYPTO_set_mem_functions(fr_openssl_talloc, fr_openssl_talloc_realloc, fr_openssl_talloc_free) != 1) {
379  fr_tls_log(NULL, "Failed to set OpenSSL memory allocation functions. fr_openssl_init() called too late");
380  return -1;
381  }
382 
383  /*
384  * NO_ATEXIT has no effect if init is done after
385  * loading providers, and we need to control the
386  * exit handler as it needs to be executed last
387  * after all the EVP_MD ctx have been called, as
388  * they may unload elements of providers once all
389  * the contexts have been cleaned up.
390  */
391  if (OPENSSL_init_ssl(OPENSSL_INIT_NO_ATEXIT | OPENSSL_INIT_LOAD_CONFIG, NULL) != 1) {
392  fr_tls_log(NULL, "Failed calling OPENSSL_init_crypto()");
393  return -1;
394  }
395 
396  /*
397  * Load the default provider for most algorithms
398  */
399  openssl_default_provider = OSSL_PROVIDER_load(NULL, "default");
400  if (!openssl_default_provider) {
401  fr_tls_log(NULL, "Failed loading default provider");
402  return -1;
403  }
404 
405  /*
406  * Needed for MD4
407  *
408  * https://www.openssl.org/docs/man3.0/man7/migration_guide.html#Legacy-Algorithms
409  */
410  openssl_legacy_provider = OSSL_PROVIDER_load(NULL, "legacy");
411  if (!openssl_legacy_provider) {
412  fr_tls_log(NULL, "Failed loading legacy provider");
413  return -1;
414  }
415 
416  /*
417  * It's best to use OpenSSL's cleanup stack
418  * as then everything is cleaned up relative
419  * to the OPENSSL_cleanup() call.
420  */
421  OPENSSL_atexit(_openssl_provider_free);
422 
423  /*
424  * SHA256 is in all versions of OpenSSL, but isn't
425  * initialized by default. It's needed for WiMAX
426  * certificates.
427  */
428  EVP_add_digest(EVP_sha256());
429 
430  fr_tls_log_init();
431 
432  fr_tls_bio_init();
433 
434  /*
435  * Use an atexit handler to try and ensure
436  * that OpenSSL gets freed last.
437  *
438  * All EVP_*ctxs need to be freed before we
439  * de-initialise the libraries else we get
440  * crashes (at least with OpenSSL 3.0.1).
441  */
442  fr_atexit_global(fr_openssl_cleanup, NULL);
443 
444  openssl_instance_count++;
445 
446  return 0;
447 }
448 
449 /** Enable or disable fips mode
450  *
451  * @param[in] enabled If true enable fips mode if false disable fips mode.
452  * @return
453  * - 0 on success.
454  * - -1 on failure
455  */
456 int fr_openssl_fips_mode(bool enabled)
457 {
458  if (!EVP_set_default_properties(NULL, enabled ? "fips=yes" : "fips=no")) {
459  fr_tls_log(NULL, "Failed %s OpenSSL FIPS mode", enabled ? "enabling" : "disabling");
460  return -1;
461  }
462 
463  return 0;
464 }
465 
466 /** Load dictionary attributes
467  *
468  * This is a separate function because of ordering issues.
469  * OpenSSL may need to be initialised before anything else
470  * including the dictionary loader.
471  *
472  * fr_openssl_free will unload both the dictionary and the
473  * OpenSSL library.
474  */
475 int fr_tls_dict_init(void)
476 {
477  if (tls_instance_count > 0) {
478  tls_instance_count++;
479  return 0;
480  }
481 
482  tls_instance_count++;
483 
484  if (fr_dict_autoload(tls_dict) < 0) {
485  PERROR("Failed initialising protocol library");
486  fail:
487  tls_instance_count--;
488  fr_openssl_free();
489  return -1;
490  }
491 
492  if (fr_dict_attr_autoload(tls_dict_attr) < 0) {
493  PERROR("Failed resolving attributes");
494  goto fail;
495  }
496 
497  if (fr_dict_enum_autoload(tls_dict_enum) < 0) {
498  PERROR("Failed resolving enums");
499  goto fail;
500  }
501 
502  return 0;
503 }
504 
505 void fr_tls_dict_free(void)
506 {
507  if (--tls_instance_count > 0) return;
508 
509  fr_dict_autofree(tls_dict);
510 }
511 #endif /* WITH_TLS */
static int const char char buffer[256]
Definition: acutest.h:574
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
#define USES_APPLE_DEPRECATED_API
Definition: build.h:468
#define RCSID(id)
Definition: build.h:481
#define NDEBUG_UNUSED
Definition: build.h:324
#define UNUSED
Definition: build.h:313
fr_dcursor_eval_t void const * uctx
Definition: dcursor.h:546
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:850
fr_value_box_t const ** out
Enumeration value.
Definition: dict.h:256
fr_dict_attr_t const ** out
Where to write a pointer to the resolved fr_dict_attr_t.
Definition: dict.h:267
fr_dict_t const ** out
Where to write a pointer to the loaded/resolved fr_dict_t.
Definition: dict.h:280
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:847
Specifies an attribute which must be present for the module to function.
Definition: dict.h:266
Specifies a dictionary which must be loaded/loadable for the module to function.
Definition: dict.h:279
Specifies a value which must be present for the module to function.
Definition: dict.h:255
fr_dict_attr_t const * attr_tls_certificate
Attribute definitions for lib curl.
Definition: base.c:36
fr_dict_t const * dict_freeradius
Definition: base.c:77
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_t const * dict_tls
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
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
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
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_packet_type_notfound
HIDDEN fr_dict_attr_t const * attr_tls_certificate_signature
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.
Definition: merged_model.c:113
@ FR_TYPE_TLV
Contains nested attributes.
Definition: merged_model.c:118
@ FR_TYPE_STRING
String of printable characters.
Definition: merged_model.c:83
@ FR_TYPE_DATE
Unix time stamp, always has value >2^31.
Definition: merged_model.c:111
@ FR_TYPE_UINT8
8 Bit unsigned integer.
Definition: merged_model.c:97
@ FR_TYPE_UINT32
32 Bit unsigned integer.
Definition: merged_model.c:99
@ FR_TYPE_BOOL
A truth value.
Definition: merged_model.c:95
@ FR_TYPE_OCTETS
Raw octets.
Definition: merged_model.c:84
unsigned int uint32_t
Definition: merged_model.c:33
unsigned char uint8_t
Definition: merged_model.c:30
PUBLIC int snprintf(char *string, size_t length, char *format, va_alist)
Definition: snprintf.c:689
init
Enter the EAP-IDENTITY state.
Definition: state_machine.c:90