Kea 2.2.0
base64.h
Go to the documentation of this file.
1// Copyright (C) 2009-2015 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef BASE64_H
8#define BASE64_H 1
9
10#include <stdint.h>
11#include <string>
12#include <vector>
13
14//
15// Note: this helper module isn't specific to the DNS protocol per se.
16// We should probably move this to somewhere else, possibly in some common
17// utility area.
18//
19
20namespace isc {
21namespace util {
22namespace encode {
23
37std::string encodeBase64(const std::vector<uint8_t>& binary);
38
61void decodeBase64(const std::string& input, std::vector<uint8_t>& result);
62
63} // namespace encode
64} // namespace util
65} // namespace isc
66
67#endif // BASE64_H
68
69// Local Variables:
70// mode: c++
71// End:
void decodeBase64(const std::string &input, std::vector< uint8_t > &result)
Decode a text encoded in the base64 format into the original data.
Definition: base_n.cc:454
std::string encodeBase64(const std::vector< uint8_t > &binary)
Encode binary data in the base64 format.
Definition: base_n.cc:449
Defines the logger used by the top-level component of kea-lfc.