Do not include crypto/asn1.h from internal/cryptlib.h

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)
This commit is contained in:
Tomas Mraz 2023-10-19 09:18:37 +02:00
parent 1d768852e9
commit 80f32964a5
3 changed files with 4 additions and 3 deletions

View 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)

View File

@ -16,12 +16,13 @@
#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"

View File

@ -19,7 +19,6 @@
# endif
# include "internal/common.h"
# include "crypto/asn1.h"
# include <openssl/crypto.h>
# include <openssl/buffer.h>