]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add missing header guards in apps
authorBob Beck <beck@openssl.org>
Mon, 27 Apr 2026 18:25:45 +0000 (12:25 -0600)
committerNorbert Pocs <norbertp@openssl.org>
Wed, 6 May 2026 11:35:24 +0000 (13:35 +0200)
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Wed May  6 11:35:51 2026
(Merged from https://github.com/openssl/openssl/pull/31001)

apps/include/app_params.h
apps/include/names.h
apps/include/s_apps.h
apps/testdsa.h
apps/testrsa.h

index 20caf737d4dab75d3de664fe435a1b2e2c6b98eb..5c8d22ced9fbbbd2049756fa16f495fbf2d09e9e 100644 (file)
@@ -7,7 +7,12 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_APPS_INCLUDE_APP_PARAMS_H)
+#define OSSL_APPS_INCLUDE_APP_PARAMS_H
+
 #include <openssl/core.h>
 
 int print_param_types(const char *thing, const OSSL_PARAM *pdefs, int indent);
 void print_param_value(const OSSL_PARAM *p, int indent);
+
+#endif /* !defined(OSSL_APPS_INCLUDE_APP_PARAMS_H) */
index bf47459ade522d2828f505b652f25f0e09ff6c51..a5d78de67704365f2f11e3f2b2732d61a63e9a48 100644 (file)
@@ -7,6 +7,9 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_APPS_INCLUDE_NAMES_H)
+#define OSSL_APPS_INCLUDE_NAMES_H
+
 #include <openssl/safestack.h>
 
 /* Standard comparing function for names */
@@ -15,3 +18,5 @@ int name_cmp(const char *const *a, const char *const *b);
 void collect_names(const char *name, void *vdata);
 /* Sorts and prints a stack of names to |out| */
 void print_names(BIO *out, STACK_OF(OPENSSL_CSTRING) *names);
+
+#endif /* !defined(OSSL_APPS_INCLUDE_NAMES_H) */
index c6a9a890c21d3305fd02f4491d07b4861640b265..6432a2032a5fe6a8a8fa828f5f114a11152034f7 100644 (file)
@@ -7,6 +7,9 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_APPS_INCLUDE_S_APPS_H)
+#define OSSL_APPS_INCLUDE_S_APPS_H
+
 #include <openssl/opensslconf.h>
 
 #include <openssl/ssl.h>
@@ -112,3 +115,5 @@ int set_up_srp_verifier_file(SSL_CTX *ctx, srpsrvparm *srp_callback_parm,
     char *srpuserseed, char *srp_verifier_file);
 void lookup_srp_user(srpsrvparm *srp_callback_parm, BIO *bio_s_out);
 #endif /* OPENSSL_NO_SRP */
+
+#endif /* !defined(OSSL_APPS_INCLUDE_S_APPS_H) */
index e8d04bb31e8ab57a580a4c8fae527266c25b691e..59c4bc4da2d2dbb800f33eb11bfb9dca253e1829 100644 (file)
@@ -7,6 +7,9 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_APPS_TESTDSA_H)
+#define OSSL_APPS_TESTDSA_H
+
 #include <openssl/param_build.h>
 
 /* used by speed.c */
@@ -1497,3 +1500,5 @@ err:
     EVP_PKEY_CTX_free(pctx);
     return pkey;
 }
+
+#endif /* !defined(OSSL_APPS_TESTDSA_H) */
index db9221e8aaa44f3b6be6ac0012587847857656ed..351f88b4c6153b0ee40952a221572e0024bc01af 100644 (file)
@@ -7,6 +7,9 @@
  * https://www.openssl.org/source/license.html
  */
 
+#if !defined(OSSL_APPS_TESTRSA_H)
+#define OSSL_APPS_TESTRSA_H
+
 static unsigned char test512[] = {
     0x30,
     0x82,
@@ -5976,3 +5979,5 @@ static unsigned char test15360[] = {
     0x91, 0x29, 0x6e, 0x08, 0x37, 0xd6, 0xaa, 0xd2, 0xf8, 0x4f,
     0x5e, 0x00, 0x16, 0x52
 };
+
+#endif /* !defined(OSSL_APPS_TESTRSA_H) */