Skip to content

Commit 724c5e4

Browse files
qhajjnicola
andauthored
Tweak docs (#2036)
* Fix typo in ssh_connect nasl function documentation * Fix indices for host and network nasl functions documentation Make them reflect existing files. Followup to 80bc0e7 that moved get_host_name from network-functions to host-functions. * Fix documentation of security_notus nasl function Followup to 2b3dffd that renamed security_notus from security_lsc. * Fix report-functions documentation index ... by adding a reference to security_notus. * Fix indices for misc and network nasl functions documentation ... by moving the reference to open_sock_kdc that was moved in 6c4bfc3. * Fix indices for misc and glue nasl functions documentation ... by moving the reference to safe_checks that was moved in 8f83bb1. * Fix index for glue nasl functions documentation ... by adding references to notus_error and notus functions added in 2b3dffd. * Fix index for glue nasl functions documentation ... by adding reference to update_table_driven_lsc_data added in b80cd72. * Fix description of availability in wmi-functions docs Simplify the section. * Whitespace * Fix name sections of krb5 docs Terminate them with period. * Add index for documentation of krb5 nasl functions --------- Co-authored-by: Juan José Nicola <[email protected]>
1 parent 92d12b1 commit 724c5e4

File tree

20 files changed

+35
-38
lines changed

20 files changed

+35
-38
lines changed

doc/manual/nasl/built-in-functions/glue-functions/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ This part contains functions that are dependent on openVAS.
88

99
- **[get_preference](get_preference.md)** - get a preference
1010
- **[get_script_oid](get_script_oid.md)** - get the OID of the current script
11+
- **[notus_error](notus_error.md)** - Get the last notus error as string
12+
- **[notus](notus.md)** - Starts a notus scan with given data
13+
- **[safe_checks](safe_checks.md)** - takes no argument and returns the boolean value of the “safe checks” option.
1114
- **[script_get_preference_file_content](script_get_preference_file_content.md)** - get the file contents of a plugins preference that is of type "file"
1215
- **[script_get_preference_file_location](script_get_preference_file_location.md)** - get the location of a plugin preference of type "file"
1316
- **[script_get_preference](script_get_preference.md)** - get the value of a plugin preference
17+
- **[update_table_driven_lsc_data](update_table_driven_lsc_data.md)** - Set information, so that openvas can start a table driven lsc
1418
- **[vendor_version](vendor_version.md)** - get vendor version

doc/manual/nasl/built-in-functions/host-functions/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Host functions are used to get, resolve, compare and add hosts to the vhosts lis
77
## TABLE OF CONTENT
88

99
- **[add_host_name](add_host_name.md)** - add a host name to the vhost list
10+
- **[get_host_name](get_host_name.md)** - get the currently scanned host
1011
- **[get_host_names](get_host_names.md)** - get a list with found hostnames
1112
- **[get_host_name_source](get_host_name_source.md)** - get the hostname source
1213
- **[resolve_host_name](resolve_host_name.md)** - get an IP address corresponding to the host name
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Krb5 functions
2+
3+
## General
4+
5+
Functions related to krb5 (Kerberos).
6+
7+
## Table of contents
8+
9+
- **[krb5_error_code_to_string](krb5_error_code_to_string.md)** - Returns a string representation of either the given code or the cached code.
10+
- **[krb5_find_kdc](krb5_find_kdc.md)** - Find the KDC for a given realm.
11+
- **[krb5_gss_init](krb5_gss_init.md)** - initialize the krb5 GSS-API library.
12+
- **[krb5_gss_prepare_context](krb5_gss_prepare_context.md)** - Creates the initial ticket request for the krb5 GSS-API library and prepares the context for further use.
13+
- **[krb5_gss_session_key](krb5_gss_session_key.md)** - Returns the session key or NULL if none was found.
14+
- **[krb5_gss_update_context](krb5_gss_update_context.md)** - Updates the context with the provided data and caches the output for the application.
15+
- **[krb5_gss_update_context_needs_more](krb5_gss_update_context_needs_more.md)** - Returns true when the previous `krb5_gss_update_context` requires further information/calls.
16+
- **[krb5_gss_update_context_out](krb5_gss_update_context_out.md)** - Returns the data for the application to send to the service.
17+
- **[krb5_is_failure](krb5_is_failure.md)** - Returns 1 if the last stored krb5 or given result code is a failure, 0 otherwise.
18+
- **[krb5_is_success](krb5_is_success.md)** - Returns 1 if the last stored krb5 or given result code is a success, 0 otherwise.

doc/manual/nasl/built-in-functions/krb5/krb5_error_code_to_string.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@
88

99
*str* **krb5_error_code_to_string**(int);
1010

11-
1211
## DESCRIPTION
1312

1413
Returns a string representation of either the given code or the cached code.
1514

1615
The cached code reflects the error code of the last krb5 function call.
1716

18-
1917
## RETURN VALUE
2018

2119
Returns a human readable version of the result code.

doc/manual/nasl/built-in-functions/krb5/krb5_find_kdc.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NAME
44

5-
**krb5_find_kdc** - Find the KDC for a given realm
5+
**krb5_find_kdc** - Find the KDC for a given realm.
66

77
## SYNOPSIS
88

@@ -14,7 +14,6 @@
1414

1515
This function opens the krb5.conf file (located either by environment variable KRB5_CONFIG or /etc/ktrb5.conf) and looks for an kdc entry for the given realm.
1616

17-
1817
## RETURN VALUE
1918

2019
The found KDC or *NULL* if the KDC could not be found.
@@ -29,5 +28,3 @@ Returns *NULL* if the realm is not found or the krb5.conf file could not be open
2928
kdc = insstr(realm: 'EXAMPLE.COM');
3029
display(kdc);
3130
```
32-
33-

doc/manual/nasl/built-in-functions/krb5/krb5_gss_init.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NAME
44

5-
**krb5_gss_init** - initialize the krb5 GSS-API library
5+
**krb5_gss_init** - initialize the krb5 GSS-API library.
66

77
## SYNOPSIS
88

@@ -20,7 +20,6 @@ When there is an already initialized context it will be destroyed and a new one
2020

2121
Returns 0 on success otherwise it is an failure.
2222

23-
2423
## EXAMPLES
2524

2625
```c#
@@ -29,5 +28,3 @@ if (krb5_is_failure(result)) {
2928
exit(42);
3029
}
3130
```
32-
33-

doc/manual/nasl/built-in-functions/krb5/krb5_gss_prepare_context.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ When krb5_gss_prepare_context is called it creates the initial ticket request fo
2323

2424
It can be used directly without calling krb5_gss_init first.
2525

26-
2726
## RETURN VALUE
2827

2928
Returns 0 on success otherwise it is an failure.
3029

31-
3230
## EXAMPLES
3331

3432
```c#
@@ -43,4 +41,3 @@ if (krb5_is_failure(result)) {
4341
exit(42);
4442
}
4543
```
46-

doc/manual/nasl/built-in-functions/krb5/krb5_gss_session_key.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
*str* **krb5_gss_update_context_session_key**();
1010

11-
1211
## DESCRIPTION
1312

1413
Returns the session key found within the context when the last `krb5_gss_update_context` was called. If no session key was found, NULL is returned.
1514

16-
1715
## RETURN VALUE
1816

1917
Returns the session key or NULL if none was found.
@@ -38,4 +36,3 @@ if (krb5_update_context_needs_more()) {
3836
session_key = krb5_gss_session_key();
3937
}
4038
```
41-

doc/manual/nasl/built-in-functions/krb5/krb5_gss_update_context.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ To verify if the process requires further step the caller must call `krb5_gss_up
2525

2626
Returns 0 on success otherwise it is an failure.
2727

28-
2928
## EXAMPLES
3029

3130
```nasl

doc/manual/nasl/built-in-functions/krb5/krb5_gss_update_context_needs_more.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ This method is used to verify if the previous `krb5_gss_update_context` requires
1616

1717
## RETURN VALUE
1818

19-
2019
Returns 1 if the previous `krb5_gss_update_context` requires further information/calls, 0 otherwise.
2120

2221
## EXAMPLES
@@ -40,4 +39,3 @@ if (krb5_gss_update_context_needs_more()) {
4039
exit(0);
4140
}
4241
```
43-

0 commit comments

Comments
 (0)