const tls_cipher_name_pair * tls_get_cipher_name_pair(const char *cipher_name, size_t len)
Garbage collection arena used to keep track of dynamically allocated memory.
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.
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 en...
const char * openssl_name
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...
int get_num_elements(const char *string, char delimiter)
Returns the occurrences of 'delimiter' in a string +1 This is typically used to find out the number e...
Get a tls_cipher_name_pair containing OpenSSL and IANA names for supplied TLS cipher name.