MySQL 9.3.0
Source Code Documentation
utils_encoding.cc File Reference
#include "utils/utils_encoding.h"
#include <openssl/evp.h>
#include <algorithm>
#include <cassert>
#include <memory>
#include <stdexcept>
#include <utility>

Namespaces

namespace  shcore
 
namespace  shcore::anonymous_namespace{utils_encoding.cc}
 

Typedefs

using shcore::anonymous_namespace{utils_encoding.cc}::BIO_ptr = std::unique_ptr< BIO, decltype(&::BIO_free)>
 

Functions

bool shcore::decode_base64 (std::string_view source, std::string *target)
 Decodes a base64 encoded string. More...
 
bool shcore::encode_base64 (const unsigned char *source, std::size_t source_length, std::string *encoded)
 
bool shcore::encode_base64 (std::string_view source, std::string *encoded)
 
bool shcore::decode_base64url (std::string_view source, std::string *target)
 
bool shcore::encode_base64url (const unsigned char *source, std::size_t source_length, std::string *encoded)
 Replaces '+' with '-' and '/' with '_', trims any '=' (RFC 7515, Section 2 and RFC 4648, Section 5). More...
 
bool shcore::encode_base64url (std::string_view source, std::string *encoded)