summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_log.c
diff options
context:
space:
mode:
authorjsing <>2014-07-10 13:58:23 +0000
committerjsing <>2014-07-10 13:58:23 +0000
commitf8e6fe02fc43958d79cf9326eebabf8ef8d3ae34 (patch)
tree520bd0eaa8855b175013ab92f4175f47f1099115 /src/lib/libcrypto/bio/bss_log.c
parenta2a7393cf3489febec569cfa8aab8735e4f58339 (diff)
downloadopenbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.tar.gz
openbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.tar.bz2
openbsd-f8e6fe02fc43958d79cf9326eebabf8ef8d3ae34.zip
Stop including standard headers via cryptlib.h - pull in the headers that
are needed in the source files that actually require them. ok beck@ miod@
Diffstat (limited to 'src/lib/libcrypto/bio/bss_log.c')
-rw-r--r--src/lib/libcrypto/bio/bss_log.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bio/bss_log.c b/src/lib/libcrypto/bio/bss_log.c
index 0124f1403b..63361ce22f 100644
--- a/src/lib/libcrypto/bio/bss_log.c
+++ b/src/lib/libcrypto/bio/bss_log.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bss_log.c,v 1.19 2014/06/12 15:49:28 deraadt Exp $ */ 1/* $OpenBSD: bss_log.c,v 1.20 2014/07/10 13:58:22 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -62,20 +62,18 @@
62 62
63*/ 63*/
64 64
65
66#include <stdio.h>
67#include <errno.h> 65#include <errno.h>
66#include <stdio.h>
67#include <string.h>
68#include <syslog.h>
68 69
69#include "cryptlib.h" 70#include "cryptlib.h"
70 71
71#include <syslog.h>
72
73#include <openssl/buffer.h> 72#include <openssl/buffer.h>
74#include <openssl/err.h> 73#include <openssl/err.h>
75 74
76#ifndef NO_SYSLOG 75#ifndef NO_SYSLOG
77 76
78
79static int slg_write(BIO *h, const char *buf, int num); 77static int slg_write(BIO *h, const char *buf, int num);
80static int slg_puts(BIO *h, const char *str); 78static int slg_puts(BIO *h, const char *str);
81static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2); 79static long slg_ctrl(BIO *h, int cmd, long arg1, void *arg2);
@@ -214,5 +212,4 @@ xcloselog(BIO* bp)
214 closelog(); 212 closelog();
215} 213}
216 214
217
218#endif /* NO_SYSLOG */ 215#endif /* NO_SYSLOG */