summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-11-29 07:12:18 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-11-29 07:12:18 +0000
commit0f08594812914f6c6e3bd3d94bf89f6432247e62 (patch)
tree9c41db465b324119fe80fb2e5b4ca2da8fdc6c96 /lib/libcrypto/x509
parent7fea277f6c50da388ed560d52c5906b22b08fc0a (diff)
Fix includes
No need for errno, stdio, time, asn1, buffer, evp, lhash, objects, x509 for a switch containing string constants. We do need x509_vfy instead.
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r--lib/libcrypto/x509/x509_txt.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/libcrypto/x509/x509_txt.c b/lib/libcrypto/x509/x509_txt.c
index 2a4e49df10d..3ac1fd427d2 100644
--- a/lib/libcrypto/x509/x509_txt.c
+++ b/lib/libcrypto/x509/x509_txt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_txt.c,v 1.24 2022/11/29 07:08:41 tb Exp $ */
+/* $OpenBSD: x509_txt.c,v 1.25 2022/11/29 07:12:17 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,16 +56,7 @@
* [including the GNU Public Licence.]
*/
-#include <errno.h>
-#include <stdio.h>
-#include <time.h>
-
-#include <openssl/asn1.h>
-#include <openssl/buffer.h>
-#include <openssl/evp.h>
-#include <openssl/lhash.h>
-#include <openssl/objects.h>
-#include <openssl/x509.h>
+#include <openssl/x509_vfy.h>
const char *
X509_verify_cert_error_string(long n)