OpenVPN
|
Go to the source code of this file.
Functions | |
const char * | parse_auth_failed_temp (struct options *o, const char *reason) |
bool | valid_integer (const char *str, bool positive) |
Checks if the string is a valid integer by checking if it can be converted to an integer. | |
int | positive_atoi (const char *str, int msglevel) |
Converts a str to a positive number if the string represents a postive integer number. | |
int | atoi_warn (const char *str, int msglevel) |
Converts a str to an integer if the string can be represented as an integer number. | |
int atoi_warn | ( | const char * | str, |
int | msglevel | ||
) |
Converts a str to an integer if the string can be represented as an integer number.
Otherwise print a warning with msglevel and return 0
Definition at line 135 of file options_util.c.
References msg.
Referenced by add_option(), and test_atoi_variants().
const char * parse_auth_failed_temp | ( | struct options * | o, |
const char * | reason | ||
) |
Definition at line 34 of file options_util.c.
References options::advance_next_remote, D_PUSH, D_PUSH_ERRORS, gc, gc_free(), gc_new(), msg, options::no_advance, options::server_backoff_time, and string_alloc().
Referenced by receive_auth_failed(), test_auth_fail_temp_flags(), test_auth_fail_temp_flags_msg(), and test_auth_fail_temp_no_flags().
int positive_atoi | ( | const char * | str, |
int | msglevel | ||
) |
Converts a str to a positive number if the string represents a postive integer number.
Otherwise print a warning with msglevel and return 0
Definition at line 119 of file options_util.c.
References msg.
Referenced by add_option(), and test_atoi_variants().
bool valid_integer | ( | const char * | str, |
bool | positive | ||
) |
Checks if the string is a valid integer by checking if it can be converted to an integer.
Definition at line 103 of file options_util.c.
Referenced by add_option(), and test_atoi_variants().