diff --git a/crypto/bio/connect.c b/crypto/bio/connect.c index 0b60f6a9..604803ac 100644 --- a/crypto/bio/connect.c +++ b/crypto/bio/connect.c @@ -56,6 +56,8 @@ #include +#if !defined(OPENSSL_TRUSTY) + #include #include #include @@ -540,3 +542,5 @@ int BIO_set_nbio(BIO *bio, int on) { int BIO_do_connect(BIO *bio) { return BIO_ctrl(bio, BIO_C_DO_STATE_MACHINE, 0, NULL); } + +#endif // OPENSSL_TRUSTY diff --git a/crypto/bio/fd.c b/crypto/bio/fd.c index fed5228f..877f53d1 100644 --- a/crypto/bio/fd.c +++ b/crypto/bio/fd.c @@ -56,6 +56,8 @@ #include +#if !defined(OPENSSL_TRUSTY) + #include #include @@ -274,3 +276,5 @@ int BIO_set_fd(BIO *bio, int fd, int close_flag) { int BIO_get_fd(BIO *bio, int *out_fd) { return BIO_ctrl(bio, BIO_C_GET_FD, 0, (char *) out_fd); } + +#endif // OPENSSL_TRUSTY diff --git a/crypto/bio/file.c b/crypto/bio/file.c index f61dbe4f..6a0b9a99 100644 --- a/crypto/bio/file.c +++ b/crypto/bio/file.c @@ -73,6 +73,8 @@ #include +#if !defined(OPENSSL_TRUSTY) + #include #include #include @@ -313,3 +315,5 @@ int BIO_rw_filename(BIO *bio, const char *filename) { return BIO_ctrl(bio, BIO_C_SET_FILENAME, BIO_CLOSE | BIO_FP_READ | BIO_FP_WRITE, (char *)filename); } + +#endif // OPENSSL_TRUSTY diff --git a/crypto/bio/socket.c b/crypto/bio/socket.c index 111761fa..081ce010 100644 --- a/crypto/bio/socket.c +++ b/crypto/bio/socket.c @@ -57,6 +57,8 @@ #include +#if !defined(OPENSSL_TRUSTY) + #include #include @@ -200,3 +202,5 @@ BIO *BIO_new_socket(int fd, int close_flag) { BIO_set_fd(ret, fd, close_flag); return ret; } + +#endif // OPENSSL_TRUSTY diff --git a/crypto/bio/socket_helper.c b/crypto/bio/socket_helper.c index 268405a6..d4209d0f 100644 --- a/crypto/bio/socket_helper.c +++ b/crypto/bio/socket_helper.c @@ -18,6 +18,8 @@ #include #include +#if !defined(OPENSSL_TRUSTY) + #include #include #include @@ -112,3 +114,5 @@ int bio_sock_error(int sock) { } return error; } + +#endif // OPENSSL_TRUSTY diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index b3bfffeb..9a0e2ebc 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -65,6 +65,8 @@ #include #include +#if !defined(OPENSSL_TRUSTY) + #include "../internal.h" typedef struct lookup_dir_hashes_st { @@ -452,3 +454,5 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, BUF_MEM_free(b); return (ok); } + +#endif // OPENSSL_TRUSTY