|
OpenVAS Scanner 23.43.1
|


Go to the source code of this file.
Functions | |
| tree_cell * | nasl_okrb5_find_kdc (lex_ctxt *lexic) |
| Returns the defined KDC of a given Realm. | |
| tree_cell * | nasl_okrb5_add_realm (lex_ctxt *lexic) |
| Adds the given KDC to the given Realm. | |
| tree_cell * | nasl_okrb5_is_success (lex_ctxt *lexic) |
| Returns 1 if the krb5 function was successful 0 otherwise. | |
| tree_cell * | nasl_okrb5_is_failure (lex_ctxt *lexic) |
| Returns 0 if the krb5 function was successful and 1 if it failed. | |
| tree_cell * | nasl_okrb5_gss_init (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_gss_prepare_context (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_gss_update_context (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_gss_update_context_needs_more (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_gss_update_context_out (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_gss_session_key_context (lex_ctxt *lexic) |
| tree_cell * | nasl_okrb5_error_code_to_string (lex_ctxt *lexic) |
| void | nasl_okrb5_clean (void) |
Adds the given KDC to the given Realm.
This function returns 0 on success. To retrieve a human readable error message, the function okrb5_result can be used.
The nasl function has three optional parameter:
This function should only be used for debug purposes.
| [in] | lexic | NASL lexer. |
Definition at line 200 of file nasl_krb5.c.
References alloc_typed_cell(), build_krb5_credential(), CONST_INT, get_str_var_by_name(), TC::i_val, last_okrb5_result, NASL_PRINT_KRB_ERROR, o_krb5_add_realm(), O_KRB5_EXPECTED_NOT_NULL, and TC::x.

| void nasl_okrb5_clean | ( | void | ) |
Definition at line 340 of file nasl_krb5.c.
References cached_gss_context, free(), generated_config_path, okrb5_gss_free_context(), and to_application.
Referenced by exec_nasl_script().


Definition at line 414 of file nasl_krb5.c.
References alloc_typed_cell(), CONST_STR, last_okrb5_result, okrb5_error_code_to_string(), TC::size, TC::str_val, and TC::x.

Returns the defined KDC of a given Realm.
This function returns the KDC of a given Realm. The Realm is defined in the krb5.conf file. If there is no KDC for the given Realm, the function returns NULL within the tree_cell to the script.
The nasl function has two optional parameter:
This function should only be used for debug purposes.
| [in] | lexic | NASL lexer. |
Definition at line 179 of file nasl_krb5.c.
References alloc_typed_cell(), build_krb5_credential(), CONST_DATA, FAKE_CELL, last_okrb5_result, NASL_PRINT_KRB_ERROR, o_krb5_find_kdc(), TC::size, TC::str_val, and TC::x.

Definition at line 272 of file nasl_krb5.c.
References alloc_typed_cell(), cached_gss_context, CONST_INT, TC::i_val, last_okrb5_result, O_KRB5_EXPECTED_NOT_NULL, O_KRB5_SUCCESS, okrb5_gss_init_context(), and TC::x.

Definition at line 289 of file nasl_krb5.c.
References alloc_typed_cell(), build_krb5_credential(), cached_gss_context, CONST_INT, TC::i_val, last_okrb5_result, o_krb5_gss_prepare_context(), O_KRB5_SUCCESS, okrb5_gss_init_context(), and TC::x.

Definition at line 395 of file nasl_krb5.c.
References cached_gss_context, FAKE_CELL, last_okrb5_result, O_KRB5_EXPECTED_NOT_NULL, o_krb5_gss_session_key_context(), O_KRB5_SUCCESS, and okrb5_slice_to_tree_cell().

Definition at line 308 of file nasl_krb5.c.
References alloc_typed_cell(), cached_gss_context, CONST_INT, OKrb5Slice::data, free(), get_str_var_by_num(), get_var_size_by_num(), gss_update_context_more, TC::i_val, last_okrb5_result, OKrb5Slice::len, O_KRB5_EXPECTED_NOT_NULL, o_krb5_gss_update_context(), O_KRB5_SUCCESS, to_application, and TC::x.

Definition at line 362 of file nasl_krb5.c.
References alloc_typed_cell(), CONST_INT, gss_update_context_more, TC::i_val, and TC::x.

Definition at line 380 of file nasl_krb5.c.
References FAKE_CELL, okrb5_slice_to_tree_cell(), and to_application.

Returns 0 if the krb5 function was successful and 1 if it failed.
The nasl function has one optional parameter:
| [in] | lexic | NASL lexer. |
Definition at line 263 of file nasl_krb5.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_num(), TC::i_val, last_okrb5_result, O_KRB5_SUCCESS, and TC::x.

Returns 1 if the krb5 function was successful 0 otherwise.
The nasl function has one optional parameter:
| [in] | lexic | NASL lexer. |
Definition at line 242 of file nasl_krb5.c.
References alloc_typed_cell(), CONST_INT, get_int_var_by_num(), TC::i_val, last_okrb5_result, O_KRB5_SUCCESS, and TC::x.
