OpenVPN
|
Go to the source code of this file.
Functions | |
char * | extract_var_peer_info (const char *peer_info, const char *var, struct gc_arena *gc) |
Extracts a variable from peer info, the returned string will be allocated using the supplied gc_arena. More... | |
unsigned int | extract_iv_proto (const char *peer_info) |
Extracts the IV_PROTO variable and returns its value or 0 if it cannot be extracted. More... | |
const char * | options_string_compat_lzo (const char *options, struct gc_arena *gc) |
Takes a locally produced OCC string for TLS server mode and modifies as if the option comp-lzo was enabled. More... | |
unsigned int extract_iv_proto | ( | const char * | peer_info | ) |
Extracts the IV_PROTO variable and returns its value or 0 if it cannot be extracted.
peer_info | peer info string to search for IV_PROTO |
Definition at line 62 of file ssl_util.c.
Referenced by multi_client_set_protocol_options(), p2p_ncp_set_options(), and send_auth_pending_messages().
char* extract_var_peer_info | ( | const char * | peer_info, |
const char * | var, | ||
struct gc_arena * | gc | ||
) |
Extracts a variable from peer info, the returned string will be allocated using the supplied gc_arena.
peer_info | The peer's peer_info |
var | The variable including =, e.g. IV_CIPHERS= |
Definition at line 32 of file ssl_util.c.
References string_alloc().
Referenced by check_auth_pending_method(), get_p2p_ncp_cipher(), prepare_push_reply(), and tls_peer_ncp_list().
const char* options_string_compat_lzo | ( | const char * | options, |
struct gc_arena * | gc | ||
) |
Takes a locally produced OCC string for TLS server mode and modifies as if the option comp-lzo was enabled.
This is to send a client in comp-lzo migrate mode the expected OCC string.
Note: This function expects the string to be in the locally generated format and does not accept arbitrary strings.
options | the locally generated OCC string |
gc | gc_arena to allocate the returned string in |
Definition at line 78 of file ssl_util.c.
References alloc_buf_gc(), BSTR, buf_printf(), and buf_write().
Referenced by key_method_2_read(), and test_compat_lzo_string().