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 | |
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')
-rw-r--r-- | src/lib/libcrypto/ui/ui_lib.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/ui/ui_openssl.c | 13 |
2 files changed, 8 insertions, 12 deletions
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c index fa171b4d21..c2fe62df33 100644 --- a/src/lib/libcrypto/ui/ui_lib.c +++ b/src/lib/libcrypto/ui/ui_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ui_lib.c,v 1.24 2014/06/12 15:49:31 deraadt Exp $ */ | 1 | /* $OpenBSD: ui_lib.c,v 1.25 2014/07/11 08:44:49 jsing Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2001. | 3 | * project 2001. |
4 | */ | 4 | */ |
@@ -60,11 +60,10 @@ | |||
60 | 60 | ||
61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
62 | 62 | ||
63 | #include "cryptlib.h" | ||
64 | |||
65 | #include <openssl/buffer.h> | 63 | #include <openssl/buffer.h> |
66 | #include <openssl/ui.h> | ||
67 | #include <openssl/err.h> | 64 | #include <openssl/err.h> |
65 | #include <openssl/ui.h> | ||
66 | |||
68 | #include "ui_locl.h" | 67 | #include "ui_locl.h" |
69 | 68 | ||
70 | IMPLEMENT_STACK_OF(UI_STRING_ST) static const UI_METHOD *default_UI_meth = NULL; | 69 | IMPLEMENT_STACK_OF(UI_STRING_ST) static const UI_METHOD *default_UI_meth = NULL; |
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 | ||