-/* Copyright (C) 2017 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
};
int32_t knot_base64_encode(const uint8_t *in,
- const uint32_t in_len,
- uint8_t *out,
- const uint32_t out_len)
+ const uint32_t in_len,
+ uint8_t *out,
+ const uint32_t out_len)
{
// Checking inputs.
if (in == NULL || out == NULL) {
}
int32_t knot_base64_encode_alloc(const uint8_t *in,
- const uint32_t in_len,
- uint8_t **out)
+ const uint32_t in_len,
+ uint8_t **out)
{
// Checking inputs.
if (out == NULL) {
}
int32_t knot_base64_decode(const uint8_t *in,
- const uint32_t in_len,
- uint8_t *out,
- const uint32_t out_len)
+ const uint32_t in_len,
+ uint8_t *out,
+ const uint32_t out_len)
{
// Checking inputs.
if (in == NULL || out == NULL) {
}
int32_t knot_base64_decode_alloc(const uint8_t *in,
- const uint32_t in_len,
- uint8_t **out)
+ const uint32_t in_len,
+ uint8_t **out)
{
// Checking inputs.
if (out == NULL) {
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
* \retval KNOT_E* if error.
*/
int32_t knot_base64_encode(const uint8_t *in,
- const uint32_t in_len,
- uint8_t *out,
- const uint32_t out_len);
+ const uint32_t in_len,
+ uint8_t *out,
+ const uint32_t out_len);
/*!
* \brief Encodes binary data using Base64 and output stores to own buffer.
* \retval KNOT_E* if error.
*/
int32_t knot_base64_encode_alloc(const uint8_t *in,
- const uint32_t in_len,
- uint8_t **out);
+ const uint32_t in_len,
+ uint8_t **out);
/*!
* \brief Decodes text data using Base64.
* \retval KNOT_E* if error.
*/
int32_t knot_base64_decode(const uint8_t *in,
- const uint32_t in_len,
- uint8_t *out,
- const uint32_t out_len);
+ const uint32_t in_len,
+ uint8_t *out,
+ const uint32_t out_len);
/*!
* \brief Decodes text data using Base64 and output stores to own buffer.
* \retval KNOT_E* if error.
*/
int32_t knot_base64_decode_alloc(const uint8_t *in,
- const uint32_t in_len,
- uint8_t **out);
+ const uint32_t in_len,
+ uint8_t **out);
/*! @} */
-/* Copyright (C) 2018 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2020 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by