|
OpenVAS Scanner 23.23.1
|
#include "openvas-krb5.h"#include <ctype.h>#include <gssapi/gssapi.h>#include <gssapi/gssapi_krb5.h>#include <krb5/krb5.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <time.h>Data Structures | |
| struct | OKrb5GSSCredentials |
| struct | OKrb5GSSContext |
Macros | |
| #define | GUARD_NULL(var, return_var) |
| #define | GUARD_NOT_NULL(var, return_var) |
| #define | ALLOCATE_AND_CHECK(var, type, n, return_var) |
| #define | SKIP_WS(line, line_len, start, i) |
| #define | IS_STR_EQUAL(line, line_len, start, cmp, cmp_len) |
| #define | GSS_KRB5_INQ_SSPI_SESSION_KEY_OID_LENGTH 11 |
| #define | GSS_KRB5_INQ_SSPI_SESSION_KEY_OID "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x05" |
| #define | gss_mech_spnego (&spnego_mech_oid_desc) |
| #define | ARRAY_SIZE(a) |
| #define | MAX_LINE_LENGTH 1024 |
| #define | CHECK_FPRINTF(result, writer, fmt, ...) |
| #define | CHECK_FPRINT(result, writer, fmt) |
| #define | CHECK_MAJOR_STAT() |
| #define | HEAP_STRING(var, s) |
Variables | |
| gss_OID_desc | spnego_mech_oid_desc = {6, (void *) "\x2b\x06\x01\x05\x05\x02"} |
| #define ALLOCATE_AND_CHECK | ( | var, | |
| type, | |||
| n, | |||
| return_var ) |
| #define ARRAY_SIZE | ( | a | ) |
| #define CHECK_FPRINT | ( | result, | |
| writer, | |||
| fmt ) |
| #define CHECK_FPRINTF | ( | result, | |
| writer, | |||
| fmt, | |||
| ... ) |
| #define CHECK_MAJOR_STAT | ( | ) |
| #define GSS_KRB5_INQ_SSPI_SESSION_KEY_OID "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x05\x05" |
| #define GSS_KRB5_INQ_SSPI_SESSION_KEY_OID_LENGTH 11 |
| #define gss_mech_spnego (&spnego_mech_oid_desc) |
| #define GUARD_NOT_NULL | ( | var, | |
| return_var ) |
| #define GUARD_NULL | ( | var, | |
| return_var ) |
| #define HEAP_STRING | ( | var, | |
| s ) |
| #define IS_STR_EQUAL | ( | line, | |
| line_len, | |||
| start, | |||
| cmp, | |||
| cmp_len ) |
| #define MAX_LINE_LENGTH 1024 |
| #define SKIP_WS | ( | line, | |
| line_len, | |||
| start, | |||
| i ) |
| OKrb5ErrorCode o_krb5_add_realm | ( | const OKrb5Credential * | creds, |
| const char * | kdc ) |
| OKrb5ErrorCode o_krb5_find_kdc | ( | const OKrb5Credential * | creds, |
| char ** | kdc ) |
| OKrb5ErrorCode o_krb5_gss_prepare_context | ( | const OKrb5Credential * | creds, |
| struct OKrb5GSSContext * | gss_context ) |
| OKrb5ErrorCode o_krb5_gss_session_key_context | ( | struct OKrb5GSSContext * | gss_context, |
| struct OKrb5Slice ** | out ) |
| OKrb5ErrorCode o_krb5_gss_update_context | ( | struct OKrb5GSSContext * | gss_context, |
| const struct OKrb5Slice * | in_data, | ||
| struct OKrb5Slice ** | out_data, | ||
| bool * | more ) |
|
static |
|
static |
| char * okrb5_error_code_to_string | ( | const OKrb5ErrorCode | code | ) |
|
static |
| void okrb5_gss_free_context | ( | struct OKrb5GSSContext * | context | ) |
| struct OKrb5GSSContext * okrb5_gss_init_context | ( | void | ) |
| gss_OID_desc spnego_mech_oid_desc = {6, (void *) "\x2b\x06\x01\x05\x05\x02"} |