|
OpenVAS Scanner 23.32.3
|


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 172 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 314 of file nasl_krb5.c.
References cached_gss_context, free(), okrb5_gss_free_context(), and to_application.
Referenced by openvas().


Definition at line 381 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 151 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 245 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 262 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 362 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 282 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 329 of file nasl_krb5.c.
References alloc_typed_cell(), CONST_INT, gss_update_context_more, TC::i_val, and TC::x.

Definition at line 347 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 235 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 214 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.
