]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Do not include crypto/asn1.h from internal/cryptlib.h
authorTomas Mraz <tomas@openssl.org>
Thu, 19 Oct 2023 07:18:37 +0000 (09:18 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 19 Oct 2023 08:15:56 +0000 (10:15 +0200)
This is unnecessary and conceptualy wrong as
headers from internal should not include headers from crypto

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22432)

crypto/asn1/asn1_gen.c
crypto/x509/v3_addr.c
include/internal/cryptlib.h

index 2b27624d8ae8562df081cadef4e896440a0b1189..6f73449cf405c836e627e54e91a234e51128946c 100644 (file)
@@ -7,9 +7,10 @@
  * https://www.openssl.org/source/license.html
  */
 
-#include "internal/cryptlib.h"
 #include <openssl/asn1.h>
 #include <openssl/x509v3.h>
+#include "internal/cryptlib.h"
+#include "crypto/asn1.h"
 
 #define ASN1_GEN_FLAG           0x10000
 #define ASN1_GEN_FLAG_IMP       (ASN1_GEN_FLAG|1)
index f4c8de2d160b9e2e79dfd34b1be53466d834a2a5..b990d54048e6b387a88076d91d710c87f008a784 100644 (file)
 #include <assert.h>
 #include <string.h>
 
-#include "internal/cryptlib.h"
 #include <openssl/conf.h>
 #include <openssl/asn1.h>
 #include <openssl/asn1t.h>
 #include <openssl/buffer.h>
 #include <openssl/x509v3.h>
+#include "internal/cryptlib.h"
+#include "crypto/asn1.h"
 #include "crypto/x509.h"
 #include "ext_dat.h"
 #include "x509_local.h"
index 843a720b8f149b2eab9cbc4d78027366039e7efb..64851fd8ed340c13dc90cc931c310cf0c56ecb74 100644 (file)
@@ -19,7 +19,6 @@
 # endif
 
 # include "internal/common.h"
-# include "crypto/asn1.h"
 
 # include <openssl/crypto.h>
 # include <openssl/buffer.h>