diff options
author | lloyd <[email protected]> | 2012-01-23 21:51:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-23 21:51:18 +0000 |
commit | 01039638f8b5387540c4bacd4d236a8b8e806d0f (patch) | |
tree | 4aada3b77da95061b8a6778b23afbd3569696392 /src/utils/parsing.h | |
parent | a12a50cc0eaf5113d2f0687f4c1d4be5ff820838 (diff) |
Add Ciphersuite::to_string
Add a convenience function to Session that returns the ciphersuite
class since mostly users won't care about the underlying code point.
Diffstat (limited to 'src/utils/parsing.h')
-rw-r--r-- | src/utils/parsing.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/utils/parsing.h b/src/utils/parsing.h index 12370bf2b..668272309 100644 --- a/src/utils/parsing.h +++ b/src/utils/parsing.h @@ -32,6 +32,16 @@ BOTAN_DLL std::vector<std::string> split_on( const std::string& str, char delim); /** +* Replace a character in a string +* @param str the input string +* @param from_char the character to replace +* @return to_char the character to replace it with +*/ +BOTAN_DLL std::string replace_char(const std::string& str, + char from_char, + char to_char); + +/** * Parse an ASN.1 OID * @param oid the OID in string form * @return OID components |