Skip to content

Commit 7740237

Browse files
npaunanonrig
authored andcommitted
Fix include what you use violations
1 parent 91bf540 commit 7740237

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

include/ncrypto.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,21 @@
1212
#include <openssl/ssl.h>
1313
#include <openssl/x509.h>
1414

15+
#include <stdint.h>
1516
#include <cstddef>
17+
#include <cstdio>
1618
#include <functional>
1719
#include <list>
1820
#include <memory>
1921
#include <optional>
2022
#include <string>
2123
#include <string_view>
24+
#include <utility>
25+
26+
#if NCRYPTO_DEVELOPMENT_CHECKS
27+
#include <iostream>
28+
#endif
29+
2230
#ifndef OPENSSL_NO_ENGINE
2331
#include <openssl/engine.h>
2432
#endif // !OPENSSL_NO_ENGINE

src/ncrypto.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717

1818
#include <algorithm>
1919
#include <array>
20+
#include <cctype>
21+
#include <climits>
2022
#include <cstring>
2123
#include <string_view>
24+
#include <vector>
25+
2226
#if OPENSSL_VERSION_MAJOR >= 3
2327
#include <openssl/core_names.h>
2428
#include <openssl/params.h>

0 commit comments

Comments
 (0)