26RCSIDH(utils_h,
"$Id: 3f9241efff4b6c98cd7a9465aa651d5bc2dd8761 $")
28#include "openssl_user_macros.h"
30#include <openssl/ssl.h>
32#include <freeradius-devel/util/time.h>
33#include <freeradius-devel/server/request.h>
43#if OPENSSL_VERSION_NUMBER >= 0x40000000L
44# define FR_OPENSSL_X509_CONST const
46# define FR_OPENSSL_X509_CONST
53static inline size_t fr_tls_asn1_string_length(ASN1_STRING
const *s)
55#if OPENSSL_VERSION_NUMBER >= 0x40100000L
56 return ASN1_STRING_get_length(s);
58 return (
size_t)ASN1_STRING_length(s);
static uint8_t request[4]
int fr_utils_get_private_key_password(char *buf, int size, UNUSED int rwflag, void *u)
Return the static private key password we have configured.
char const * fr_tls_utils_x509_pkey_type(X509 *cert)
Returns a friendly identifier for the public key type of a certificate.
int fr_tls_utils_asn1time_to_epoch(time_t *out, ASN1_TIME const *asn1)
Convert OpenSSL's ASN1_TIME to an epoch time.
int fr_tls_utils_keyblock_size_get(request_t *request, SSL *ssl)
Returns the OpenSSL keyblock size.
static fr_sbuff_err_t char ** out