The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
TLS utility functions. More...
Go to the source code of this file.
Functions | |
int | fr_tls_utils_asn1time_to_epoch (time_t *out, ASN1_TIME const *asn1) |
Convert OpenSSL's ASN1_TIME to an epoch time. More... | |
int | fr_tls_utils_keyblock_size_get (request_t *request, SSL *ssl) |
Returns the OpenSSL keyblock size. More... | |
char const * | fr_tls_utils_x509_pkey_type (X509 *cert) |
Returns a friendly identifier for the public key type of a certificate. More... | |
Variables | |
static fr_table_num_sorted_t const | pkey_types [] |
PKEY types (friendly names) More... | |
static size_t | pkey_types_len = NUM_ELEMENTS(pkey_types) |
TLS utility functions.
Definition in file utils.c.
int fr_tls_utils_asn1time_to_epoch | ( | time_t * | out, |
ASN1_TIME const * | asn1 | ||
) |
int fr_tls_utils_keyblock_size_get | ( | request_t * | request, |
SSL * | ssl | ||
) |
Returns the OpenSSL keyblock size.
These programs are licensed under the BSD license (the one with advertisement clause removed).
this function shamelessly stolen from from hostap:src/crypto/tls_openssl.c:openssl_get_keyblock_size()
[in] | request | The current request. |
[in] | ssl | The current SSL session. |
Definition at line 80 of file utils.c.
char const* fr_tls_utils_x509_pkey_type | ( | X509 * | cert | ) |
|
static |
|
static |