]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add or clean header guards in lib/x509/
authorTim Rühsen <tim.ruehsen@gmx.de>
Sun, 28 Apr 2019 10:11:13 +0000 (12:11 +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>
12 files changed:
lib/x509/attributes.h
lib/x509/common.h
lib/x509/ip-in-cidr.h
lib/x509/ip.h
lib/x509/krb5.h
lib/x509/ocsp.h
lib/x509/pkcs7_int.h
lib/x509/prov-seed.h
lib/x509/verify-high.h
lib/x509/virt-san.h
lib/x509/x509_ext_int.h
lib/x509/x509_int.h

index 0d9314aa180a3e348d4bfd5207e7d30a1bcf63c2..c148935b75db8c82e15931f2885f8930f82235da 100644 (file)
@@ -20,6 +20,9 @@
  *
  */
 
+#ifndef GNUTLS_LIB_X509_ATTRIBUTES_H
+#define GNUTLS_LIB_X509_ATTRIBUTES_H
+
 int
 _x509_parse_attribute(ASN1_TYPE asn1_struct,
                const char *attr_name, const char *given_oid, unsigned indx,
@@ -28,3 +31,5 @@ _x509_parse_attribute(ASN1_TYPE asn1_struct,
 int
 _x509_set_attribute(ASN1_TYPE asn, const char *root,
              const char *ext_id, const gnutls_datum_t * ext_data);
+
+#endif /* GNUTLS_LIB_X509_ATTRIBUTES_H */
index 99b767a694d8358fbba3027f5e7000a2e1bb265b..8b60973388f27116371706fed66a35d832887b0a 100644 (file)
@@ -21,8 +21,8 @@
  *
  */
 
-#ifndef COMMON_H
-#define COMMON_H
+#ifndef GNUTLS_LIB_X509_COMMON_H
+#define GNUTLS_LIB_X509_COMMON_H
 
 #include <algorithms.h>
 #include <abstract_int.h>
@@ -287,4 +287,4 @@ inline static int _asn1_strict_der_decode (asn1_node * element, const void *ider
        return asn1_der_decoding2(element, ider, &len, _ASN1_DER_FLAGS, errorDescription);
 }
 
-#endif
+#endif /* GNUTLS_LIB_X509_COMMON_H */
index 40a65e637c77f04035f2a0e5e6dbb52ec709dda9..d5e26eb9488119ce1db2b39a63ebfbe49c972b27 100644 (file)
@@ -21,6 +21,9 @@
  *
  */
 
+#ifndef GNUTLS_LIB_X509_IP_IN_CIDR_H
+#define GNUTLS_LIB_X509_IP_IN_CIDR_H
+
 /*-
  * ip_in_cidr:
  * @ip: IP datum (IPv4 or IPv6)
@@ -51,3 +54,5 @@ static unsigned ip_in_cidr(const gnutls_datum_t *ip, const gnutls_datum_t *cidr)
 
        return 1; /* match */
 }
+
+#endif /* GNUTLS_LIB_X509_IP_IN_CIDR_H */
index 86f9975d91f66a7e57a1e8663d347a0b8c35fdcd..2c8569b88908589a221d7135a3dee159b9df4129 100644 (file)
@@ -21,8 +21,8 @@
  *
  */
 
-#ifndef IP_H
-#define IP_H
+#ifndef GNUTLS_LIB_X509_IP_H
+#define GNUTLS_LIB_X509_IP_H
 
 // for documentation, see the definition
 int _gnutls_mask_to_prefix(const unsigned char *mask, unsigned mask_size);
@@ -36,4 +36,4 @@ const char *_gnutls_cidr_to_string(const void *_ip, unsigned int ip_size, char *
 // for documentation, see the definition
 int _gnutls_mask_ip(unsigned char *ip, const unsigned char *mask, unsigned ipsize);
 
-#endif // IP_H
+#endif /* GNUTLS_LIB_X509_IP_H */
index 6824fde8ccf7fb34835fce8299341c3ca53deddf..d8926af67aa3dd7546e6b212854c6679f6663d79 100644 (file)
  * <https://www.gnu.org/licenses/>.
  */
 
+#ifndef GNUTLS_LIB_X509_KRB5_H
+#define GNUTLS_LIB_X509_KRB5_H
+
 int _gnutls_krb5_principal_to_der(const char *name, gnutls_datum_t * der);
 int _gnutls_krb5_der_to_principal(const gnutls_datum_t * der, gnutls_datum_t *name);
+
+#endif /* GNUTLS_LIB_X509_KRB5_H */
index 76bc309bb3aae6d44d1a8d3fc158ede32f80ee00..3f63a5bfe2322ceea4f8b7bbe88b942bff19cfd5 100644 (file)
@@ -20,6 +20,9 @@
  *
  */
 
+#ifndef GNUTLS_LIB_X509_OCSP_H
+#define GNUTLS_LIB_X509_OCSP_H
+
 /* Online Certificate Status Protocol - RFC 2560
  */
 #include <gnutls/ocsp.h>
@@ -30,3 +33,5 @@
 time_t _gnutls_ocsp_get_validity(gnutls_ocsp_resp_t resp);
 #define MAX_OCSP_MSG_SIZE 128
 const char *_gnutls_ocsp_verify_status_to_str(gnutls_ocsp_verify_reason_t r, char out[MAX_OCSP_MSG_SIZE]);
+
+#endif /* GNUTLS_LIB_X509_OCSP_H */
index 69e2873e566b303a1e804db66ceb7fc9c77adebd..97a01d7a4077968fbdaeea5c175b5f49d084ed44 100644 (file)
@@ -21,8 +21,8 @@
  *
  */
 
-#ifndef PKCS7_INT_H
-#define PKCS7_INT_H
+#ifndef GNUTLS_LIB_X509_PKCS7_INT_H
+#define GNUTLS_LIB_X509_PKCS7_INT_H
 
 #include <gnutls/x509.h>
 
@@ -131,4 +131,4 @@ int
 _gnutls_pkcs7_data_enc_info(const gnutls_datum_t * data, const struct pkcs_cipher_schema_st **p,
        struct pbkdf2_params *kdf_params, char **oid);
 
-#endif
+#endif /* GNUTLS_LIB_X509_PKCS7_INT_H */
index d9dd8e694880ae797a1457e114e39f898516af6f..a7753ccb50f69ba3040aeffed3f882fa2b79d2ab 100644 (file)
  *
  */
 
+#ifndef GNUTLS_LIB_X509_PROV_SEED_H
+#define GNUTLS_LIB_X509_PROV_SEED_H
+
 int _x509_encode_provable_seed(gnutls_x509_privkey_t pkey, gnutls_datum_t *der);
 int _x509_decode_provable_seed(gnutls_x509_privkey_t pkey, const gnutls_datum_t *der);
+
+#endif /* GNUTLS_LIB_X509_PROV_SEED_H */
index 68430fddba08086124e168d9d148153aab3b8725..ca1f98b831ac6a8a37cd84f24a641dc6b8735dd4 100644 (file)
@@ -20,8 +20,8 @@
  *
  */
 
-#ifndef VERIFY_HIGH_H
-# define VERIFY_HIGH_H
+#ifndef GNUTLS_LIB_X509_VERIFY_HIGH_H
+#define GNUTLS_LIB_X509_VERIFY_HIGH_H
 
 struct gnutls_x509_trust_list_st {
        unsigned int size;
@@ -46,4 +46,4 @@ struct gnutls_x509_trust_list_st {
 int _gnutls_trustlist_inlist(gnutls_x509_trust_list_t list,
                             gnutls_x509_crt_t cert);
 
-#endif
+#endif /* GNUTLS_LIB_X509_VERIFY_HIGH_H */
index c9fe3f7b554b96484b4526f2796ffbcf8bcb70b4..44b6fe65c50a019a88627e427f00e200408e4eaf 100644 (file)
  *
  */
 
-#ifndef VIRT_SAN_H
-# define VIRT_SAN_H
+#ifndef GNUTLS_LIB_X509_VIRT_SAN_H
+#define GNUTLS_LIB_X509_VIRT_SAN_H
 
 #include "x509_ext_int.h"
 
 int _gnutls_alt_name_assign_virt_type(struct name_st *name, unsigned type, gnutls_datum_t *san, const char *othername_oid, unsigned raw);
 
-#endif
+#endif /* GNUTLS_LIB_X509_VIRT_SAN_H */
index d1a395a6f8cc02f9d1c66504178b87e8af55bbb1..2e3f162a5dfd30e61fe7cc007f759220942e7831 100644 (file)
@@ -19,8 +19,8 @@
  *
  */
 
-#ifndef X509_EXT_INT_H
-#define X509_EXT_INT_H
+#ifndef GNUTLS_LIB_X509_X509_EXT_INT_H
+#define GNUTLS_LIB_X509_X509_EXT_INT_H
 
 #include "gnutls_int.h"
 struct name_st {
@@ -31,4 +31,4 @@ struct name_st {
 
 int _gnutls_alt_name_process(gnutls_datum_t *out, unsigned type, const gnutls_datum_t *san, unsigned raw);
 
-#endif
+#endif /* GNUTLS_LIB_X509_X509_EXT_INT_H */
index 353eb8cdc446ced6aacaab5d109cdf6f4a344c32..3b94fc50da744713e415fcdda13c365e4ead3481 100644 (file)
@@ -21,8 +21,8 @@
  *
  */
 
-#ifndef X509_H
-#define X509_H
+#ifndef GNUTLS_LIB_X509_X509_INT_H
+#define GNUTLS_LIB_X509_X509_INT_H
 
 #include <gnutls/x509.h>
 #include <gnutls/x509-ext.h>
@@ -546,4 +546,4 @@ struct gnutls_x509_tlsfeatures_st {
 
 unsigned _gnutls_is_broken_sig_allowed(const gnutls_sign_entry_st *se, unsigned int flags);
 
-#endif
+#endif /* GNUTLS_LIB_X509_X509_INT_H */