Skip to content

Commit 248193e

Browse files
bjoriajdavis
authored andcommitted
CDRIVER-1934 Darwin Secure Transport build warning
1 parent ca4a165 commit 248193e

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/mongoc/mongoc-stream-tls-secure-transport.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@
1818

1919
#ifdef MONGOC_ENABLE_SSL_SECURE_TRANSPORT
2020

21+
#include <Security/Security.h>
22+
#include <Security/SecureTransport.h>
23+
#include <CoreFoundation/CoreFoundation.h>
24+
25+
2126
#include <bson.h>
2227

2328
#include "mongoc-trace-private.h"
2429
#include "mongoc-log.h"
25-
#include "mongoc-stream-tls.h"
26-
#include "mongoc-stream-tls-private.h"
27-
#include "mongoc-stream-private.h"
28-
#include "mongoc-stream-tls-secure-transport-private.h"
2930
#include "mongoc-secure-transport-private.h"
3031
#include "mongoc-ssl.h"
3132
#include "mongoc-error.h"
3233
#include "mongoc-counters-private.h"
33-
34-
#include <Security/Security.h>
35-
#include <Security/SecureTransport.h>
36-
#include <CoreFoundation/CoreFoundation.h>
34+
#include "mongoc-stream-tls.h"
35+
#include "mongoc-stream-tls-private.h"
36+
#include "mongoc-stream-private.h"
37+
#include "mongoc-stream-tls-secure-transport-private.h"
3738

3839
#undef MONGOC_LOG_DOMAIN
3940
#define MONGOC_LOG_DOMAIN "stream-tls-secure_transport"

src/mongoc/mongoc-stream-tls.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@
1818

1919
#ifdef MONGOC_ENABLE_SSL
2020

21-
#include <bson.h>
22-
2321
#include <errno.h>
2422
#include <string.h>
25-
#include "mongoc-stream-tls.h"
26-
#include "mongoc-stream-tls-private.h"
27-
#include "mongoc-stream-private.h"
23+
#include <bson.h>
24+
2825
#include "mongoc-log.h"
2926
#include "mongoc-trace-private.h"
3027
#include "mongoc-error.h"
3128

29+
#include "mongoc-stream-tls-private.h"
30+
#include "mongoc-stream-private.h"
3231
#if defined(MONGOC_ENABLE_SSL_OPENSSL)
3332
# include "mongoc-stream-tls-openssl.h"
3433
# include "mongoc-openssl-private.h"
@@ -42,6 +41,7 @@
4241
# include "mongoc-secure-channel-private.h"
4342
# include "mongoc-stream-tls-secure-channel.h"
4443
#endif
44+
#include "mongoc-stream-tls.h"
4545

4646
#undef MONGOC_LOG_DOMAIN
4747
#define MONGOC_LOG_DOMAIN "stream-tls"

0 commit comments

Comments
 (0)