The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Functions
krb5.c File Reference
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/base.h>
#include "krb5.h"
+ Include dependency graph for krb5.c:

Go to the source code of this file.

Macros

#define LOG_PREFIX   inst->name
 

Functions

static int _mod_conn_free (rlm_krb5_handle_t *conn)
 Frees libkrb5 resources associated with the handle. More...
 
void * krb5_mod_conn_create (TALLOC_CTX *ctx, void *instance, UNUSED fr_time_delta_t timeout)
 Create and return a new connection. More...
 

Macro Definition Documentation

◆ LOG_PREFIX

#define LOG_PREFIX   inst->name

Definition at line 27 of file krb5.c.

Function Documentation

◆ _mod_conn_free()

static int _mod_conn_free ( rlm_krb5_handle_t conn)
static

Frees libkrb5 resources associated with the handle.

Must not be called directly.

Parameters
connto free.
Returns
0 (always indicates success).

Definition at line 89 of file krb5.c.

+ Here is the caller graph for this function:

◆ krb5_mod_conn_create()

void* krb5_mod_conn_create ( TALLOC_CTX *  ctx,
void *  instance,
UNUSED fr_time_delta_t  timeout 
)

Create and return a new connection.

libkrb5(s) can talk to the KDC over TCP. Were assuming something sane is implemented by libkrb5 and that it does connection caching associated with contexts, so it's worth using a connection pool to preserve connections when workers die.

Definition at line 107 of file krb5.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: