diff options
author | jsing <> | 2014-07-11 08:44:49 +0000 |
---|---|---|
committer | jsing <> | 2014-07-11 08:44:49 +0000 |
commit | 8c3482db610348be15fb633bb52b0511c2cabbcf (patch) | |
tree | 0e726f9e971e00f4c8cd8afab71589803fc11b7f /src/lib/libcrypto/ui/ui_openssl.c | |
parent | a336cdb63c1fe5d934826147bf5c19d317ced73b (diff) | |
download | openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.gz openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.tar.bz2 openbsd-8c3482db610348be15fb633bb52b0511c2cabbcf.zip |
Only import cryptlib.h in the four source files that actually need it.
Remove the openssl public includes from cryptlib.h and add a small number
of includes into the source files that actually need them. While here,
also sort/group/tidy the includes.
ok beck@ miod@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_openssl.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c index 32298625ca..f7f01bb4f1 100644 --- a/src/lib/libcrypto/ui/ui_openssl.c +++ b/src/lib/libcrypto/ui/ui_openssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ui_openssl.c,v 1.21 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: ui_openssl.c,v 1.22 2014/07/11 08:44:49 jsing Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) and others | 2 | /* Written by Richard Levitte (richard@levitte.org) and others |
3 | * for the OpenSSL project 2001. | 3 | * for the OpenSSL project 2001. |
4 | */ | 4 | */ |
@@ -114,26 +114,23 @@ | |||
114 | * [including the GNU Public Licence.] | 114 | * [including the GNU Public Licence.] |
115 | */ | 115 | */ |
116 | 116 | ||
117 | #include <sys/ioctl.h> | ||
118 | |||
117 | #include <openssl/opensslconf.h> | 119 | #include <openssl/opensslconf.h> |
118 | 120 | ||
121 | #include <errno.h> | ||
119 | #include <signal.h> | 122 | #include <signal.h> |
120 | #include <stdio.h> | 123 | #include <stdio.h> |
121 | #include <string.h> | 124 | #include <string.h> |
122 | #include <errno.h> | ||
123 | |||
124 | #include <unistd.h> | ||
125 | #include <termios.h> | 125 | #include <termios.h> |
126 | #include <unistd.h> | ||
126 | 127 | ||
127 | #include "ui_locl.h" | 128 | #include "ui_locl.h" |
128 | #include "cryptlib.h" | ||
129 | |||
130 | #include <sys/ioctl.h> | ||
131 | 129 | ||
132 | #ifndef NX509_SIG | 130 | #ifndef NX509_SIG |
133 | #define NX509_SIG 32 | 131 | #define NX509_SIG 32 |
134 | #endif | 132 | #endif |
135 | 133 | ||
136 | |||
137 | /* Define globals. They are protected by a lock */ | 134 | /* Define globals. They are protected by a lock */ |
138 | static struct sigaction savsig[NX509_SIG]; | 135 | static struct sigaction savsig[NX509_SIG]; |
139 | 136 | ||