]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add or clean header guards in src/
authorTim Rühsen <tim.ruehsen@gmx.de>
Sun, 28 Apr 2019 10:19:01 +0000 (12:19 +0200)
committerTim Rühsen <tim.ruehsen@gmx.de>
Tue, 7 May 2019 19:10:46 +0000 (21:10 +0200)
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
src/benchmark.h
src/certtool-cfg.h
src/certtool-common.h
src/common.h
src/inline_cmds.h
src/list.h
src/ocsptool-common.h
src/p11tool.h
src/tests.h
src/udp-serv.h

index f449a576ed9991fe641d0cfe9b67f5eadabc24fc..2152e6edcfc82f569ed57739b2db4e8874a24925 100644 (file)
@@ -17,6 +17,9 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
+#ifndef GNUTLS_SRC_BENCHMARK_H
+#define GNUTLS_SRC_BENCHMARK_H
+
 #include <sys/time.h>
 #include <time.h>
 #include <signal.h>
@@ -67,3 +70,5 @@ timespec_sub_ms(struct timespec *a, struct timespec *b)
 {
        return (a->tv_sec - b->tv_sec) * 1000 + (a->tv_nsec - b->tv_nsec) / (1000 * 1000);
 }
+
+#endif /* GNUTLS_SRC_BENCHMARK_H */
index 6a4be91e6f03f5a1107bba78fe0429359e82a177..c23ff5b0b0e35a56f9a269f00eeabcfebddec6a6 100644 (file)
@@ -20,6 +20,9 @@
  * Written by Nikos Mavrogiannopoulos <nmav@gnutls.org>.
  */
 
+#ifndef GNUTLS_SRC_CERTTOOL_CFG_H
+#define GNUTLS_SRC_CERTTOOL_CFG_H
+
 #include <stdbool.h>
 #include <stdint.h>
 #include <gnutls/x509.h>
@@ -103,3 +106,5 @@ void get_oid_crq_set(gnutls_x509_crq_t crq);
 const char *get_proxy_policy(char **policy, size_t * policylen);
 
 void crq_extensions_set(gnutls_x509_crt_t crt, gnutls_x509_crq_t crq);
+
+#endif /* GNUTLS_SRC_CERTTOOL_CFG_H */
index 9e423c049349b1c7ac73eaaa2bdf6189144db7d8..a4b4c5867f1a082e57c398d210c73fbe35370e3c 100644 (file)
@@ -19,8 +19,8 @@
  * <https://www.gnu.org/licenses/>.
  */
 
-#ifndef CERTTOOL_COMMON_H
-#define CERTTOOL_COMMON_H
+#ifndef GNUTLS_SRC_CERTTOOL_COMMON_H
+#define GNUTLS_SRC_CERTTOOL_COMMON_H
 
 #include <gnutls/x509.h>
 #include <stdio.h>
@@ -193,4 +193,4 @@ gnutls_digest_algorithm_t hash_to_id(const char *hash);
 
 void sign_params_to_flags(common_info_st *cinfo, const char *params);
 
-#endif
+#endif /* GNUTLS_SRC_CERTTOOL_COMMON_H */
index 91b9ed04f2bbe23b3c7bc65fd7ba456acf6d15ab..40f16451ae54f16db11f2644de4e19e3b0531d2e 100644 (file)
@@ -18,8 +18,8 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
-#ifndef INCLUDE_COMMON_H
-# define INCLUDE_COMMON_H
+#ifndef GNUTLS_SRC_COMMON_H
+#define GNUTLS_SRC_COMMON_H
 
 #define SERVER "127.0.0.1"
 
@@ -144,4 +144,4 @@ void set_read_funcs(gnutls_session_t session)
 # define set_read_funcs(x)
 #endif
 
-#endif
+#endif /* GNUTLS_SRC_COMMON_H */
index b7731723454d867f3f75f2d3d5d0666dfee19c70..2705a8cc3047ada90c84e7cbd0ae47dacb3331c3 100755 (executable)
@@ -17,6 +17,9 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
+#ifndef GNUTLS_SRC_INLINE_CMDS_H
+#define GNUTLS_SRC_INLINE_CMDS_H
+
 /* 
  * The inline commands is a facility that can be used optionally
  * when --inline-commands is set during invocation of gnutls-cli
@@ -73,3 +76,5 @@ struct inline_command_definitions inline_commands_def[] = {
 };
 
 #define NUM_INLINE_COMMANDS ((unsigned)(sizeof(inline_commands_def)/sizeof(inline_commands_def[0])))
+
+#endif /* GNUTLS_SRC_INLINE_CMDS_H */
index 138f6d476dee90ede04304c6d86fc9d76925a950..967eb193e2c19f9d950ff16311e3406805061343 100644 (file)
@@ -18,6 +18,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#ifndef GNUTLS_SRC_LIST_H
+#define GNUTLS_SRC_LIST_H
+
 /*
     SOAP:
     
@@ -123,10 +126,6 @@ int main (int argc, char **argv)
 
 */
 
