Refactoring BIO: Small adjustments
Because of the way bio_lcl.h is organised, we must not include internal/cryptlib.h before it. As a matter of fact, bio_lcl.h includes internal/cryptlib.h on its own. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
parent
28a0841bf5
commit
a5cc75d661
@ -60,7 +60,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "internal/cryptlib.h"
|
|
||||||
#include "bio_lcl.h"
|
#include "bio_lcl.h"
|
||||||
|
|
||||||
#define TRUNCATE
|
#define TRUNCATE
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#define USE_SOCKETS
|
|
||||||
#include "internal/cryptlib.h"
|
#include "bio_lcl.h"
|
||||||
|
|
||||||
#if defined(OPENSSL_NO_POSIX_IO)
|
#if defined(OPENSSL_NO_POSIX_IO)
|
||||||
/*
|
/*
|
||||||
@ -96,8 +96,6 @@ BIO_METHOD *BIO_s_fd(void)
|
|||||||
* file descriptors can only be provided by application. Therefore
|
* file descriptors can only be provided by application. Therefore
|
||||||
* "UPLINK" calls are due...
|
* "UPLINK" calls are due...
|
||||||
*/
|
*/
|
||||||
# include "bio_lcl.h"
|
|
||||||
|
|
||||||
static int fd_write(BIO *h, const char *buf, int num);
|
static int fd_write(BIO *h, const char *buf, int num);
|
||||||
static int fd_read(BIO *h, char *buf, int size);
|
static int fd_read(BIO *h, char *buf, int size);
|
||||||
static int fd_puts(BIO *h, const char *str);
|
static int fd_puts(BIO *h, const char *str);
|
||||||
|
@ -84,7 +84,6 @@
|
|||||||
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <errno.h>
|
# include <errno.h>
|
||||||
# include "internal/cryptlib.h"
|
|
||||||
# include "bio_lcl.h"
|
# include "bio_lcl.h"
|
||||||
# include <openssl/err.h>
|
# include <openssl/err.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user