]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
base64: fix parameter alignment, update copyright
authorDaniel Salzman <daniel.salzman@nic.cz>
Mon, 10 Feb 2020 08:28:44 +0000 (09:28 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 10 Feb 2020 08:31:11 +0000 (09:31 +0100)
src/contrib/base64.c
src/contrib/base64.h
src/libdnssec/binary.c
src/libknot/rrset-dump.c
src/libknot/yparser/yptrafo.c
src/utils/common/tls.c
src/utils/kdig/kdig_params.c
src/utils/keymgr/functions.c
tests/contrib/test_base64.c

index 2d02e1a3e897728c2e171122af7a596912b0966a..ab4a56010dde7c5f227d75492180c5edd621b0bb 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
@@ -82,9 +82,9 @@ static const uint8_t base64_dec[256] = {
 };
 
 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) {
@@ -130,8 +130,8 @@ int32_t knot_base64_encode(const uint8_t  *in,
 }
 
 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) {
@@ -161,9 +161,9 @@ int32_t knot_base64_encode_alloc(const uint8_t  *in,
 }
 
 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) {
@@ -244,8 +244,8 @@ int32_t knot_base64_decode(const uint8_t  *in,
 }
 
 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) {
index 844af8843c37e4cc72851a488777f0481e41294d..0a98733e21d7c74d5e2752def4c61995fb830afa 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
@@ -37,9 +37,9 @@
  * \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.
@@ -57,8 +57,8 @@ int32_t knot_base64_encode(const uint8_t  *in,
  * \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.
@@ -76,9 +76,9 @@ int32_t knot_base64_encode_alloc(const uint8_t  *in,
  * \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.
@@ -97,7 +97,7 @@ int32_t knot_base64_decode(const uint8_t  *in,
  * \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);
 
 /*! @} */
index faefa550ea9c37f7f056791e17dedc9c2fface14..59153f39e5799b8ee2d91dbd8b62682dd428b696 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index a3ad5622d1f6b4e3e17d74aa430f1d824b3de5ed..1a457a2f462e8aef6e08b08b8600931347988f4c 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index f5452d6ebfbf32c513259476688b462058caa2e0..a632055d3b17c454d69ac28292658c72541a9be3 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index 3f2106bd2ae0c734e29279dfd866d5502c5fe8c2..d3e34c947f19cb17773a862cb931f786134d973d 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index 7d2987d18761f0995a17cfc6a5fde29f12440881..f90c3316d49f2332b02e2997c38927c14c13240c 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index 1477a0d7b7057c156618dbef0b6069cd0034b373..8f8c8e0ba105312f8e89c03e9fca4170d2cf8e6e 100644 (file)
@@ -1,4 +1,4 @@
-/*  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
index 678f9bbec69eb0abefe6338bdeea4006c82e9c5a..82eee7dc97a9798c0fb409515ad73cf6e6a12e2f 100644 (file)
@@ -1,4 +1,4 @@
-/*  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