-
-#ifndef _LIST_H
-#define _LIST_H
-
 /* the `search' member points to the last found.
    this speeds up repeated searches on the same list-item,
    the consecutive list-item, or the pre-consecutive list-item.
@@ -444,4 +443,4 @@ struct list {
        free (__t);                                                                     \
     }                                                                                  \
 
-#endif                         /* _LIST_H */
+#endif /* GNUTLS_SRC_LIST_H */
index eda4adbc8b631036cbd0dfcda9146d9ecf3e9a02..76f16b0b92fced69c9990021bda8e1564ed03f36 100644 (file)
@@ -18,8 +18,8 @@
  * <https://www.gnu.org/licenses/>.
  */
 
-#ifndef OCSPTOOL_COMMON_H
-#define OCSPTOOL_COMMON_H
+#ifndef GNUTLS_SRC_OCSPTOOL_COMMON_H
+#define GNUTLS_SRC_OCSPTOOL_COMMON_H
 
 #include <gnutls/ocsp.h>
 
@@ -45,4 +45,4 @@ check_ocsp_response(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
                    gnutls_datum_t * data, gnutls_datum_t *nonce,
                    int verbose);
 
-#endif
+#endif /* GNUTLS_SRC_OCSPTOOL_COMMON_H */
index 2a49b7256bb8baa00cd55e2330ebf3cabbea3864..073bc79ca746aaea8b2a242626cdf948d18770aa 100644 (file)
@@ -20,8 +20,8 @@
  * <https://www.gnu.org/licenses/>.
  */
 
-#ifndef P11TOOL_H
-#define P11TOOL_H
+#ifndef GNUTLS_SRC_P11TOOL_H
+#define GNUTLS_SRC_P11TOOL_H
 
 #include "certtool-common.h"
 
@@ -72,4 +72,4 @@ void pkcs11_set_label(FILE * outfile, const char *url, int detailed,
 #define PKCS11_TYPE_PRIVKEY 5
 #define PKCS11_TYPE_INFO 6
 
-#endif
+#endif /* GNUTLS_SRC_P11TOOL_H */
index 79032d21752f6129227fcb079cf21132d64c1953..098c441a8d201662bd0b61bd17cd736a05c6ad41 100644 (file)
@@ -18,6 +18,9 @@
  * <https://www.gnu.org/licenses/>.
  */
 
+#ifndef GNUTLS_SRC_TESTS_H
+#define GNUTLS_SRC_TESTS_H
+
 typedef enum {
        TEST_SUCCEED, TEST_FAILED, TEST_UNSURE, TEST_IGNORE/*keep socket*/, TEST_IGNORE2/*destroy socket*/
 } test_code_t;
@@ -79,3 +82,5 @@ test_code_t test_aes_gcm(gnutls_session_t session);
 test_code_t test_aes_ccm(gnutls_session_t session);
 test_code_t test_aes_ccm_8(gnutls_session_t session);
 test_code_t test_sha256(gnutls_session_t session);
+
+#endif /* GNUTLS_SRC_TESTS_H */
index da8e4570ff736fa7005a5b44fa66a7ad1e91a67c..08c88de25400787ed29d852b6761c83563505364 100644 (file)
@@ -17,6 +17,9 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
+#ifndef GNUTLS_SRC_UDP_SERV_H
+#define GNUTLS_SRC_UDP_SERV_H
+
 #include <gnutls/dtls.h>
 
 void udp_server(const char *name, int port, int mtu);
@@ -25,3 +28,5 @@ const char *human_addr(const struct sockaddr *sa, socklen_t salen,
                       char *buf, size_t buflen);
 int wait_for_connection(void);
 int listen_socket(const char *name, int listen_port, int socktype);
+
+#endif /* GNUTLS_SRC_UDP_SERV_H */